Skip to content

Instantly share code, notes, and snippets.

View ninehills's full-sized avatar

Tao Yang ninehills

View GitHub Profile
@ninehills
ninehills / .vimrc
Created July 28, 2012 04:39
最小vimrc
set nocompatible
syntax enable
set encoding=utf-8
set showcmd " display incomplete commands
filetype plugin indent on " load file type plugins + indentation
"" Whitespace
set nowrap " don't wrap lines
set tabstop=2 shiftwidth=2 " a tab is two spaces
set expandtab " use spaces, not tabs
@ninehills
ninehills / wr703n-openwrt.md
Last active October 26, 2025 18:48
WR703N OpenWrt 配置流程

WR703N OpenWrt 配置流程

下载安装

访问WR703N在OpenWrt的[Wiki页][wr703n-openwrt],然后在Flashing一节中找到下载链接:[squashfs-factory.bin][flash.bin],下载后别忘了[比对md5][md5sum]。[1]

进入路由器管理界面,出厂配置为http://192.168.1.1,用户名和密码均为admin,然后进入固件更新,选择下载的文件,然后更新。

@ninehills
ninehills / supervisord.sh
Created April 28, 2012 02:11 — forked from danmackinlay/supervisord.sh
an init.d script for supervisord
#! /bin/sh
### BEGIN INIT INFO
# Provides: supervisord
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
@ninehills
ninehills / OSX.ini
Created April 23, 2012 01:35
MacType OSX.ini
; ----------------------------------------------------------------------
; XMac
; (Only for MacType, NOT SUPPORT THE OLD VERSION OF GDI++/HE)
;
; [email protected]
; QQ Group: 18988755
; ----------------------------------------------------------------------
[Preview]
Font=XHei OSX
@ninehills
ninehills / 12306.user.js
Created January 7, 2012 08:24 — forked from quietlynn/12306.user.js
12306 Auto Query => A javascript snippet to help you book ticket
/*
12306 Auto Query => A javascript snippet to help you book tickets online.
Copyright (C) 2011 Jingqin Lynn
Includes jQuery
Copyright 2011, John Resig
Dual licensed under the MIT or GPL Version 2 licenses.
http://jquery.org/license
Includes Sizzle.js
@ninehills
ninehills / PKGBUILD
Created December 30, 2011 16:23
minus-uploader 1.7-5 PKGBUILD
# Maintainer: Giorgio Gilestro <[email protected]>
pkgname="minus-uploader"
pkgver="1.7"
pkgrel=5
pkgdesc="Desktop app that allows you to drag-n-drop files into the taskbar and instantly upload to Minus"
url="https://minus.com/pages/tools"
license=('GPL')
arch=('i686' 'x86_64')
#!/bin/bash
#-------------------------------
# 南开大学网关自动登录脚本
# 用法请用help命令查询
# 支持ipv4/ipv6登录
# 作者:cynic<[email protected]>
# 网站:http://ninehills.github.com
#-------------------------------
! Swap caps lock and escape in X
! Usage: :"xmodmap .speedswapper
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
// JingDong - Price History Image
// GNU General Public License
// Forked from http://userscripts.org/scripts/show/115573
// Modified by ninehills <ninehills.github.com>
// ==UserScript==
// @name JingDong - Price History Image
// @namespace http://qixinglu.com
// @description Insert a price history image from 360444.com to 360buy.com product page.
// @include http://book.360buy.com/*.html
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- created by WenQuanYi FcDesigner v0.5 -->
<match>
<test name="family">
<string>sans-serif</string>
</test>
<edit binding="strong" mode="prepend" name="family">
<string>Ubuntu</string>