since more and more stuff are relate to coding, wordpress is not working good any more. I will move things to io.kiyor.us and possible this site will discontinue later on.( change domain and use as archives )
Read Moregolang ssh example
Looks like all golang ssh example online is not working for new ssh golang repo which from "code.google.com/p/go.crypto/ssh" Finally copy most of code from library’s testing code, and make it work. This is the result /* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. * File Name : ssh.go * Purpose : * Creation Date : 11-18-2013 * Last Modified : Thu Dec 5 23:12:09 2013 * Created By : Kiyor _._._._._._._._._._._._._._._._._._._._._.*/
Read MoreMy vim conf
These day take long time to configure my vim environment, finally make my vim like IDE. Share my experience here. First, this is my .vimrc let $VIMRUNTIME='~/.vim' filetype plugin indent on syntax on " load plugin, need execute before load colorscheme execute pathogen#infect() " header buffer, change your name in *.hd autocmd BufNewFile *.* call CreateFile() autocmd BufWritePre,FileWritePre *.* ks|call LastMod()|'s autocmd...
Read MoreShare my squid.conf
cache_peer jp.kiyor.me parent 45678 45678 no-query acl manager proto cache_object acl localhost src 127.0.0.1/32 ::1 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 acl myrule src all acl ads dstdom_regex “/etc/squid/ad_block.txt” acl custom_ads url_regex “/etc/squid/custom_ad.txt” acl no_local dstdomain .jp acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918...
Read MoreForce local user use proxy
Setup local squid.conf like http_port 45678 transparent ssh to your DD-WRT router iptables -I FORWARD -p tcp -d 192.168.1.2 –dport 45678 -j ACCEPT After accept local server forward make a script like ensquid.sh #!/bin/sh iptables -t nat -I PREROUTING -p tcp -s $1 –dport 80 -j DNAT –to 192.168.1.2:45678 chmod u+x ensquid.sh ./ensquid.sh 192.168.1.x Why I do that: Sucker game console not support use proxy everywhere Like...
Read MoreCracked a Japanese iOS Online game…
These day I was playing a new iOS game named Road to Dragons, ロード・トゥ・ドラゴン. Analysis the file system found all the cache data store form a plist file which is in /Library/Preferences/jp.co.acquire.RTD.plist In my experience this kind of game will connect to server when out of battle. It will use local calculator to calculate the battle result. So it could be cracked during the battle. I found the plist file contain a...
Read MoreInstall scala related binary
Tried to use apt-cache search scala and found ubuntu could easily install scala. But it doesn’t work on MAC. Use port search scala knew that scala in port has different version. Must use something like port install scala-2.9 If you need to compiler the scala code, you must use scalar-2.9 which is not convenient. Two way to change it. First is soft link the binary scala & scalac to scala-2.9 & scalac-2.9 which is not good...
Read More
Recent Comments