This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EVAL "local keys = redis.call('keys', ARGV[1]) \n for i=1,#keys,5000 do \n redis.call('del', unpack(keys, i, math.min(i+4999, #keys))) \n end \n return keys" 0 PUT_PREFIX_TO_DELETE_HERE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download gremlin console (http://tinkerpop.apache.org/downloads.html), then: | |
unzip apache-tinkerpop-gremlin-console-3.3.3-bin.zip | |
cd apache-tinkerpop-gremlin-console-3.3.3-bin | |
# in /conf, create a neptune yaml file with following properties (see https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-console.html) | |
hosts: [AWS NEPTUNE ENDPOINT] | |
port: 8182 | |
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0, config: { serializeResultToString: true }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adapted from https://loige.co/using-lets-encrypt-and-certbot-to-automate-the-creation-of-certificates-for-openvpn/ | |
* SSH to the open vpn server: | |
ssh -i .ssh/_THE_KEY_TO_USE_ openvpnas@_THE_SERVER_NAME_OR_IP_ | |
* Install Certbot: | |
sudo apt-get -y install software-properties-common | |
sudo add-apt-repository -y ppa:certbot/certbot | |
sudo apt-get -y update | |
sudo apt-get -y install certbot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# push relevant tags when pushing branches | |
git config --global push.followTags true | |
# Make git pull do a --recurse-submodules flag on each pull | |
git config --global submodule.recurse true | |
# Make git push do an on-demand try of pushing sub-modules before pushing main repos | |
git config --global push.recurseSubmodules on-demand | |
# push only current branch on a push |