View systemd-openvpn-suspend.sh
1 2 3 4 5 6 7 8 9 10
#!/bin/sh
 
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
 
if ! which systemctl >/dev/null; then
echo "No systemctl found, systemd is required for this files" 1>&2
exit 1
View lxc-foreach
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
 
# replace this with your rootfs
lxc_root=/data/containers
for n in `lxc-ls`; do
name=n
r=$lxc_root/$n/rootfs
root=$r
c=$lxc_root/$n/config
config=$c
View update-owncloud.sh
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
VERSION="5.0.12"
 
set -e
[[ -e "owncloud-$VERSION.tar.bz2" ]] || wget "http://download.owncloud.org/community/owncloud-$VERSION.tar.bz2"
tar -xf "owncloud-$VERSION.tar.bz2"
#find "owncloud" -type d -exec chmod +rx {} \;
cp -r ../cloud/config "owncloud"
chown -R http:http "owncloud"
mv "owncloud" "owncloud-$VERSION"
View botcommands.py
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python
 
import socket
import subprocess
import os, sys
 
MPV_SOCKET = "/tmp/mpvsocket"
CIDER = "cider.hq.c3d2.de"
IS_PYTHON2 = sys.version_info < (3, 0)
if IS_PYTHON2:
View bgp-filter.rb
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env ruby
# Author: Mic92 <joerg@higgsboson.tk>
# License: WTFPL (C) 2015
#
# TODO
# - support openbgp
 
require "optparse"
 
if (RUBY_VERSION.split(/\./) <=> ["1","9","0"]) == -1
View gitolite-anongit
1 2 3 4 5 6
#/bin/sh
 
# save as /usr/local/bin/gitolite-anongit
# and chmod +x /usr/local/bin/gitolite-anongit
# ForceCommand may depend on the gitolite distribution
/usr/share/gitolite/gl-auth-command anongit "$@"
View evenet
1 2 3 4
172.23.75.0/26 255.255.255.192 172.23.75.0 - 172.23.75.63 172.23.75.1 - 172.23.75.62 62 # eve 
172.23.75.64/26 255.255.255.192 172.23.75.64 - 172.23.75.127 172.23.75.65 - 172.23.75.126 62 # mobile Hosts
172.23.75.128/26 255.255.255.192 172.23.75.128 - 172.23.75.191 172.23.75.129 - 172.23.75.190 62 # alfred(?) 
172.23.75.192/26 255.255.255.192 172.23.75.192 - 172.23.75.255 172.23.75.193 - 172.23.75.254 62 # zu Hause
View bird.conf
1 2 3 4 5 6 7 8 9 10
router id 172.23.75.1;
 
log syslog all;
 
function is_default() {
return (net ~ [0.0.0.0/0]);
}
 
protocol kernel kernel_master {
scan time 20;
View PKGBUILD
1 2 3 4 5 6 7 8 9 10
# Maintainer: Stefan Tatschner <stefan.tatschner@gmail.com>
pkgname=git-extras
pkgver=2.2.0
pkgrel=1
pkgdesc="GIT utilities -- repo summary, commit counting, repl, changelog population and more"
arch=(any)
url="http://github.com/visionmedia/git-extras"
license=('custom:MIT')
depends=('git' 'bash')
source="https://github.com/visionmedia/${pkgname}/archive/${pkgver}.tar.gz"
View keybase.md

Keybase proof

I hereby claim:

  • I am Mic92 on github.
  • I am mic92 (https://keybase.io/mic92) on keybase.
  • I have a public key whose fingerprint is 4ABA 0738 2AD5 7E6B 9AA4 E88D CA41 06B8 D7CC 79FA

To claim this, I am signing this object:

Something went wrong with that request. Please try again.