Skip to content

Instantly share code, notes, and snippets.

@caobug
caobug / UninstallShadowsocks.sh
Last active October 13, 2024 14:14
Uninstall shadowsocks from macOS
#/bin/bash
launchctl stop com.qiuyuzhou.shadowsocksX-NG.local
launchctl stop com.qiuyuzhou.shadowsocksX-NG.http
launchctl stop com.qiuyuzhou.shadowsocksX-NG.kcptun
sudo rm -rf /Applications/ShadowsocksX-NG*.app
sudo rm -rf /Library/Application\ Support/ShadowsocksX-NG
sudo rm -rf ~/Library/Application\ Support/ShadowsocksX-NG
sudo rm -rf ~/Library/LaunchAgents/com.qiuyuzhou.shadowsocksX-NG.*
@caobug
caobug / TeamViewer-id-changer.py
Created November 30, 2018 14:11
TeamViewer ID Changer for MAC OS
#!/usr/bin/env python
#coding:utf-8
import sys
import os
import glob
import platform
import re
import random
import string
@caobug
caobug / dc8.sh
Created November 30, 2018 14:14
Change location to DC8
#!/bin/bash
# echo && echo -e "\033[41;36m 请务必仔细阅读相关注释后再运行此脚本,本人不对此脚本运行后所产生的后果负责! \033[0m" && echo && exit 0 # 删除本行后运行
B=USCA_8
bwh_id=xxxxxxx #请到bwh后台 API 里找到 ID 并在此填写
bwh_key=xxxxxxxxxx #请到bwh后台 API 里找到 KEY 并在此填写
info() {
A=(`wget -qO- "https://api.64clouds.com/v1/migrate/getLocations?&veid=${bwh_id}&api_key=${bwh_key}" | cut -d":" -f3 | cut -d"," -f1 | sed 's/\"//g'`)
}
@caobug
caobug / ss-libev+v2ray-plugin.md
Created June 10, 2019 21:56
ss-libe + v2ray-plugin + tls + CentOS-7

v2ray-plugin CentOS-7

购买一个域名 / 或申请一个免费域名(推荐)

配置域名解析

比如 cloudflare,

  1. cloudflare DNS-> 添加一条 A 记录;name=域名,value=vpsIP,ttl=automatic,status=onlyDns
  2. cloudflare Crypto -> SSL = Flexible; 总是开启 HTTPS
@caobug
caobug / gist:8732752e17ad37742b08b3245877cfb1
Created April 1, 2022 05:18 — forked from wishfoundry/gist:7036457
Set OSX default text editor to sublime text 3 instead of TextEdit
defaults write com.apple.LaunchServices LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.3;}'