Skip to content

Instantly share code, notes, and snippets.

@lneoe
lneoe / launchctl manager clash
Last active November 15, 2020 14:27
use lanuchctl manager clash daemon
$ lanuchctl load path_for_plist
$ lanchctl list | grep 'clash'
$ lanchctl start 'clash tag'
$ lanchctl unload path_for_plist
@lneoe
lneoe / uninstall_vmware.sh
Created December 4, 2018 02:11
Completely uninstall VMWare on macOS
#!/usr/bin/env bash
# Usage: bash uninstall_vmware.bash
remove() {
entry="$1"
echo -ne "Removing $entry ["
sudo rm -rf "$entry"
if [[ ! -e "$entry" ]]; then
echo -ne "OK"

Keybase proof

I hereby claim:

  • I am lneoe on github.
  • I am lneoe (https://keybase.io/lneoe) on keybase.
  • I have a public key whose fingerprint is 4D0B 18CA ED98 CF72 93F9 245B F960 6978 C380 71DC

To claim this, I am signing this object:

@lneoe
lneoe / .config
Created January 26, 2018 04:06
github ssh use proxy
Host github github.com
Hostname github.com
User git
ProxyCommand nc -x 127.0.0.1:9000 %h %p
@lneoe
lneoe / .tmux.conf
Last active May 4, 2023 07:01
tmux 配置
# reload settings # 重新读取加载配置文件
bind R source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded..."
# Remap window(pane?) navigation to vim
# 用 vim 的方式在窗格间移动光标
unbind-key j
bind-key j select-pane -D
unbind-key k
bind-key k select-pane -U
unbind-key h
@lneoe
lneoe / chinarouter.sh
Created June 4, 2017 03:39
auto generate chnroute list
[ -r chnroute.txt ] || curl 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | grep ipv4 | grep CN | awk -F\| '{ printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > chnroute.txt
@lneoe
lneoe / layout
Created April 6, 2017 07:53
tmux window 切割成四格布局
# 使用四格布局
selectp -t 0
split-window -v
selectp -t 0
split-window -h
selectp -t 2
split-window -h
selectp -t 0
# 你可以从该 URL 下载这个配置文件: http://surge.run/config-example/ios.conf
# 用编辑器编辑后,再通过 iTunes, URL, AirDrop 或者 iCloud Drive 复制回 iOS 设备
# Version 2.0
[General]
# 日志等级: warning, notify, info, verbose (默认值: notify)
loglevel = notify
# 跳过某个域名或者 IP 段,这些目标主机将不会由 Surge Proxy 处理。(在 macOS
# 版本中,如果启用了 Set as System Proxy, 那么这些值会被写入到系统网络代理
# 设置中.)
@lneoe
lneoe / mpv.conf
Created May 30, 2016 12:12
mpv 配置
# Video
display-fps=60
autofit=100%x100%
# Volume
volume=100
# Subtitles
sub-auto=fuzzy
sub-text-font-size=48
@lneoe
lneoe / .bash_profile
Created May 22, 2016 10:09
enable_disable_http_proxy
function enable_proxy(){
export http_proxy=http://127.0.0.1:8118
export https_proxy=http://127.0.0.1:8118
}
function disable_proxy(){
unset http_proxy https_proxy
}