Foundation 5.x with ngGrid style fix

some not bug need fix. so~ fixed!/style.css/.gridStyle { border: 1px solid rgb(212,212,212); width: 600px; height: 300px; font-size: 0.8em;}.ngSortButtonDown,.ngSortButtonUp { right: 2px;}/* So far, these seem to make it behave better */.ngGrid input { display: inline-block;}.ngGrid button { padding: 0 0 0 8px; margin: 0;}.ngVerticalBar { height: 100%;}.ngColMenu { padding: 1em;}.ngColListItem { position: relative;}.ngGroupedByIcon,.ngGroupIcon { top: 4px; display: inline-block;}

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

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

Ruby MIrror

进来在安装Gitlib的时候,用到了ruby。可是发现国外的官方的ruby安装源,简直就是考验耐性!Google了下,发现了好东西: ruby.taobao.org快速入门:如何使用?$ gem sources –remove https://rubygems.org/$ gem sources -a https://ruby.taobao.org/$ gem sources -l*** CURRENT SOURCES ***https://ruby.taobao.org# 请确保只有 ruby.taobao.org$ gem install rails如果你是用 Bundle (Rails 项目)source ‘https://ruby.taobao.org/'gem ‘rails’, ‘4.1.0’...

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!ex:https://github.com/clowwindy/shadowsocks/wiki/Convert-Shadowsocks-into-an-HTTP-proxy

Wordpress 3.9 with Postgresql

change wp-include/wp-db.php找到所有的use_mysqli的赋值修改为true2. 添加一个函数给 pg4wp/driver_postgresql.php参考如下:1. http://wordpress.org/support/topic/not-working-with-392. http://blog.csdn.net/raptor/article/details/25636601

Python on Windows

支持库的安装包的下载页面:http://www.lfd.uci.edu/~gohlke/pythonlibs提供近乎所有流行的包现在急于tornado和psycopg2的开发,直接可以在windows通过IDE快速编程,再到linux进行调试

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。

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

[配机]APU-E450

按照同事的要求1k内完成。玩页游,看电影~0 CPU: APU E2-1800 这个比较划算,近两年出来比较超值的U了,Intel的U就烂在GPU上,这个是事实。200 内存: 4G足够看看电影玩玩网页游戏了,本身收到主板限制120 硬盘: 120G很小?用完再加,这个简单,二手~250 显示器: 19寸,很简单很普通的国产A+屏幕350 主板:APXD1-DM 50 电源:19V适配器60 键盘鼠标1030 完成~