Skip to content

Instantly share code, notes, and snippets.

View simonkuang's full-sized avatar

Simon Kuang simonkuang

  • Chengtu, P.R.China
View GitHub Profile
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p udp --dport 123 -j ACCEPT
2014-11-09 17:52:04 +0800
sh
build/gnuauto/setup.sh
Generating the build system in /private/tmp/tidy-oj25BY/tidy-20090325
copying files into place: cd build/gnuauto && cp -R -f * /private/tmp/tidy-oj25BY/tidy-20090325
running: glibtoolize --force --copy
2014-11-11 22:27:06 +0800
./configure
--prefix=/usr/local/Cellar/php56/5.6.2
--localstatedir=/usr/local/var
--sysconfdir=/usr/local/etc/php/5.6
--with-config-file-path=/usr/local/etc/php/5.6
--with-config-file-scan-dir=/usr/local/etc/php/5.6/conf.d
--with-iconv-dir=/usr
--enable-dba
@simonkuang
simonkuang / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@simonkuang
simonkuang / javascript_resources.md
Last active August 29, 2015 14:18 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@simonkuang
simonkuang / rails_resources.md
Last active August 29, 2015 14:18 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
@simonkuang
simonkuang / rules.conf
Created October 27, 2015 15:07 — forked from janlay/README.md
Yet another config for Surge.app (build 245+)
# This config file was created for myself (@janlay). You may want to add or remove some rules to make efficient use of the Internet.
# This file depends on the main.conf which defines your own proxy.
# Your main.conf will look like this:
# ---- START ----
# #!PROXY-OVERRIDE:rules.conf
# [Proxy]
# Proxy = https,server.address,port,username,password
# ---- END ----
#
@simonkuang
simonkuang / gfwdomains.sh
Created October 28, 2015 01:52 — forked from jonas8/gfwdomains.sh
gfw domains
Output="./greatfire.txt"
if [ -f $Output ]
then
rm $Output
fi
Threshold=20
for i in 0 1 2 3 4 5 6 7 8 9
do
curl -s --insecure "https://zh.greatfire.org/search/alexa-top-1000-domains?page=$i"| \
[
"62.12.115.154",
"197.248.8.2",
"52.57.140.69"
]
@simonkuang
simonkuang / tmux-cheatsheet.markdown
Created November 22, 2016 15:18 — forked from ryerh/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表

Tmux 快捷键 & 速查表

启动新会话:

tmux [new -s 会话名 -n 窗口名]

恢复会话:

tmux at [-t 会话名]