Skip to content

Instantly share code, notes, and snippets.

View alexniver's full-sized avatar
🏠
Working from home

alexniver

🏠
Working from home
View GitHub Profile
quick'n'dirty for linux:
./steamcmd.sh
login anonymous
force_install_dir yourdirectoryhere
app_update 294420 -beta latest_experimental
如果报错
@alexniver
alexniver / golang_http_post.MD
Created November 21, 2016 02:46
golang http post 示例模板
package main

import (
    "bytes"
    "fmt"
    "net/http"
    "net/url"
    "strconv"
)
@alexniver
alexniver / webpack.config.js
Created August 21, 2016 19:18 — forked from learncodeacademy/webpack.config.js
Sample Basic Webpack Config
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"
mkdir test1 # dir path must not contine 'react', will cause error
npm init

set info

npm install --save react react-dom redux react-redux immutable
npm install --save-dev webpack babel-loader babel-preset-es2015 babel-preset-react
@alexniver
alexniver / bounded.go
Last active July 24, 2016 12:07
Edit from https://blog.golang.org/pipelines, fan in fan out. show use time.
package main
import (
"crypto/md5"
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
//"sort"
package main
import (
"bufio"
"fmt"
"log"
"net/rpc"
"os"
)
package main

import (
	"crypto/md5"
	//"errors"
	"fmt"
	"io/ioutil"
	"os"
	"path/filepath"
package main

import (
	"crypto/md5"
	"fmt"
	"io/ioutil"
	"os"
	"path/filepath"
	"runtime"
apt-get install apache2-utils
ab -n <num_requests> -c <concurrency> <addr>:<port><path>