Skip to content

Instantly share code, notes, and snippets.

View grauwoelfchen's full-sized avatar
🐺
Typing with carved wooden keyboard ᕕ( ᐛ )ᕗ

Yasha grauwoelfchen

🐺
Typing with carved wooden keyboard ᕕ( ᐛ )ᕗ
View GitHub Profile
@grauwoelfchen
grauwoelfchen / oswald.mp
Created June 29, 2014 20:22
UML with MetaUML
input metauml;
beginfig(0);
% class
Class.Object("Object")
("+name : string")
();
Class.Animal("Animal")
()
@grauwoelfchen
grauwoelfchen / oswald.dot
Last active August 29, 2015 14:03
UML with graphviz' dot
digraph HelloOswald {
fontname = "Bitstream Vera Sans"
fontsize = 8
node [
fontname = "Bitstream Vera Sans"
fontsize = 8
shape = "record"
]
#!/bin/bash
: ;((__=$?));: '^';((___=${#_}));: '^^';((____=${#_}));: '^_^';((_____=${#_}));: '(^^)';((______=${#_}));: '(^_^)';((_______=${#_}));: '(^_^;)';((________=${#_}));: '(*^_^*)';((_________=${#_}));: '$(^._.^)$';((___________=${#_}));: '(^_^)(^_^)';((____________=${#_}));: '(*^_^*)>(^_^)';((_______________=${#_}));: '(*^_^*)(*^_^*)';((________________=${#_}));: '\(^^)(^@^)(^^)/';((_________________=${#_}));: '(*^_^*)/~(._.;)$';((__________________=${#_}));: '$(*^_^*)$^$(^.^)$';((___________________=${#_}));: '/^(*^_^*)-(*^_^*)^\';((_____________________=${#_}));$(. {{{^._.^}}} &> _);____________________=$(< _);______________________=${____________________:$__-$________:$___}${____________________:$__-$_______:$___}${____________________:$__-$_____________________:$___}${____________________:$__-$_____:$___};_______________________=$($______________________ -${____________________:$__-$________:$___} "\\$__$________________$_____\\$__$________________$___\\$__$__________________$______");_____________
@grauwoelfchen
grauwoelfchen / xroot-stumpish.sh
Last active August 29, 2015 14:01
Stumpish notification via X-session for root for ${PACKAGE} and ${LOGFILE} for `emerge`
#!/bin/sh
if [ $# -lt 1 ]; then
echo "Usage: `basename $0` 'text' ['text']" >&2
exit 2
fi
STUMPISH=/usr/local/bin/stumpish
if [ ${#2} -lt 1 ]; then
@grauwoelfchen
grauwoelfchen / xroot-stumpish.sh
Created May 8, 2014 18:34
Stumpish notification via X-session for root
#!/bin/sh
if [ $# -lt 1 ]; then
echo "Usage: `basename $0` 'text'" >&2
exit 2
fi
STUMPISH=/usr/local/bin/stumpish
LEN=${#1}
@grauwoelfchen
grauwoelfchen / xroot.sh
Last active August 29, 2015 14:01
Command runner script via X-session for root
#!/bin/sh
if [ $# -lt 1 ]; then
echo "Usage: `basename $0` command" >&2
exit 2
fi
su -c "exec env DISPLAY='$DISPLAY' XAUTHORITY='$XAUTHORITY' '$SHELL' -c '$*'"
@grauwoelfchen
grauwoelfchen / rails-environment.md
Last active January 4, 2016 16:18
Environment for debugging for `ruby-stylus` via sprockets.

Environment

  • ruby ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
  • bundler 1.5.1
  • rails 4.0.2
  • sprockets 2.10.1
  • sprockets-rails 2.0.1
  • bower 1.2.8

bower.json

;; decode
(defun http-char (c1 c2 &optional (default #\space))
(let ((code (parse-integer
(coerce (list c1 c2) 'string)
:radix 16
:junk-allowed t)))
(if code
(code-char code)
default)))
@grauwoelfchen
grauwoelfchen / gist:8148383
Last active January 1, 2016 12:59
Openrc runscript for hubot runner script.
#!/sbin/runscript
# Distributed under the terms of the GNU General Public License v2
depend() {
need net
need redis
# need ngircd
need localmount
}
@grauwoelfchen
grauwoelfchen / gist:8148298
Last active January 1, 2016 12:59
Hubot runner for forever with .env file via virtualenv.
#!/bin/sh
ROOT="/var/srv/hubot"
VENV="/usr/local/virtualenvs/hubot"
# virtualenv
source $VENV/bin/activate
# env
while read -r LINE; do