# colab ```sh !curl https://checkip.amazonaws.com/ !pip install speedtest-cli !speedtest-cli --share ./layer7benchmark -u https://www.jreast.co.jp/multi/en/jreastrewards/ -t 600 -c 24 ``` ## reverse proxy frp ```sh !wget https://github.com/fatedier/frp/releases/download/v0.59.0/frp_0.59.0_linux_amd64.tar.gz !tar xvzf frp_0.59.0_linux_amd64.tar.gz !cp frp_0.59.0_linux_amd64/frpc . !echo $'# frpc.toml\nserverAddr = "125.91.117.169"\nserverPort = 7000\n\nauth.method = "token"\nauth.token = "shinnku123456"\n\n[[proxies]]\nname = "ray"\ntype = "tcp"\nlocalIP = "127.0.0.1"\nlocalPort = 8081\nremotePort = 20811' > frpc.toml !echo $'./frpc -c frpc.toml' > frpc.sh !chmod +x frpc.sh ``` // /usr/local/XrayR/XrayR --config /etc/XrayR/config2.yml ## install xrayr ```sh !wget https://github.com/XrayR-project/XrayR/releases/download/v0.9.4/XrayR-linux-64.zip !unzip XrayR-linux-64.zip !curl -o config.yml https://o.oo0o.ooo/scripts/xray-config/111-colab/config.yml !echo $'./XrayR --config config.yml' > xrayr.sh ``` `curl -o config.yml https://o.oo0o.ooo/scripts/xray-config/112-codespace/config.yml` ## run multiple tasts ```python import os import threading def xrayr(): stream = os.popen('./xrayr.sh') output = stream.read() print("xrayr thread") print(output) def frpc(): stream = os.popen('./frpc.sh') output = stream.read() print("frpc thread") print(output) # creating thread t1 = threading.Thread(target=xrayr, args=()) t2 = threading.Thread(target=frpc, args=()) # starting thread 1 t1.start() # starting thread 2 t2.start() # wait until thread 1 is completely executed t1.join() # wait until thread 2 is completely executed t2.join() # both threads completely executed print("Done!") ```