Skip to content

Instantly share code, notes, and snippets.

View DamienRobert's full-sized avatar

Damien Robert DamienRobert

View GitHub Profile
@DamienRobert
DamienRobert / arch_img
Last active August 29, 2015 14:28
Archlinux container and vm script
#!/bin/zsh
#Inspired by https://github.com/lucasdemarchi/toolbox/blob/master/arch-installer.sh
set -e
write_file() {
local file=$1
echo "- Writing $file"
cat >$file
}
@DamienRobert
DamienRobert / git-mystash
Created February 26, 2014 10:10
My custom patches to git-stash
#!/bin/sh
#Some custom additions to git-stash.sh (Copyright (c) 2007, Nanako Shiraishi)
#when I am less lazy I should try to submit them upstream
#Additions:
# Commands:
# - dosave (save but don't reset the worktree)
# - popbranch (pop the stash like git stash branch does, git mystash branch does not pop the stash)
# - info (info on stash)