码迷,mamicode.com
首页 >  
搜索关键字:cat    ( 24058个结果
安装WEB_shell开源堡垒机 gateone
安装WEB_shell开源堡垒机gateone环境因为需要python2.6所以换成了centos6.5来做python2.66系统版本[root@li258-45gateone]#cat/etc/issueCentOSrelease6.5(Final)Kernel\ronan\m内核版本[root@li258-45gateone]#uname-aLinuxli258-453.16.7-x86_64-linode49#3SMPFriNov1416:55:..
分类:Web程序   时间:2014-12-25 10:07:34    阅读次数:4528
ansible 批量创建用户
一、ansible安装1、安装第三方epel源centos5的epel#rpm-ivhhttp://mirrors.sohu.com/fedora-epel/5/x86_64/epel-release-5-4.noarch.rpmcentos6的epel#rpm-ivhhttp://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm查看系统版本#cat/etc/issueCentOSrelea..
分类:其他好文   时间:2014-12-25 06:44:08    阅读次数:598
示例:模拟内核中的面向对象方法
内核中使用了大量的用c语言实现的对象 尤其是驱动中,基本上都是这种架构 这里写一个小例子,模仿内核中编程的方法 代码如下: root@ubuntu:/mnt/shared/appbox/funcptr# cat funcptr.c #include #include #include #include typedef struct { char *name; ...
分类:其他好文   时间:2014-12-25 00:17:10    阅读次数:214
回调函数示例
其实内核中有非常多的函数是回调函数,比如各种注册函数和初始化函数等 例如:request_irq、tasklet_init等,其实就是注册一个回调函数,然后在回调函数中一直执行所注册的句柄函数 这里是回调函数最简单的示例,内核中的很多函数基本原理类似: linux@ubuntu:/mnt/shared/appbox/callback$ cat callback.c #include #i...
分类:其他好文   时间:2014-12-24 22:48:10    阅读次数:234
Emacs nyan cat mode~ 彩虹猫mode配置
Oh my god~今天在Emacs /Vim 资深群里发现了有位友人的Emacs的mode-line有这只萌猫的存在,不禁请教了下这只猫的姓名 原来它叫Nyan Cat  google了一下: Nyan Cat,又称喵喵猫或彩虹猫。是在2011年4月上传在 YouTube 的视频,并且迅速爆红于网络,成为2011年YouTube浏览量最高的视频之一[1]。这个视频内容为一只卡通的猫...
分类:系统相关   时间:2014-12-24 20:10:03    阅读次数:1167
PHP扩展编写示例
1、生成描述文件,包含对函数等的定义[chengyi@localhost php-extension]$ cat hello_cy.defstring self_concat(string str, int n);2、进入PHP源码的ext目录[chengyi@localhost ext]$ pwd...
分类:Web程序   时间:2014-12-24 20:08:59    阅读次数:207
【初始化-limits】init_limits.sh
【初始化-limits】init_limits.sh#!/bin/bash # #2014/07/15 #增加my-limits.conf cat<<_LIMIT>/etc/security/limits.d/my-limits.conf *softnofile65535 *hardnofile65535 *softcoreunlimited _LIMIT
分类:其他好文   时间:2014-12-24 18:36:30    阅读次数:171
【用户】create_user_with_sshkey.sh
【用户】create_user_with_sshkey.sh#!/bin/bash #$ssh-keygen-trsa-b2048-Cyou_comment_here-ffilename #createuserwithsshpublickey #20140214 username=‘yourname‘ useradd${username} id${username} [-d/home/${username}/.ssh]||mkdir-p/home/${username}/.ssh cat<&..
分类:其他好文   时间:2014-12-24 18:35:37    阅读次数:165
【sshd】setting_ssh_banner.sh
【sshd】setting_ssh_banner.sh#!/bin/bash # cat<<_SSHCONFIG>/etc/ssh/ssh.banner [-]welcometothewonderland... [^] .____.____ /\\___‘\\/\\____‘\\\\\_\\\\\\\\\\\\/ \\\\\\/\\\\/\\\\\\\\\-/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\__/\\\\\\\\\_\..
分类:其他好文   时间:2014-12-24 18:34:33    阅读次数:155
【初始化-系统时间】init_profile.sh
【初始化-系统时间】init_profile.sh#!/bin/bash # #2014/10/20 #profile,增加到最后 cat<<_PROFILE>>/etc/profile aliasls=‘ls--color=tty‘ aliasll=‘ls-l--color=tty‘ aliasl.=‘ls-d.*--color=tty‘ aliasvi=‘vim‘ aliasrm=‘rm-i‘ aliascp=‘cp-i‘ aliasmv=‘mv-i..
分类:其他好文   时间:2014-12-24 18:34:19    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!