Skip to content

Instantly share code, notes, and snippets.

View richardgill's full-sized avatar

Richard Gill richardgill

View GitHub Profile
#!/bin/sh
{
echo "This script requires superuser access"
echo "You will be prompted for your password by sudo."
# clear any previous sudo permission
sudo -k
# run inside sudo
sudo sh <<SCRIPT
FROM ubuntu
MAINTAINER Richard Gill <richard@rgill.co.uk>
RUN apt-get -y install python
asdasdsad
asdasdasdasd
@richardgill
richardgill / gist:1471961aac629eaaae7b
Created January 25, 2015 18:23
05eca61cb33b67cb458b99e854eb8a0268d49b00da155e98cdd5a8082cf1d1f92994483e703e929329b2b99b1acee4c85d5b2d0e9228560001b9edd81dd2087774b9aaba3149707f1c093a5697595f77fd7adf3a9008fc5160d6d3a5317523fe9d9dda3b36270c8f9b654f16fefc072f50fd0cf20bdd6a82a4d3df8565ccccbb
419f4d33b43bdbade29ea67ca913b5a6f0f03b2163e9ce4b4bca3a3fe0fe8876f9394c0b1dcfc44614a3f2a5135cf75c18c5e6b9a6b2b673ce7c65a98706c88cc0cb007aef005cf10159fdab9adb4d7ffd1ba232c7eaf284d943203f6300a4d6bb4565cc28f31ab3dd9e7f463522c276dea07b878a88e56bf1756504abc325cc

Weave makes networking docker containers easy.

Containers appear to all be on the same network even if they're not.

daasdasd
asdasdasd
brew install nvm #install the node version manager
# Make sure it gets loaded every time a terminal starts
echo "source $(brew --prefix nvm)/nvm.sh" >> ~/.bash_profile
# Break down!
# echo means print out what follows
# $(brew --prefix nvm) will get evaluated as if you typed it in to a command line.
# >> ~.bash_profile means: add whatever the left hand side of >> evaluated to, to the end of the ~/.bash_profile file.
# ~: means home directory.
Brew
https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion
https://github.com/michaeldfallen/git-radar
Sublime
[SSH Keys](https://help.github.com/articles/generating-ssh-keys/)
@richardgill
richardgill / findJobs.sh
Last active January 6, 2016 15:02
Runs ZDEV job finder.
FIND_LEADS_DIR="find-leads"
FIND_LEADS_FULL_PATH="/tmp/$FIND_LEADS_DIR"
if [ ! -d "$FIND_LEADS_FULL_PATH" ]; then git clone git@github.com:z-dev/find-leads.git $FIND_LEADS_FULL_PATH ; fi
cd $FIND_LEADS_FULL_PATH
git checkout master
git pull origin master
npm run start