Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
mmh..

Udo Kramer optikfluffel

🤔
mmh..
View GitHub Profile
View bumpme
Wed Jul 12 09:59:04 UTC 2017
@optikfluffel
optikfluffel / ex_doc post-commit hook
Last active Aug 29, 2015
After setting up my gh-pages branch according to a short howto from chrisjacob (https://gist.github.com/chrisjacob/825950) I added this little post-commit hook to automatically update the docs generated from ex_doc for a little Elixir playground I have.
View ex_doc post-commit hook
#!/bin/bash
git checkout master
mix docs
cd docs/
git checkout gh-pages
git add .
git commit -m "update documentation"
git push origin gh-pages
View keybase.md

Keybase proof

I hereby claim:

  • I am optikfluffel on github.
  • I am optikfluffel (https://keybase.io/optikfluffel) on keybase.
  • I have a public key ASDRu8qiCRf9rzyr0ZaYBOyh0j-NbOV2glWv1ikhb9nM9Qo

To claim this, I am signing this object:

@optikfluffel
optikfluffel / kitty.zsh
Created Feb 2, 2014
zsh function to download an image from placekitten.com
View kitty.zsh
kitty() { command wget -O kitty.jpg http://placekitten.com/"$2"/"$3" }
@optikfluffel
optikfluffel / coderwall.coffee
Created Nov 19, 2012
Display your coderwall.com badges without using a library like jQuery
View coderwall.coffee
# Display your coderwall.com badges without using a library like jQuery
# CONFIGURE your username
username = 'optikfluffel'
url = "http://www.coderwall.com/#{username}.json?callback=processJSON"
loadJSON = (url) ->
head = document.getElementsByTagName('head')[0]
newScript = document.createElement('script')
@optikfluffel
optikfluffel / logstash.conf
Created Sep 4, 2012 — forked from jippi/rc.d
Logstash Init script
View logstash.conf
input {
file {
type => nginx_web
path => ["/var/log/nginx/*"]
exclude => ["*.gz"]
}
}
filter {
grok {