Skip to content

Instantly share code, notes, and snippets.

View CMGS's full-sized avatar
🎯
Focusing

CMGS CMGS

🎯
Focusing
View GitHub Profile
@CMGS
CMGS / gist:b56b7d3f121cc3be7045
Created December 26, 2014 03:50
nginx conf
user root;
worker_processes 8;
daemon off;
error_log /root/error.log;
pid /root/nginx.pid;
events {
worker_connections 102400;
multi_accept on;
@CMGS
CMGS / s.log
Created December 22, 2014 06:57
4110 --- SIGCHLD (Child exited) @ 0 (0) ---
4109 --- SIGCHLD (Child exited) @ 0 (0) ---
4108 --- SIGCHLD (Child exited) @ 0 (0) ---
4113 --- SIGCHLD (Child exited) @ 0 (0) ---
4112 --- SIGCHLD (Child exited) @ 0 (0) ---
4108 --- SIGCHLD (Child exited) @ 0 (0) ---
4115 --- SIGCHLD (Child exited) @ 0 (0) ---
4108 --- SIGCHLD (Child exited) @ 0 (0) ---
4108 --- SIGCHLD (Child exited) @ 0 (0) ---
4108 --- SIGCHLD (Child exited) @ 0 (0) ---
@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),
@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 / 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 / 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 / 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 (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
#!/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 / 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

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