content top

My 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 More

Share 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 More

Force 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 More

Cracked 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 More

Install 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

Set some Terminal Environment

Since I used to set up terminal auto bash in /etc/rc.local file but not work. Like alias, export something. I try setup another file to overwrite some stuff make my work more comfortable. This time I set some alias and path in /etc/bashrc That means when I open my terminal(any user), it will auto execute all command from /etc/bashrc. What I add is that: alias ls='ls -G' alias la='ls -a' alias ll='ls -alG' alias grep='grep...

Read More
content top