Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
This article is now published on my website: Prefer Subshells for Context.
As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/bin/bash | |
NUM=20 # The number of volumes to create | |
DC=2 # The datacenter where the volumes will be created | |
TIER=1 # The tier where the volumes will be created | |
VDC=4 # The virtual datacenter where the volumes will be created | |
SIZE=100 # The size of the volumes to create in MB | |
LOGIN=admin:xabiquo # The credentials | |
for V in `seq 1 ${NUM}`; do |
#!/usr/bin/env python | |
import sys | |
import NZA | |
def delete_volumes_in_pool(pool): | |
print "Removing volumes in pool %s..." % pool | |
volumes = NZA.nms.zvol.get_names_by_prop('volume_name', pool, '') | |
for volume in volumes: | |
try: |