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

大体上来说, 就是确保有一个可执行文件, 然后在/etc/init.d中加入对应的脚本.

举例:有文件, 是可执行文件

/home/tom/dev/helloworld
chmod +x /home/tom/dev/helloworld

到/etc/init.d文件夹中

#1.下载镜像并安装

https://www.raspberrypi.org/documentation/installation/installing-images/windows.md

安装之后, 启动, 默认不会使用全部的sd卡空间, 使用fdisk和resize2fs把剩余空间也使用进来

df -h
sudo fdisk /dev/mmcblk0
p

##Base

sudo apt-get install vim
sudo apt-get install vim-gnome
sudo apt-get install ctags

##Install spf13-vim

https://github.com/spf13/spf13-vim
apt-get install apache2-utils
ab -n <num_requests> -c <concurrency> <addr>:<port><path>
package main

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

import (
	"crypto/md5"
	//"errors"
	"fmt"
	"io/ioutil"
	"os"
	"path/filepath"
package main
import (
"bufio"
"fmt"
"log"
"net/rpc"
"os"
)
@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"
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 / 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"