Example with redis (using https://github.com/bcoe/crapify)
./crapify start --port 7070 --speed 1000
Let this port forwarding the redis through the proxy:
socat TCP-LISTEN:6381,reuseaddr,fork PROXY:localhost:redis:6379,proxyport=7070
Example with redis (using https://github.com/bcoe/crapify)
./crapify start --port 7070 --speed 1000
Let this port forwarding the redis through the proxy:
socat TCP-LISTEN:6381,reuseaddr,fork PROXY:localhost:redis:6379,proxyport=7070
| The folder would looks like that: | |
| . | |
| ├── local-source | |
| │ └── share | |
| │ ├── icons | |
| │ │ └── oomox-CustomOneHalf | |
| │ └── themes | |
| │ └── oomox-CustomOneHalf |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/bash | |
| set -e | |
| DEFAULT_KEY_ID=614C8C06DE5CB261AFC3EEE257F3E6589075F87C | |
| SECRETS_KEY_ID=D1B5E88C16D8BD692D241317CAD86B57997C00AD | |
| DEFAULT_PUB_FILE=anderson-default.pub.gpg | |
| DEFAULT_SECRET_FILE=anderson-default-secret.asc.gpg | |
| SECRETS_PUB_FILE=anderson-secrets.pub.gpg | |
| SECRETS_SECRET_FILE=anderson-secrets-secret.asc.gpg |
| def inter(range1, range2): | |
| return range2[1] >= range1[0] and range2[0] <= range1[1] | |
| testcases = [ | |
| (True, [1, 10], [5, 6]), | |
| (True, [5, 5], [5, 5]), | |
| (True, [1, 5], [5, 10]), | |
| (False, [1, 5], [6, 10]), | |
| ] |
| #!/usr/bin/bash | |
| # Transocks: https://github.com/cybozu-go/transocks | |
| # 1. Install: go get -u github.com/cybozu-go/transocks/... | |
| # Note: depending on your vension of go, you will need the env: GO111MODULE=on | |
| # 2. Create a "transocks" user | |
| # 3. Execute: sudo -u transocks $HOME/go/bin/transocks -f transocks.toml | |
| set -e | |
| stty -echoctl |