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
Docker 官方教程, 创建自己的鲸鱼那, 如果使用Ubuntu14.04, 使用文档中的Dockerfile是有问题的. 需要在apt-get 前面加入 DEBIAN_FRONTEND=noninteractive
不然会报错.
效果如下:
```
FROM docker/whalesay:latest
DEBIAN_FRONTEND=noninteractive
@alexniver
alexniver / golang, ubuntu go get in china.md
Last active April 26, 2023 11:15
ubuntu下, 使用shadowsock和Privoxy帮助你在命令行中, 无障碍进行go get

#前言 由于大家都懂的, 国内使用go get的时候, 经常会各种失败, 如果有vpn的话, 打开vpn, 问题就解决了, 但vpn其实挺不灵活的.

相对来说shadowsock则灵活得多.

#解决方案 shadowsock + Privoxy

思路就是, 使用shadowsock建立一个本地sock5代理, 但因为go get 需要http代理, 所以需要使用privoxy把sock5代理转为http代理.

@alexniver
alexniver / using gvm.md
Last active February 20, 2018 20:30
using gvm

install

bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)

using golang version 1.5.1, golang 1.5+ need 1.4 environment

gvm install go1.4
gvm use go1.4
gvm install go1.5.1