Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am davidgao on github.
  • I am davidgao1001 (https://keybase.io/davidgao1001) on keybase.
  • I have a public key ASCNjJirwE3s2O0-cIT1VQYOfzFopCgia_ZQhl-wiECZvQo

To claim this, I am signing this object:

diff motion-3.2.12/motion.c /root/motion-3.2.12/motion.c
95,96d94
< struct image_data *tmp;
< int i;
115,116c113
<
< //struct image_data *tmp;
---
> struct image_data *tmp;
127c124
@davidgao
davidgao / minecraft.sh
Last active December 19, 2015 05:59
Minecraft Launcher,1.6用。
#! /bin/bash
#This is DavidGao's launcher for MC 1.6+
#Comment every line marked with #Forge if you want the original one
#Global Settings
USERNAME="Noob"
VER="1.6.2"
#FORGEVER="9.10.0.804" #Forge
#VER="$VER-Forge$FORGEVER" #Forge
@davidgao
davidgao / hostref.sh
Created July 1, 2013 06:37
just a dirty hosts refreshing script
#! /bin/bash
#skip empty or comment lines
function host_filter {
while read line; do
echo $line | grep -Ev "^($|#)"
done
}
#pick second part as hostname
@davidgao
davidgao / gist:5856831
Created June 25, 2013 08:13
20130625谷歌更换ipv4地址,临时smarthosts
127.0.0.1 localhost
74.125.239.125 chatenabled.mail.google.com
74.125.239.108 static.googleusercontent.com
74.125.28.189 0.docs.google.com
74.125.28.189 0.drive.google.com
74.125.28.189 1.docs.google.com
74.125.28.189 1.drive.google.com
74.125.28.189 10.docs.google.com
74.125.28.189 10.drive.google.com