shadowsocks + privoxy/tsocks
shadowsocks: service, socks proxyprivoxy: service, convert socks proxy to http proxytsocks: tool, use socks proxy for any command line
tested under ubuntu14.04
| #%RAML 1.0 Library | |
| traits: | |
| FilterableByPrice: | |
| queryParameters: | |
| priceLessThen?: | |
| type: number | |
| priceMoreThen?: | |
| type: number | |
| resourceTypes: |
| #!/bin/bash | |
| echo "Building NGINX along with Echo module" | |
| # install prerequisites | |
| yum -y install gcc gcc-c++ make zlib-devel pcre-devel openssl-devel | |
| # download the Echo module | |
| curl -L -O 'https://github.com/openresty/echo-nginx-module/archive/v0.58.tar.gz' | |
| tar -xzvf v0.58.tar.gz && rm v0.58.tar.gz | |
| mv echo-nginx-module-0.58 /tmp/echo-nginx-module |
| namespace Demo | |
| { | |
| static class Program | |
| { | |
| [DllImport("kernel32.dll")] | |
| static extern bool FreeConsole();//Call Sysytem API,Disposed Console | |
| [DllImport("kernel32.dll")] | |
| public static extern bool AllocConsole();//Call Sysytem API,Show Console | |
| [STAThread] |
| raise ValueError("DEPRECATED/FROZEN - see https://github.com/kastnerkyle/tools for the latest") | |
| # License: BSD 3-clause | |
| # Authors: Kyle Kastner | |
| # Harvest, Cheaptrick, D4C, WORLD routines based on MATLAB code from M. Morise | |
| # http://ml.cs.yamanashi.ac.jp/world/english/ | |
| # MGC code based on r9y9 (Ryuichi Yamamoto) MelGeneralizedCepstrums.jl | |
| # Pieces also adapted from SPTK | |
| from __future__ import division | |
| import numpy as np |
| goaccess -f u_ex150629.log --log-format "$(cat u_ex150629.log | ./goiisformat.sh)" --date-format '%Y-%m-%d' --time-format '%H:%M:%S' |
Copy paste the line below to your terminal:
https://gist.githubusercontent.com/neuro-sys/3bf00b6cf28a93e07e44/raw/e8976da93a55e5ef7c5e8dc99c00772fffb06f6c/replacestring.c
gcc replacestring.c -oreplacestring
./replacestring "$(strings /usr/bin/phantomjs | grep "platform: ghostdriver")" " " < /usr/bin/phantomjs > phantomjs && chmod a+x phantomjs
sudo cp phantomjs /usr/bin/phantomjsAlright, there's a bug in a recent version of PhantomJS which renders it unable to run with GhostDriver. The error is like this:
| public static RulesOption("Hide CSS") | |
| BindPref("fiddlerscript.rules.HideCSS") | |
| var m_HideCSS: boolean = true; | |
| public static RulesOption("Hide JavaScript") | |
| BindPref("fiddlerscript.rules.HideJavaScript") | |
| var m_HideJavascript: boolean = true; | |
| public static RulesOption("Hide Font") |
Centos 6.* comes with Python 2.6, but we can't just replace it with v2.7 because it's used by the OS internally (apparently) so you will need to install v2.7 (or 3.x, for that matter) along with it. Fortunately, CentOS made this quite painless with their Software Collections Repository
sudo yum update # update yum
sudo yum install centos-release-scl # install SCL
sudo yum install python27 # install Python 2.7
To use it, you essentially spawn another shell (or script) while enabling the newer version of Python:
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545