git show <hash>:<file>
git log -p <filename>
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Our db is hosted on Amazon. Our web server can connect to the db. Connections to the db are not allowed outside of the web server.
This creates a tunnel from my local machine to the web server:
ssh -N -L 3307:my-rds-db.us-east-1.rds.amazonaws.com:3306 ec2-my-web-server.compute-1.amazonaws.com
This is a document for managing LetsEncrypt certificates on AWS using AWS Certificate Manager and configuring on CloudFront using the AWS CLI.
Follow the instructions to set up the certbot
and aws
commands on your local machine:
# supervisor | |
# | |
# Author: Günter Grodotzki <gunter@grodotzki.co.za> | |
# Version: 2015-04-25 | |
# | |
# set param "SUPERVISE=enable" to activate | |
# | |
packages: | |
yum: | |
python27-setuptools: [] |
curl -X<REST Verb> <Node>:<Port>/<Index>/<Type>/<ID>
# Elasticsearch Cheatsheet - an overview of commonly used Elasticsearch API commands | |
# cat paths | |
/_cat/allocation | |
/_cat/shards | |
/_cat/shards/{index} | |
/_cat/master | |
/_cat/nodes | |
/_cat/indices | |
/_cat/indices/{index} |
My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)