This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat map*.osm \ | |
| grep -P "k=\"addr:street\" v=\"(.*)\"" \ | |
| sed -E "s/.*addr:street\" v=\"(.*)\".*/\1/" \ | |
| sort -u > streets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget "http://www.yad2.co.il/mailsecure.php" -O "captcha.jpg" && \ | |
convert -white-threshold 55% captcha.jpg clean_captcha.jpg && \ | |
tesseract clean_captcha.jpg captcha -psm 8 digits && \ | |
cat captcha.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# requires socksify gem | |
require "socksify" | |
require 'socksify/http' | |
# use w/ OAuth2 like OAuth2::Client.new(id, secret, connection_opts: { proxy: 'socks://127.0.0.1:9050' }) | |
class Faraday::Adapter::NetHttp | |
def net_http_class(env) | |
if proxy = env[:request][:proxy] | |
if proxy[:uri].scheme == 'socks' | |
Net::HTTP::SOCKSProxy(proxy[:uri].host, proxy[:uri].port) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew upgrade tmux | |
------------------------------------------------ | |
==> Upgrading 1 outdated package, with result: | |
tmux 1.8 | |
==> Upgrading tmux | |
rm /usr/local/bin/tmux | |
rm /usr/local/etc/bash_completion.d/tmux | |
rm /usr/local/share/man/man1/tmux.1 | |
==> Downloading http://sourceforge.net/projects/tmux/files/tmux/tmux-1.8/tmux-1.8.tar.gz |
NewerOlder