Skip to content

Instantly share code, notes, and snippets.

View csrutil's full-sized avatar
🏠
Working from home

Csrutil csrutil

🏠
Working from home
  • N/A
  • Follow the white rabbit.
View GitHub Profile
@csrutil
csrutil / TP-WR703N-Openwrt.md
Last active August 8, 2016 14:09
WR703N OpenWrt 配置流程

下载安装

采用 snapshots 版本, 需要注意的是此版本是没有luci的,个人不是很喜欢带luci.

squashfs-factory.bin是出厂版本(?), 如果是新的机器,个人比较推荐此版本。

squashfs-sysupgrade.bin为升级版本,如果路由器已经是op系统了,下载这个版本,下面是链接。

squashfs-factory.bin squashfs-sysupgrade.bin

@csrutil
csrutil / linux source mirror
Last active February 2, 2019 11:05
debian 源
deb http://ftp.cn.debian.org/debian wheezy main
deb-src http://ftp.cn.debian.org/debian wheezy main
deb http://ftp.cn.debian.org/debian wheezy-updates main
deb-src http://ftp.cn.debian.org/debian wheezy-updates main
deb http://mirrors.ustc.edu.cn/debian-security/ wheezy/updates main
deb-src http://mirrors.ustc.edu.cn/debian-security/ wheezy/updates main
@csrutil
csrutil / trigger-jquery-ready-on-turbolinks.md
Last active August 29, 2015 14:15
Turbolinks do not trigger jQuery.ready();
@csrutil
csrutil / cubieboard installation.md
Last active August 29, 2015 14:16
cubieboard installation

SDCard image file Cubian-desktop-x1-a20-hdmi.img

# dd image file to SDCard

sudo dd if=/path/to/Cubian-desktop-x1-a20-hdmi.img of=/dev/YOUR_DEVICE bs=4096; sync

modify wifi config

@csrutil
csrutil / cocoa-project-organize.md
Last active August 29, 2015 14:18
IOS project organize
.
├── IPad
├── IPhone
│   ├── Application
│   ├── Controllers
│   ├── Library
│   ├── Models
│   ├── Support
│   └── Views
wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.23.tar.xz
tar xvJf coreutils-8.23.tar.xz
cd coreutils-8.23/
#wget http://zwicke.org/web/advcopy/advcpmv-0.5-8.23.patch
patch -p1 -i advcpmv-0.5-8.23.patch
./configure
make
#export FORCE_UNSAFE_CONFIGURE=1
sudo cp /bin/cp /bin/cp.backup
sudo cp src/cp /bin/cp2
/configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-threads --with-stream --with-stream_ssl_module --with-mail --with-mail_ssl_module --with-http_spdy_module --with-cc-opt='-g -O2 -fs
h1 {
font-family: 'Bitstream Charter';
font-size: 24px;
font-style: normal;
font-variant: normal;
font-weight: 500;
line-height: 26.3999996185303px;
}
h3 {
font-family: 'Bitstream Charter';
#/bin/env ruby not found
*/1 * * * * /bin/bash -c 'export PATH="$HOME/.rbenv/bin:$PATH" ; eval "$(rbenv init -)"; cd /whatever/else; ruby -v'
{
  "disableAnalytics": false,
  "port" : 9991,
  "host" : "0.0.0.0",
  "liveReload" : true,
  "environment" : "development",
  "checkForUpdates" : false,
  "watcher": "polling"
}