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:
def sha1Hash(toHash): | |
try: | |
messageDigest = hashlib.sha1() | |
stringM = str(toHash) | |
byteM = bytes(stringM, encoding='utf') | |
messageDigest.update(byteM) | |
return messageDigest.hexdigest() | |
except TypeError: | |
raise "String to hash was not compatible" |
# 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=[ | |
{ |
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 |