Skip to content

Instantly share code, notes, and snippets.

View KillerCodeMonkey's full-sized avatar
🐒

Bengt Weiße KillerCodeMonkey

🐒
View GitHub Profile
@KillerCodeMonkey
KillerCodeMonkey / cleanDocker.sh
Created December 3, 2015 12:53
Clean up your docker
# remove all exited containers
docker rm -v $(docker ps -a -q -f status=exited)
# remove unused images
docker rmi $(docker images -f "dangling=true" -q)
# docker container that removes unwanted/unused volumes
docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes
@KillerCodeMonkey
KillerCodeMonkey / arch_vagrant
Created November 30, 2015 07:25
Get vagrant running on archlinux
# The provider 'virtualbox' that was requested to back the machine
# 'default' is reporting that it isn't usable on this system. The
# reason is shown below:
# VirtualBox is complaining that the kernel module is not loaded. Please
# run `VBoxManage --version` or open the VirtualBox GUI to see the error
# message which should contain instructions on how to fix this error.
sudo /sbin/vboxconfig
# There was an error while executing `VBoxManage`, a CLI used by Vagrant
@KillerCodeMonkey
KillerCodeMonkey / NFC+IONIC
Created June 16, 2015 11:31
NFC in angular ionic app
<!-- used with <gap:plugin name="com.chariotsolutions.nfc.plugin" /> -->
<!DOCTYPE html>
<html ng-app="app">
<head>
<title>nfc - Test</title>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<meta charset="utf-8" />
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Style -->