Skip to content

Instantly share code, notes, and snippets.

View mrmuxl's full-sized avatar

mrmuxl mrmuxl

View GitHub Profile
@eahydra
eahydra / calcSpeed_linux.go
Created August 5, 2013 09:25
用于测试golang的网络单链接性能
View calcSpeed_linux.go
// +build linux
package main
type TransferSpeed struct{}
var RSpeed *TransferSpeed = NewTransferSpeed()
var WSpeed *TransferSpeed = NewTransferSpeed()
func UpdateReadIO(bytes uint32) {
return
View semtex.c
/*
* linux 2.6.37-3.x.x x86_64, ~100 LOC
* gcc-4.6 -O2 semtex.c && ./a.out
* 2010 sd@fucksheep.org, salut!
*
* update may 2013:
* seems like centos 2.6.32 backported the perf bug, lol.
* jewgold to 115T6jzGrVMgQ2Nt1Wnua7Ch1EuL9WXT2g if you insist.
*/
@suziewong
suziewong / git.md
Last active January 17, 2024 16:11
github的多人协作?how to 贡献代码?
View git.md

github的多人协作

  1. github上你可以用别人的现成的代码 直接 git clone 即可了

  2. 然后你也想改代码或者贡献代码咋办?

Fork

@mreiferson
mreiferson / gist:4039222
Created November 8, 2012 14:48
Example NSQ reader in Go - simplified nsq_to_http
View gist:4039222
const (
ModeAll = iota
ModeRoundRobin
)
type Publisher interface {
Publish(string, []byte) error
}
type PublishHandler struct {
@ninehills
ninehills / wr703n-openwrt.md
Last active December 9, 2022 13:37
WR703N OpenWrt 配置流程
View wr703n-openwrt.md

WR703N OpenWrt 配置流程

下载安装

访问WR703N在OpenWrt的[Wiki页][wr703n-openwrt],然后在Flashing一节中找到下载链接:[squashfs-factory.bin][flash.bin],下载后别忘了[比对md5][md5sum]。[1]

进入路由器管理界面,出厂配置为http://192.168.1.1,用户名和密码均为admin,然后进入固件更新,选择下载的文件,然后更新。

@spikebike
spikebike / client.go
Created March 29, 2012 01:13
TLS server and client
View client.go
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)