On the remote host add to /etc/ssh/sshd_config:
GatewayPorts yes
And restart ssh (Ubuntu shown):
sudo service ssh restart
On the remote host add to /etc/ssh/sshd_config:
GatewayPorts yes
And restart ssh (Ubuntu shown):
sudo service ssh restart
| for old in ./file_*.svg; | |
| do | |
| new=$(echo $old | sed -e 's/file_//g'); | |
| mv -v "$old" "$new"; | |
| done |
| cat /dev/sda | /dev/null |
| redis-benchmark -h x.x.x.x -p xxxx -r 20 -q -l |
| [^\x00-\x7F] |
| #!/usr/bin/env ruby | |
| # Usage: | |
| # ksdiffdir.rb /path/to/a /path/to/b | |
| FOLDER_A = ARGV[0] | |
| FOLDER_B = ARGV[1] | |
| def build_file_list(dir_path) | |
| Dir.glob("#{dir_path}/**/*").select{ |f| File.file?(f) }.collect{ |f| f.gsub("#{dir_path}", '') } |
| KEEP_MAX=5 | |
| (ls -t|head -n $KEEP_MAX;ls)|sort|uniq -u|xargs rm -rf |
| sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume Mac\ OS\ X\ Install\ ESD/ --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeractio |
| Domain.metaClass.event = { arg1, arg2, arg3 ->} |
| require 'io/console' | |
| STDIN.noecho(&:gets) |