- sudo chmod -R a+w /opt/Postman/
星期五, 9月 18, 2020
星期二, 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.
星期四, 4月 23, 2020
Bind / Unbind Low Port Number (less than 1024) to Some Program
- sudo setcap CAP_NET_BIND_SERVICE=+eip /path/to
- (/path/to can bind lower port without sudo)
- sudo setcap -r /path/to
星期五, 3月 27, 2020
HashiCorp Vault in Docker
Including this basically, but some extra arguments required:
- docker run --cap-add=IPC_LOCK -e 'VAULT_LOCAL_CONFIG={"backend": {"file": {"path": "/vault/file"}}, "default_lease_ttl": "168h", "max_lease_ttl": "720h", "ui": "true", "listener": {"tcp": {"address": "0.0.0.0:8200", "tls_disable": "true"}}}' -d --name vault -p 8200:8200 vault server
Then, you can visit http://localhost:8200/ui for initializing.
星期五, 2月 14, 2020
星期一, 2月 10, 2020
Docker CAS steps
- docker run -d --name cas -p 8443:8443 apereo/cas:v6.1.3
- [optional] docker logs cas, "<The following profiles are active: standalone>" shown.
- append "127.0.0.1 cas.example.org" to /etc/hosts
- visit https://cas.example.org:8443/cas
- login username: casuser, password Mellon
訂閱:
文章 (Atom)