Skip to content

Instantly share code, notes, and snippets.

@wuxiangzhou2010
wuxiangzhou2010 / open_upnp_port.sh
Created December 7, 2019 15:34
open upnp port using miniupnc
#!/bin/bash
ports=(65000 # web
65001 # web
65005 # transmission
32400 # plex
6690 #cloud station
)
protocols=(tcp udp)
cmd="./upnpc-static"
@wuxiangzhou2010
wuxiangzhou2010 / build_mist_wallet.sh
Last active March 15, 2019 08:23
build mist wallet
rm -rf ~/.config/Mis
sudo apt install build-essential python-dev -y
sudo apt install libgconf2-4 -y
curl https://install.meteor.com/ | sh
source ~/.bashrc
curl -o- -L https://yarnpkg.com/install.sh | bash
source ~/.bashrc
@wuxiangzhou2010
wuxiangzhou2010 / settings.json
Created February 8, 2018 08:34 — forked from JohannesHoppe/settings.json
VSCode: proxy settings
// VSCode: Place your settings in this file to overwrite the default settings
{
"http.proxy": "http://user:pass@proxy.com:8080",
"https.proxy": "http://user:pass@proxy.com:8080",
"http.proxyStrictSSL": false
}
tar xf openwrt_with_git.tar.xz
cd openwrt
# update folder to the latest
git pull
./scripts/feeds update packages luci
./scripts/feeds install -a -p luci
pushd package/shadowsocks-libev
git pull
popd
pushd package/chinadns
@wuxiangzhou2010
wuxiangzhou2010 / build_cross_gcc
Last active August 6, 2016 13:15 — forked from preshing/build_cross_gcc
A shell script to download packages for, configure, build and install a GCC cross-compiler.
#!/bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
#-------------------------------------------------------------------------------------------
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.
# If you get an error and need to resume the script from some point in the middle,
# just delete/comment the preceding lines before running it again.