星期二, 5月 19, 2020

Building private and cheaper ngrok-like tunnels

  • In mrvm.net, you can cost USD$4 / year for 1 IPv4 address and 20 ports. In my case, 198.204.227.x 21001 ~ 21020.
  • The ssh for mrvm.net is using another port. So you can control your VPS like ssh user@198.204.227.x -p 21021.
  • In noip.com, you can register 3 free domain names like abc.hopto.org or xyz.ddns.net.
  • Using inlets, you can expose your intranet service on the cloud:
    • VPS
      • export token=$(head -c 16 /dev/urandom | sha1sum | cut -d" " -f1)
      • inlets server --port=21001 --token=$token
    • DEV
      • python -m SimpleHTTPServer 8000 (or your service)
      • inlets client --remote=abc.hopto.org:21001 --upstream=http://localhost:8000 --token=...
    • Client
      • curl http://abc.hopto.org:21001

星期四, 5月 14, 2020

Install Appium on CentOS 7

  • Refer this guide, install Node.js and npm.
  • If you following this guide immediately, Appium install will fail caused by EACCES. So refer this guide for reinstall nvm forcibly.
  • Relogin.
  • Reinstall npm and Node.js by nvm, command: "nvm install node".
  • Now you can install Appium without error.