January 23, 2016

.vimrc edti binary files in hex mode

Add the following to your ~/.vimrc file, and vim will be able to edit *.bin, *.exe, and *.o files in HEX mode:

if has ("autocmd")
" vim -b : edit binary using xxd-format!
augroup Binary
au BufReadPre  *.bin,*.exe,*.o let &binary=1
au BufReadPost * if &binary | %!xxd
au BufReadPost * so $VIMRUNTIME/syntax/xxd.vim | set filetype=xxd | endif
au BufWritePre * if &binary | %!xxd -r
au BufWritePre * endif
au BufWritePost * if &binary | %!xxd
au BufWritePost * set nomod | endif
augroup END
endif

January 14, 2016

lsyncd.conf file

settings = {
        delay        = 0.1,
        maxProcesses = 3,
        logfile      = "/tmp/lsyncd.log",
}

targetlist = {
        "192.168.5.203",
        "192.168.5.204"
}

for _, server in ipairs(targetlist) do
sync{
        default.rsyncssh,
        source="/home/me/mysyncdir",
        host=server,
        targetdir="mysyncdir"
}
end

Xbox one firewall ports

Here is what we actually need to make this work.
  protocol port direction
DNS UDP 53 outbound if you don’t have DNS services on your subnet
HTTP TCP 80 outbound
Kerberos UDP 88 inbound and outbound (yes, Xbox Live uses Kerberos for authentication.)
Xbox UDP 3074 inbound and outbound
Xbox TCP 3074 inbound and outbound
SIP UDP 5060-5061 inbound and outbound

January 13, 2016

travel agents to buy international tickets

飞翔旅游 SBP Travel 951-200-3308
909-614-4648
626-275-2811
619-209-7736
飞霖旅游 FeiLin Travel Inc 951-461-8723
951-200-0172
626-539-5608
佳友旅遊 Luckyer Travel 626-281-2568
Bravo Travel 626-571-1899
来来旅行社 Lai Lai Travel 626-286-6123
完美旅游 Perfect Trans & Travel Service 626-300-3888
800-341-7983