Created
June 1, 2018 03:50
-
-
Save gavinzhou/60dd5e78ef05c8917853a5ea9d834468 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt update -qq | |
g++ | |
export PROTOBUF_VERSION=3.5.1 | |
apt install unzip -y | |
mkdir ~/temp && cd ~/temp && wget "https://github.com/google/protobuf/releases/download/v$PROTOBUF_VERSION/protoc-$PROTOBUF_VERSION-linux-x86_64.zip" && unzip protoc-$PROTOBUF_VERSION-linux-x86_64.zip && mv include/* /usr/local/include/ && mv bin/* /usr/local/bin/ && cd ~/ && rm -rf ~/temp | |
apt install wget -qq | |
cd .. | |
rm -rvf temp | |
mkdir ~/temp && cd ~/temp && wget "https://github.com/google/protobuf/releases/download/v$PROTOBUF_VERSION/protoc-$PROTOBUF_VERSION-linux-x86_64.zip" && unzip protoc-$PROTOBUF_VERSION-linux-x86_64.zip && mv include/* /usr/local/include/ && mv bin/* /usr/local/bin/ && cd ~/ && rm -rf ~/temp | |
go | |
apt install golang -qq | |
pwd | |
pwd | |
cd /go/ | |
mkdir GOPATH=/go | |
export GOPATH=/go | |
echo $GOPATH | |
go env GOPATH | |
ll | |
cd | |
go get -d github.com/ry/v8worker2 | |
apt install git -yqq | |
export V8WORKER2_OUT_PATH=$HOME/v8worker2_out | |
$GOPATH/src/github.com/ry/v8worker2/build.py --use_ccache --out_path | |
go get -d github.com/ry/v8worker2 | |
go get -u github.com/golang/protobuf/proto | |
go get -u github.com/spf13/afero | |
go get -u github.com/golang/protobuf/protoc-gen-go | |
go get -u github.com/jteeuwen/go-bindata/... | |
export PATH="/go/bin:$PATH" | |
protoc-gen-go | |
$GOPATH/src/github.com/ry/v8worker2/build.py --use_ccache --out_path | |
apt install python -yqq | |
$GOPATH/src/github.com/ry/v8worker2/build.py --use_ccache --out_path | |
$GOPATH/src/github.com/ry/v8worker2/build.py --use_ccache --out_path $V8WORKER2_OUT_PATH | |
apt install -yqq pkg-config | |
apt-get install libperl-dev libgtk2.0-dev -yqq | |
$GOPATH/src/github.com/ry/v8worker2/build.py --use_ccache --out_path $V8WORKER2_OUT_PATH | |
df -h | |
yarn | |
apt install yarn -yqq | |
yarn | |
cd /go/src/github.com/ry/deno/ | |
yarn | |
npm | |
apt install node | |
apt install npm | |
apt remove yarn | |
npm i -g yarn | |
yarn | |
whereis yarn | |
/usr/local/bin/yarn | |
more /usr/bin/yarn | |
apt-get remove yarn | |
rm /usr/bin/yarn | |
yarn | |
sudo su - | |
su - | |
echo $PATH | |
yarn | |
ll | |
yarn | |
cd /usr/bin/ | |
ln -s /usr/local/bin/yarn yarn | |
cd | |
cd - | |
cd /go/src/github.com/ry/deno/ | |
make lint | |
make test | |
more Makefile | |
ll | |
mroe main.go | |
more main.go | |
go build ./... | |
go get -u github.com/ry/deno/... | |
make | |
make deno | |
pwd | |
make | |
make deno | |
cd $GOPATH/src/github.com/ry/deno | |
make | |
more Makefile | |
cd cmd/ | |
cd .. | |
vi Makefile | |
/msg.pb.go | |
vim Makefile | |
apt install vim -y | |
vim Makefile | |
go build -o deno ./cmd | |
./deno | |
./deno testdata/001_hello.js | |
more testdata/001_hello.js | |
./deno testdata/001_hello.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment