content top

moving forward to octopuses

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 More

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

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

Made a proxy & VPN server in EC2 JP area

I made it in order to get Playstaion JP Video Store menu. Whatever the proxy and VPN works well, but the server detected client as outside JP. IP detected as JP IP. I’m said with that… Also some region protected nico video detected as out of JP. Dont’t know why.(maybe Amazon JP IP are in the black list?) I will keep this EC2 instance for my friends who in China. In order to let them play JP online game more stable.

Read More
content top