Skip to content

Instantly share code, notes, and snippets.

View CMGS's full-sized avatar
🎯
Focusing

CMGS CMGS

🎯
Focusing
View GitHub Profile
@CMGS
CMGS / websocket.py
Created May 2, 2012 03:41
websocket hybi3 support with gunicorn and gevent
import collections
import errno
import re
from hashlib import md5, sha1
import base64
from base64 import b64encode, b64decode
import socket
import struct
import logging
@CMGS
CMGS / subprcess.py
Created May 25, 2012 03:36
Gevent Subprocess Patch
"""Implementation of the standard :mod:`subprocess` module that spawns greenlets"""
import os
import sys
import errno
import fcntl
_subprocess = __import__('subprocess')
from gevent import socket, select, hub
http://112.91.92.99/down_group243/M00/03/18/d5Njak8Zv9IAAAAAK8AAAGM2o4A2382159/World_of_Warcraft_tw.part18.rar?k=SH0V4gfBSWvQ63ZKSJ9CQQ&t=1358410100&u=vip-3061276698-27332627-einyvt9e&s=1048576000&file=World_of_Warcraft_tw.part18.rar
http://112.91.91.76/down_group106/M00/12/02/d5NjEE8ayOkAAAAAK8AAAEbMJg41479525/World_of_Warcraft_tw.part19.rar?k=4H1oSMQTnyL-jSfKNOJn-Q&t=1358410110&u=vip-3061276698-27332627-einyrq8e&s=1048576000&file=World_of_Warcraft_tw.part19.rar
http://112.91.94.14/down_group254/M00/00/2F/d5NjCE8aSF0AAAAAK8AAAAOcZ2U8606840/World_of_Warcraft_tw.part20.rar?k=wFQ9qG7BmXX0DUfPcUxsIA&t=1358410117&u=vip-3061276698-27332627-dwz69lp0&s=1048576000&file=World_of_Warcraft_tw.part20.rar
http://113.105.174.10/down_group29/M00/44/49/cWmuCk8Z_zcAAAAAK8AAADJBr1w5688495/World_of_Warcraft_tw.part21.rar?k=3bPkFbaXTE7yN-uLQNK8kQ&t=1358410126&u=vip-3061276698-27332627-bj7z0865&s=1048576000&file=World_of_Warcraft_tw.part21.rar
http://112.91.91.89/down_group119/M00/11/FC/d5NjHU8Yx1IAAAAAK8AAAD6_bm45294602/World_of
@CMGS
CMGS / README.md
Last active December 11, 2015 11:08 — forked from Ins1ne/README.md

My modified fork of agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

Compatibility

#!/usr/local/bin/python2.7
#coding:utf-8
d = open('c.in','r').read()
d = d.split(',')
f1 = d[::3]
f2 = d[1::3]
f3 = d[2::3]
k = range(32, 123)
@CMGS
CMGS / openssl.py
Created April 9, 2014 14:06 — forked from rixtox/openssl.py
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@CMGS
CMGS / nutcracker_tester.go
Created August 17, 2014 03:03
benchmark nutcracker
package main
import (
"code.google.com/p/go-uuid/uuid"
"flag"
"fmt"
"github.com/garyburd/redigo/redis"
"strings"
"sync"
"time"
@CMGS
CMGS / t.go
Created September 24, 2014 02:53
dynamic set
f := func(opts docker.PushImageOptions, auth docker.AuthConfiguration) error { return nil }
f1 := client.PushImage
v1 := reflect.ValueOf(&(f1)).Elem()
v := reflect.ValueOf(f)
v1.Set(v)
log.Println(client.PushImage(docker.PushImageOptions{}, docker.AuthConfiguration{}))
@CMGS
CMGS / a.go
Created September 24, 2014 07:28
reflect
package main
import (
"fmt"
"github.com/fsouza/go-dockerclient"
"reflect"
)
type Test struct {
*docker.Client
@CMGS
CMGS / proxy.rs
Created November 21, 2014 01:04
proxy
use std::io::TcpListener;
use std::io::{Acceptor, Listener};
fn main() {
let listener = TcpListener::bind("0.0.0.0", 9999);
let mut acceptor = listener.listen();
for stream in acceptor.incoming() {
match stream {
Err(e) => println!("connect failed, {}", e),