Skip to content

Instantly share code, notes, and snippets.

View noscripter's full-sized avatar
✌️
Peace and love.

NoScripter noscripter

✌️
Peace and love.
View GitHub Profile
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@noscripter
noscripter / scapy_wireshark_poc.py
Created October 6, 2015 14:14
Dead simple PoC of how scapy could be used to build a replacement Wireshark without C
#!/usr/bin/env python2
try:
import scapy.all as scapy
except ImportError:
import scapy
if __name__ == "__main__":
from argparse import ArgumentParser
parser = ArgumentParser(
@noscripter
noscripter / github.bash
Created October 14, 2015 06:40 — forked from igrigorik/github.bash
Open GitHub URL for current directory/repo...
alias gh="open \`git remote -v | grep git@github.com | grep fetch | head -1 | cut -f2 | cut -d' ' -f1 | sed -e's/:/\//' -e 's/git@/http:\/\//'\`"
@noscripter
noscripter / for_global.txt
Created October 20, 2015 02:53 — forked from chrisyip/for_global.txt
SSLedge bypass list
127.0.0.1, anrdoezrs.net, *.anrdoezrs.net, w3ctech.com, *.w3ctech.com, hdtdxp.com, *.hdtdxp.com, uuzuonline.com, *.uuzuonline.com, luzhou.net, *.luzhou.net, cjphr.com, *.cjphr.com, fridaying.com, *.fridaying.com, bjokli.com, *.bjokli.com, 93txt.com, *.93txt.com, robotplayer.com, *.robotplayer.com, upai99.com, *.upai99.com, gemsky.net, *.gemsky.net, 00base.com, *.00base.com, mebi9t.com, *.mebi9t.com, is686.com, *.is686.com, cdncache.org, *.cdncache.org, sucaitianxia.com, *.sucaitianxia.com, 89178.com, *.89178.com, 5dmail.net, *.5dmail.net, oy66.com, *.oy66.com, shanghaining.com, *.shanghaining.com, book118.com, *.book118.com, zsbeike.com, *.zsbeike.com, hunantv.com, *.hunantv.com, ylunion.com, *.ylunion.com, mysilu.com, *.mysilu.com, 0737mp.com, *.0737mp.com, 37cu.com, *.37cu.com, longre.com, *.longre.com, yanzheng.com, *.yanzheng.com, lifeyoyo.com, *.lifeyoyo.com, wulinyingxiong.net, *.wulinyingxiong.net, yong9.net, *.yong9.net, communicatte.com, *.communicatte.com, ok92.net, *.ok92.net, junshishu.com, *.juns
@noscripter
noscripter / surge.conf
Created October 20, 2015 16:06 — forked from soffchen/surge.conf
surge.conf
[General]
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114
loglevel = notify
[Proxy]
Proxy = custom
[Rule]
@noscripter
noscripter / surge_main.conf
Created October 20, 2015 16:08 — forked from jason5ng32/surge.conf
Surge Configs
// DON'T FORGET TO IMPORT proxy.conf TOO
[General]
loglevel = notify
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24
// DNS OVERRIDE, REMOVE # IF YOU NEED
# dns-server = 223.6.6.6,223.5.5.5,114.114.114.114,114.114.115.115
@noscripter
noscripter / Main.conf
Created October 20, 2015 16:08
Yet another config for Surge.app
[General]
# warning, notify, info, verbose
loglevel = notify
bypass-system = true
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
dns-server = 114.114.114.114,119.29.29.29,8.8.8.8
[Proxy]
# http, https, socks5
@noscripter
noscripter / rules.conf
Created October 20, 2015 16:08 — 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 ----
#
@noscripter
noscripter / 00-about-search-api-examples.md
Created November 7, 2015 16:08 — forked from jasonrudolph/00-about-search-api-examples.md
5 entertaining things you can find with the GitHub Search API
@noscripter
noscripter / better-nodejs-require-paths.md
Created December 6, 2015 02:23 — forked from branneman/better-nodejs-require-paths.md
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

var Article = require('../../../models/article');

Those suck for maintenance and they're ugly.

Possible solutions