Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/sh | |
# HowTo | |
# Put it at /usr/local/bin/armaggeDocker.sh | |
# Give permissions: chmod a+x /usr/local/bin/armaggeDocker.sh | |
read -p "This will stop and delete all running containers and local images. Are you sure that you want to continue? (y/n) " -n 1 -r | |
echo # (optional) move to a new line | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then |
#!/bin/sh | |
# https://coderwall.com/p/guqrca/remove-all-node_module-folders-recursively | |
# $sudo mv /path/to/killAllNodeModules.sh /usr/local/bin/killAllNodeModules | |
# $sudo chmod a+x /usr/local/bin/killAllNodeModules | |
read -p "This will delete all node_modules & bower_componets in current and derived folders. Are you sure that you want to continue? (y/n) " -n 1 -r | |
echo # (optional) move to a new line | |
if [[ $REPLY =~ ^[Yy]$ ]] |
#!/bin/sh | |
# [DevLab](https://github.com/TechnologyAdvice/DevLab) | |
# $sudo mv /path/to/killAllContainers.sh /usr/local/bin/killAllContainers | |
# $sudo chmod a+x /usr/local/bin/killAllContainers | |
read -p "This will stop and delete all running containers. Are you sure that you want to continue? (y/n) " -n 1 -r | |
echo # (optional) move to a new line | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then |
#!/bin/bash | |
clear | |
CUR_DIR=$(pwd) | |
TOTAL=0 | |
OK=0 | |
KO=0 | |
# Let the person running the script know what's going on. |
#!/usr/bin/env bash | |
clear | |
diskutil --version >/dev/null 2>&1 || { echo >&2 "I require diskutil diskutil but it's not installed. Aborting."; exit 1; } | |
diskutil partitionDisk /dev/disk2 1 MBRFormat "MS-DOS FAT32" USB_NAME 805.30M | |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
There are now two ways to approach this:
This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing with either GPG or Krypt.co.
# Based on https://gist.github.com/gfguthrie/9f9e3908745694c81330c01111a9d642#gistcomment-3143229 | |
(...) | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | |
DEFAULT_NODE_VER='default'; | |
while [ -s "$NVM_DIR/alias/$DEFAULT_NODE_VER" ]; do |