Skip to content

Instantly share code, notes, and snippets.

@caobug
Last active May 23, 2025 15:45
Show Gist options
  • Select an option

  • Save caobug/ce1b6d5e60fa381dc061d3a6bbbdcc63 to your computer and use it in GitHub Desktop.

Select an option

Save caobug/ce1b6d5e60fa381dc061d3a6bbbdcc63 to your computer and use it in GitHub Desktop.

Revisions

  1. caobug renamed this gist Nov 29, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. caobug renamed this gist Nov 29, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. caobug revised this gist Nov 29, 2018. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions Uninstall shadowsocks
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    ```
    #/bin/bash

    launchctl stop com.qiuyuzhou.shadowsocksX-NG.local
    @@ -17,5 +16,4 @@ for pid in $pids; do
    kill -9 $pid
    done

    echo 'uninstall completion.'
    ```
    echo 'uninstall completion.'
  4. caobug created this gist Nov 29, 2018.
    21 changes: 21 additions & 0 deletions Uninstall shadowsocks
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    ```
    #/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.*
    sudo rm -rf ~/Library/Preferences/com.qiuyuzhou.ShadowsocksX-NG.*

    pids=`ps -ef | grep ShadowsocksX-NG | grep Application | awk '{print $2}'`

    for pid in $pids; do
    kill -9 $pid
    done

    echo 'uninstall completion.'
    ```