Skip to content

Instantly share code, notes, and snippets.

View zhuangya's full-sized avatar
🧛‍♂️
The only silver bullet is a silver bullet.

Ya Zhuang zhuangya

🧛‍♂️
The only silver bullet is a silver bullet.
View GitHub Profile
var temperatureHistory = [{
State: 'Florida',
Temperature: 83,
},
{
State: 'Florida',
Temperature: 82,
},
{
State: 'Florida',
@zhuangya
zhuangya / -
Created January 27, 2014 17:32
1.1.2
/usr/local/go/bin:/usr/local/bin:/usr/local/git/bin:/usr/local/lib/node_modules:/usr/local/sbin:/usr/local/share/go/bin:/usr/local/share/npm/bin:/opt/X11/bin:/usr/X11/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/usr/local/lib/node_modules:/usr/local/sbin:/usr/local/share/npm/bin:/Users/zy/.rbenv/shims:/usr/X11/bin:/usr/local/git/bin:/usr/local/lib/node_modules:/usr/local/sbin:/usr/local/share/npm/bin:/usr/local/bin:/Users/zy/.rbenv/shims:/usr/X11/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
darwin { http_parser: '1.0',
node: '0.10.25',
v8: '3.14.5.9',
ares: '1.9.0-DEV',
uv: '0.10.23',
zlib: '1.2.3',
modules: '11',
openssl: '1.0.1e' }
@zhuangya
zhuangya / 11
Created January 23, 2014 09:22
acarsd-info.nse
address-info.nse
afp-brute.nse
afp-ls.nse
afp-path-vuln.nse
afp-serverinfo.nse
afp-showmount.nse
ajp-auth.nse
ajp-brute.nse
ajp-headers.nse
@zhuangya
zhuangya / gist:8399374
Created January 13, 2014 12:20
nginx gzip
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript
text/xml application/xml application/xml+rss text/javascript;
Toys/Yayy » traceroute -m 60 216.81.59\.173
traceroute to 216.81.59.173 (216.81.59.173), 60 hops max, 52 byte packets
1 192.168.77.1 (192.168.77.1) 99.848 ms 100.792 ms 100.096 ms
2 106.187.33.2 (106.187.33.2) 102.330 ms 101.723 ms 99.692 ms
3 124.215.199.121 (124.215.199.121) 108.776 ms 211.632 ms 111.675 ms
4 otejbb205.int-gw.kddi.ne.jp (124.215.194.161) 100.617 ms
otejbb206.int-gw.kddi.ne.jp (124.215.194.177) 105.983 ms
otejbb205.int-gw.kddi.ne.jp (124.215.194.161) 103.257 ms
5 pajbb001.int-gw.kddi.ne.jp (203.181.100.134) 220.559 ms
pajbb002.int-gw.kddi.ne.jp (203.181.100.154) 211.512 ms
@zhuangya
zhuangya / -
Created November 24, 2013 12:23
Bundle 'Lokaltog/vim-easymotion'
let g:EasyMotion_keys='abcdefghijklmnopqrstuvwxyz1234567890'
let g:EasyMotion_mapping_f = 'f'
let g:EasyMotion_mapping_F = 'F'
config defaultToCurrentScreen true
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
config windowHintsRoundedCornerSize 10
# Abstract positions
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY
@zhuangya
zhuangya / font-fix.sh
Last active May 24, 2016 02:48
font-fix.sh
#!/usr/bin/env fontforge
Open($1)
SetFontNames("", $1, $1, "", "", "")
Generate($1:r + ".ttf", "", 4)
@zhuangya
zhuangya / app.js
Created October 24, 2013 16:02 — forked from clouddueling/app.js
app.config(function($routeProvider, $httpProvider) {
var numLoadings = 0,
loadingScreen = $('.processing');
$httpProvider.interceptors.push(function() {
return {
request: function(config) {
++numLoadings;
loadingScreen.show();
@zhuangya
zhuangya / its.detect.openItunes.js
Created October 22, 2013 18:47
its.detect.openItunes.js
function (t) {
t || (t = window.location.href);
var n = its.detect.currentPageIsMacAppStore() || its.url.queryParamValue("mt", t) == "12" || t.indexOf("associateVPPUserWithITSAccount") !== -1 || t.indexOf("vpp-associate") !== -1,
r = its.detect.currentPageIsMacBookStore(),
i = !1,
s;
n ? (i = its.detect.macAppStoreDetected(), s = "macappstore") : r && its.detect.macBookStoreDetected() ? (i = !0, s = "itms-books") : (i = its.detect.itunesDetected(), s = "itms");
if (i) {
t = t.replace(/^http/, s);
var o = t.indexOf("#");