Skip to content

Instantly share code, notes, and snippets.

View mcnilz's full-sized avatar
🎖️
working

Martin Schnabel mcnilz

🎖️
working
View GitHub Profile
@mcnilz
mcnilz / vbg.sh
Last active March 26, 2020 11:29
Virtualbox Guest Additions Install
#!/bin/bash
if [ -z "$VERSION" ]; then
if [ -z "$1" ]; then
echo "Missing Version"
exit 1
fi
VERSION="$1"
fi
@mcnilz
mcnilz / install-dev.system.bash
Created March 25, 2020 08:52
install-dev-system
#!/bin/bash
apt-get update
apt-get -y upgrade
apt-get install -y \
git \
git-lfs \
mc \
zsh \
haveged
@mcnilz
mcnilz / rancher-gitlab.yml
Last active March 6, 2019 12:58
rancher-gitlab
apiVersion: v1
kind: ServiceAccount
metadata:
name: gitlab-admin
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: gitlab-admin
### Keybase proof
I hereby claim:
* I am mcnilz on github.
* I am martin_schnabel (https://keybase.io/martin_schnabel) on keybase.
* I have a public key ASATWe7rtj2KCKBXujTXThqHSrb0LIDoCKPtWJmrRLLGWQo
To claim this, I am signing this object:
@mcnilz
mcnilz / gist:1126b3c18faa496776c5
Created March 3, 2016 14:34
docker memory limit
# /etc/default/grub
> GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
sudo update-grub2
angular.module("app")
.directive('formError', function () {
return {
restrict: 'A',
require: '^form',
scope: {
formError: '=formError'
},
link: function (scope, element, attrs, form) {
scope.form = form;
@mcnilz
mcnilz / docker-one-liners.sh
Last active February 1, 2016 08:17
docker one-liners
# list mounts of a container:
docker inspect --format='{{range $mount := .Mounts}}{{$mount.Source}}{{"\n ->\t"}}{{$mount.Destination}}{{"\n"}}{{end}}' $CONTAINER_ID
# for all running containers
for ID in $( docker ps -q ); do docker inspect --format='# {{.Name}}{{":\n"}}{{range $mount := .Mounts}}{{$mount.Source}}{{"\n ->\t"}}{{$mount.Destination}}{{"\n"}}{{end}}' $ID; done
af.dat en_IE.dat gv_GB.dat ms_BN.dat sr_Cyrl_RS.dat
af_NA.dat en_IN.dat ha.dat ms.dat sr_Cyrl_YU.dat
af_ZA.dat en_JM.dat ha_GH.dat ms_MY.dat sr.dat
am.dat en_MH.dat ha_Latn.dat mt.dat sr_Latn_BA.dat
am_ET.dat en_MT.dat ha_Latn_GH.dat mt_MT.dat sr_Latn_CS.dat
ar_AE.dat en_NA.dat ha_Latn_NE.dat nb.dat sr_Latn.dat
ar_BH.dat en_NZ.dat ha_Latn_NG.dat nb_NO.dat sr_Latn_ME.dat
ar.dat en_PH.dat ha_NE.dat ne.dat sr_Latn_RS.dat
ar_DZ.dat en_PK.dat ha_NG.dat ne_IN.dat sr_Latn_YU.dat
ar_EG.dat en_RH.dat haw.dat ne_NP.dat sr_ME.dat