建立自己的GITHUB

准备,一个独立的VPS。能访问的方式:SSH,屏幕…软件使用: http://gitlab.org/gitlab-ce/查看需求文档: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/requirements.md查看安装文档: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md一般情况下,都是搭建mysql,直接拷贝安装文档的脚本过来,直接用就行,这里就不细说:)

2014/06/220 Jun · 1 min · map[name:SCys uri:]

linux sysctl.conf backup

net.ipv4.ip_forward = 1net.ipv4.conf.all.send_redirects = 0net.core.rmem_max = 16777216net.core.wmem_max = 16777216net.ipv4.tcp_rmem = 4096 87380 16777216net.ipv4.tcp_wmem = 4096 65536 16777216net.core.netdev_max_backlog = 30000net.ipv4.ip_forward = 1net.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1net.ipv6.conf.lo.disable_ipv6 = 1net.ipv4.tcp_timestamps = 0net.ipv4.tcp_sack = 1net.ipv4.tcp_window_scaling = 1net.ipv4.tcp_fastopen = 1

2014/06/150 Jun · 1 min · map[name:SCys uri:]

HTTP proxy with sslocal

setup sslocal config.json listen localhost 1080 portinstall polipoadd next line into etc/polipo/config:socksParentProxy=localhost:1080service polipo restartint console use:export http_proxy=http://localhostok!...

2014/05/220 May · 1 min · map[name:SCys uri:]

Virtualbox USB设备启动

Virtualbox 不直接支持USB启动,需要经过一道转换:1. 创建USB映射:sudo VBoxManage internalcommands createrawvmdk -filename usb.vmdk -rawdisk /dev/sdc替换/dev/sdc为需要的USB设备启动项目2. 确认自己用户在disk组(即是/dev/sdc拥有组)sudo gpasswd -a scys disk3. 加载第一步创建的usb.vmdk到vbox虚拟机中,启动就OK。

2013/12/270 Dec · 1 min · map[name:SCys uri:]

Smokeping on nginx

nginx: include next config:# smokping nginx configuare# system os: debian 7.0location /smokeping {access_log /var/log/nginx/server.smokeping.access.log;error_log /var/log/nginx/server.smokeping.error.log;root /var/www;index smokeping.cgi;auth_basic “Restricted”;auth_basic_user_file /var/www/users.htpasswd;location ~ .cgi$ {root /var/www;include /etc/nginx/fastcgi_params;fastcgi_pass unix:/var/run/fcgiwrap.socket;fastcgi_index smokeping.cgi;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;}}new folder:mkdir /var/www/smokepinglink file to /var/www/smokeping:ln -s /usr/share/smokeping/www/* /var/www/smokeping/create htpasswd filehtpasswod /var/www/users.htpasswdreload the sevice configureservice nginx reload

2013/11/170 Nov · 1 min · map[name:SCys uri:]