a.k.a. what to do when your ISP starts blocking sites :(
Set the SOCKS proxy to local SSH tunnel
networksetup -setsocksfirewallproxy "Ethernet" localhost 8080
To clear the domain and port
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
tr: | |
admin: | |
home: | |
name: "Anasayfa" | |
pagination: | |
previous: "« Önceki" | |
next: "Sonraki »" | |
truncate: "…" | |
misc: | |
filter_date_format: "dd/mm/yy" # a combination of 'dd', 'mm' and 'yy' with any delimiter. No other interpolation will be done! |
wget --no-check-certificate https://raw.github.com/bagder/curl/master/lib/mk-ca-bundle.pl | |
perl mk-ca-bundle.pl && rm certdata.txt | |
mkdir -p ~/.ssl/ && mv ca-bundle.crt mk-ca-bundle.pl ~/.ssl | |
echo "ca_certificate = ~/.ssl/ca-bundle.crt" >> ~/.wgetrc |
# put this file in config/initializers | |
# | |
# USAGE: | |
# in your paperclip model: | |
# has_attached_file :document | |
# before_post_process { |c| transliterate_file_name(:document) } | |
module TransliteratePaperclip | |
def transliterate_file_name(paperclip_file) |
description "God Process Monitoring" | |
author "Christoph Geschwind <[email protected]>" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn # respawn the service if it dies | |
respawn limit 5 10 # stop respawning if it fails 5 times in 10 seconds | |
pre-start script |
$stack, $draws = [], {} | |
def method_missing *args | |
return if args[0][/^to_/] | |
$stack << args.map { |a| a or $stack.pop } | |
$draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :< | |
end | |
class Array | |
def +@ |
//if you need to andorse all in linkedin just go in to your profil and enter in browser console | |
setInterval(function(){document.getElementsByClassName('endorse-all-btn')[0].click()}, 5000) | |
//an leave your tab for some time |
<?php | |
/* | |
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
Author: _ck_ (with contributions by GK, stasilok) | |
Version: 0.1.7 | |
Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
* revision history | |
0.1.7 2015-09-01 regex fix for PHP7 phpinfo | |
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter |
1. Install Zsh with Homebrew | |
brew install zsh | |
2. Add "/usr/local/bin/zsh" to "/etc/shells" file | |
sudo vim /etc/shells | |
3. Change to default login shell | |
chsh -s /usr/local/bin/zsh $USER | |
4. Make sure new version of Zsh is in active |