Skip to content

Instantly share code, notes, and snippets.

View chopachom's full-sized avatar

Alexander Petrovich chopachom

View GitHub Profile
@chopachom
chopachom / proxy.go
Created July 26, 2012 13:18 — forked from vmihailenco/proxy.go
Simple TCP proxy in Golang
package main
import (
"encoding/hex"
"flag"
"fmt"
"log"
"net"
)
@chopachom
chopachom / Japanese style
Created February 10, 2012 17:16 — forked from endolith/Has weird right-to-left characters.txt
Unicode smileys emoticons
¯\_(⊙︿⊙)_/¯
⨀_⨀
⨂_⨂
(/◔ ◡ ◔)/
°ﺑ°
(¬_¬)
(´・ω・`)
(ʘ_ʘ)
(ʘ‿ʘ)
(๏̯͡๏ )
@chopachom
chopachom / cors-nginx.conf
Created January 4, 2012 15:58 — forked from michiel/cors-nginx.conf
Wide-open CORS config for nginx
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' 'http://10.140.10.40';
#
# Retreive the patch file and name it idn.patch
...
# Download the archive from ruby forge of Ruby IDN
$ wget http://rubyforge.org/frs/download.php/8555/idn-0.0.2.tar.gz
# Extract the archive
$ tar -zxvf idn-0.0.2.tar.gz
x idn-0.0.2/
x idn-0.0.2/README