nmap -n -sS -sU -PN --max-retries 1 --min-rate 300 --top-ports 5000 my_host
BEER="\xF0\x9F\x8D\xBA"
alias vime='vim -X -n -N --cmd "set cm=blowfish" --cmd "set nobackup" --cmd "set nowritebackup" --cmd "set key=`. ~/.my_password_file;echo $whatever`"'
complete -W "$(ls path_to_hosts_dir |uniq )" ssh
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
sudo killall -HUP mDNSResponder
#!/usr/bin/env python
import sys, csv, itertools
rows = itertools.izip(*csv.reader(sys.stdin, delimiter=","))
sys.stdout.writelines(",".join(row) + "\n" for row in rows)
iptables -t mangle -A POSTROUTING -d 10.0.0.1 -j TEE --gateway 10.0.0.2
lua_shared_dict site 100m;
client_body_buffer_size 10M;
client_max_body_size 10M;
server {
listen 80;
server_name my.site.com;
location /set {
content_by_lua '
local site = ngx.shared.site
ngx.req.read_body()
local args = ngx.req.get_post_args()
for key, val in pairs(args) do
site:set(key, val, 180 )
ngx.say("OK")
end
';
}
location ~ /*.png$ {
add_header Content-Type "image/png";
content_by_lua '
local key = ngx.var.uri:match("/(.+)%..+")
local site = ngx.shared.site
ngx.print(ngx.decode_base64(site:get(key)))
';
}
}
Quick nginx/lua ifconfig implementation