Skip to content

Instantly share code, notes, and snippets.

View songlairui's full-sized avatar
🌴
On vacation

lary songlairui

🌴
On vacation
  • Bytedance
  • ShenZhen
View GitHub Profile
@mihow
mihow / load_dotenv.sh
Last active December 22, 2025 19:01
Load environment variables from dotenv / .env file in Bash
# The initial version
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
# My favorite from the comments. Thanks @richarddewit & others!
set -a && source .env && set +a
@jan4984
jan4984 / local.go
Last active September 15, 2018 08:51
integer goproxy http proxy server with shadowsocks-go local
//github.com/shadowsocks/shadowsocks-go/cmd/shadowsocks-local/local.go
import "golang.org/x/net/proxy"
import "github.com/elazarl/goproxy"
import "net/http"
func main(){
//...
parseServerConfig(config)
@pgilad
pgilad / Instructions.md
Last active September 15, 2025 12:12
Generate SSL Certificate for use with Webpack Dev Server (OSX)

Generate private key

$ openssl genrsa -out private.key 4096

Generate a Certificate Signing Request

openssl req -new -sha256 \
@azu
azu / electron.yml
Created September 17, 2019 12:02
Electron Release workflow for GitHub Actions
name: Electron CD
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
@banyudu
banyudu / free-docker-space-in-wsl2.blog.md
Last active December 15, 2025 10:10
WSL2 Docker释放磁盘空间

WSL2 Docker释放磁盘空间

Docker使用久了,会残留很多中间生成的镜像,占用磁盘空间。

要清理Docker镜像,本来是挺简单的,一条命令就搞定了: