建立自己的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, 直接拷贝安装文档的脚本过来,直接用就行,这里就不细说:)

<span title='2014-06-22 08:17:00 +0000 UTC'>2014/06/22 Jun</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;10 words&nbsp;·&nbsp;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

<span title='2014-06-15 18:22:00 +0000 UTC'>2014/06/15 Jun</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;35 words&nbsp;·&nbsp;map[name:SCys uri:]

HTTP proxy with sslocal

setup sslocal config.json listen localhost 1080 port install polipo add next line into etc/polipo/config: service polipo restart int console use: export http_proxy=http://localhost ok! ex:https://github.com/clowwindy/shadowsocks/wiki/Convert-Shadowsocks-into-an-HTTP-proxy

<span title='2014-05-22 20:56:00 +0000 UTC'>2014/05/22 May</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;24 words&nbsp;·&nbsp;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。

<span title='2013-12-27 22:01:00 +0000 UTC'>2013/12/27 Dec</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;16 words&nbsp;·&nbsp;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

<span title='2013-11-17 22:27:00 +0000 UTC'>2013/11/17 Nov</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;57 words&nbsp;·&nbsp;map[name:SCys uri:]