Skip to content

Instantly share code, notes, and snippets.

@aarnone
aarnone / shell profile
Created April 1, 2019 13:26
Useful snippets for the shell
alias git-drop-orphan-branches='git fetch -p && git branch -vv | awk '"'"'/: gone]/{print $1}'"'"' | xargs git branch -d'
@aarnone
aarnone / pbcopy-and-pbpaste-in-arch-linux.md
Created May 14, 2018 21:06
Get pbcopy and pbpaste in Arch Linux

Get pbcopy and pbpaste in Arch Linux

First you need the 'xsel' package.

$> pacman -S xsel

Then create aliases.

alias pbcopy='xsel --clipboard --input'

alias pbpaste='xsel --clipboard --output'

@aarnone
aarnone / keybase.md
Last active December 30, 2018 11:50

Keybase proof

I hereby claim:

  • I am aarnone on github.
  • I am aarnone (https://keybase.io/aarnone) on keybase.
  • I have a public key ASDArcn7IrPTuc_E5hTlVjAl349Y6z6MqEwn99x8vHVuGAo

To claim this, I am signing this object:

@aarnone
aarnone / DockerCleanup.md
Last active August 29, 2015 14:23
Docker cleanup procedures

Docker cleanup procedures

Remove unused images

docker rmi $(docker images -q -f dangling=true)

Remove orphan volumes (taken from https://github.com/chadoe/docker-cleanup-volumes)

docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes --dry-run

@aarnone
aarnone / 0_reuse_code.js
Last active August 29, 2015 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console