Skip to content

Instantly share code, notes, and snippets.

Verifying my Blockstack ID is secured with the address 16JvWarSzdGfSrv7xZjefM3ai2BGEgSFyG https://explorer.blockstack.org/address/16JvWarSzdGfSrv7xZjefM3ai2BGEgSFyG
# 1. TAKES A FOLDER OF IMAGES (in this case /supplied-images)
# 2. OPTIMIZES THEIR FORMAT TO MAKE AS LIGHTWEIGHT AS POSSIBLE FOR THE CLIENT DEVICE
# 3. JOB CAN TAKE TIME BUT THIS IS VERY POWERFUL WHEN ALLOWED TO RUN OVER 10 MINUTES
# 4. GENERATES DIFFERENT SIZES - Maintanins aspect ratio - /www/images
# 5. Also generates a JSON file referencing each image
# SIZES - xsmall, small, medium, large, xlarge, xxlarge, xxxlarge
# Delete folder if it already exists
rm -r -f www/images
@FintanK
FintanK / COMMANDS.txt
Last active June 18, 2017 07:34
Install specific versions of Node.js with NVM
NVM
Install NVM
> curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
> export NVM_DIR="$HOME/.nvm"
> [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
> command -v nvm # verifies install
@FintanK
FintanK / gist:5273e85feabec9ef38f0e39c058384c9
Last active April 12, 2016 15:23
Create a docker machine
docker-machine create --driver virtualbox dev
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.101:2376"
export DOCKER_CERT_PATH="/Users/fintankearney/.docker/machine/machines/dev"
export DOCKER_MACHINE_NAME="dev"