Skip to content

Instantly share code, notes, and snippets.

Jialin Wu linnv

Block or report user

Report or block linnv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
linnv / qps-rate-limiting.go
Last active Mar 14, 2019
HTTP QPS rate limiting in Golang
View qps-rate-limiting.go
package main
import (
linnv / adding-version.go
Last active Sep 2, 2017
auto update app version from git for Golang
View adding-version.go
package main
import (
var (
Version = "1.0.0"
linnv / mongodb-multi-collection-query-by-go.go
Last active Jun 6, 2017
multi collection querying using aggregation pipeline implemented by go
View mongodb-multi-collection-query-by-go.go
// import (
// "fmt"
// "time"
// mgo ""
// ""
// )
// ``` cmd in mongo shell
// db.Slot.aggregate([
linnv / redis-sub-pub-golang-demo.go
Last active Jul 11, 2016
redis sub/pub demo implement by golang
View redis-sub-pub-golang-demo.go
package main
import (
#!/usr/bin/env bash
cids=`docker ps -a | awk 'FNR>1 {print $1}'`
function stop() {
for v in $cids
echo "stop "$v
docker stop $v
You can’t perform that action at this time.