Skip to content

Instantly share code, notes, and snippets.

@JermineHu
JermineHu / listen1_aha_playlist.md
Last active March 2, 2021 08:33
updated by Listen1(http://listen1.github.io/listen1/) at 2021/3/2 下午4:33:05

本歌单由Listen1创建, 歌曲数:116,歌单数:3,点击查看更多

@JermineHu
JermineHu / proxy-shell
Created April 8, 2019 07:47
for proxy
#!/bin/bash
#http_proxy="socks5://127.0.0.1:1080" https_proxy="socks5://127.0.0.1:1080" $* && unset http_proxy && unset https_proxy
export http_proxy="socks5://127.0.0.1:1080"
export https_proxy="socks5://127.0.0.1:1080"
exec ${@:1}
@JermineHu
JermineHu / start-runit
Created February 12, 2019 09:01
Docker, runit, and graceful termination
#!/bin/sh
export PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
exec runsvdir -P /etc/service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
@JermineHu
JermineHu / 0_reuse_code.js
Created March 8, 2017 09:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console