Skip to content

Instantly share code, notes, and snippets.

View hellekin's full-sized avatar
💭
---____________________________

Free software is active resistance. hellekin

💭
---____________________________
View GitHub Profile
@hellekin
hellekin / gist:50351
Created January 22, 2009 00:12
Write "hello, world" on a PNG
#!/usr/bin/env ruby
require 'rubygems'
require 'mini_magick'
BLANK = 'blank.png' # 1x1px white png
$text = 'hello, world' # text to write
img = MiniMagick::Image.from_file(BLANK)
### P0wn1e now lives in http://github.com/hellekin/p0wn1e
#!/usr/bin/env ruby1.8
#
# p0wn1e is the hackerspaces.org notifier.
# It reads an ATOM feed and send updates to identi.ca
#
################################################################################
### BEGIN CONFIGURATION
@hellekin
hellekin / stream.sh
Created October 15, 2009 23:21
Easy OGG stream to shoutcast using Gstreamer
#!/bin/sh
#
# Easy OGG stream to shoutcast using Gstreamer
usage()
{
echo "$(basename $0) host[:port] password [mount]"
echo " Defaults: port 8000, mount $(hostname -s).ogg"
}
@hellekin
hellekin / elgg.el
Created November 4, 2010 15:55
Setup Emacs for Elgg Coding Standard (and save a headache)
(defun php-mode-elgg-hook ()
(setq indent-tabs-mode t
tab-width 4
c-basic-offset 4
c-insert-tab-function 'insert-tab)
)
(add-hook 'php-mode-hook 'php-mode-elgg-hook)
@hellekin
hellekin / elgg.example.org-nginx.conf
Created December 26, 2010 20:46
A sample Nginx configuration for Elgg-1.8
## NginX VirtualHost Configuration for elgg.example.org
#
# Copyright 2010 Lorea.org
# This file is part of Lorea Node.
# License: GNU Affero General Public License
#
server {
listen 80;
server_name elgg.example.org;
We couldn’t find that file to show.
@hellekin
hellekin / address.rb
Created February 6, 2011 23:43
A Rack middleware (at this point, for Rails) to handle Nginx mail authentication proxy.
#
# == Mail::Address extensions
#
# Add support for local extension: user+extension@domain.tld
#
module Mail
class Address
def local_user
local.to_s.split('+', 2).first
end
@hellekin
hellekin / zsh_raster
Created November 28, 2011 17:01
Display an animated colored bar in zsh
#
# ZSH Raster -- Spice up your .zshrc
#
# {{{ Copyright 2011 Hellekin O. Wolf <hellekinλcepheide*org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@hellekin
hellekin / .zsh-prompt
Created November 28, 2011 19:43
not yet a promptinit theme, but pretty nice already
# -*- sh-mode -*-
#
## ZSH PROMPT
#
# {{{ PROMPT SETTINGS
PROMPT_SUBST=1 # Enable prompt expansion
PROMPT_BANG=1 # Enable ! as history event number
PROMPT_PERCENT=1 # Enable % parameter expansion
@hellekin
hellekin / flattr-lorea.md
Created December 15, 2011 07:10
Flattr Lorea

Flattr this git repo