I hereby claim:
- I am alshell7 on github.
- I am alshell7 (https://keybase.io/alshell7) on keybase.
- I have a public key ASDmUhbnQRmvZHmS1p70w_PI54g-D7RItT1qPUrFZ31YTgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
docker exec -it redis_server bash redis_server is name of docker container
chown redis:redis -R /etc making sure if the redis server has permissions to write
redis-cli > save enter the cli and save
cp /etc/crontab /tmp/backup.rdb copy from default location of redis docker dump to tmp
docker cp f47052fdc525:/tmp/backup.rdb /tmp/backup.rdb f47052fdc525 is the container id
| wget https://github.com/yudai/gotty/releases/download/v1.0.1/gotty_linux_amd64.tar.gz | |
| tar xvf gotty_linux_amd64.tar.gz | |
| chmod +x gotty | |
| sudo mv gotty /usr/local/bin/ | |
| gotty -version |
| # PS D:\vagrant_test> cat .\Vagrantfile | |
| # Prefix for LAN | |
| BRIDGE_NET="192.168.1." | |
| # Prefix for Internal LAN | |
| INTERNAL_NET="192.168.15." | |
| # The domain that we will use for the entire site | |
| DOMAIN="sample.com" | |
| # An array of hashes with settings for each virtual machine | |
| servers=[ | |
| { |
| private long mLastPostedTime = 0; | |
| private final long threshold = 1000; //1 second | |
| public void postExecution() | |
| { | |
| if (SystemClock.elapsedRealtime() - mLastPostedTime < threshold) { | |
| return; | |
| } | |
| mLastPostedTime = SystemClock.elapsedRealtime(); |