Skip to content

Instantly share code, notes, and snippets.

View elevendroids's full-sized avatar
🏴‍☠️

Michal Potrzebicz elevendroids

🏴‍☠️
View GitHub Profile
@elevendroids
elevendroids / printf.c
Created February 2, 2015 15:09
Lightweight printf implementation
/*
Copyright 2001, 2002 Georges Menie (www.menie.org)
stdarg version contributed by Christian Ettinger
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@elevendroids
elevendroids / brightness
Created September 7, 2014 21:44
Simple init script that saves and restores display brightness
#!/bin/sh
### BEGIN INIT INFO
# Provides: brightness
# Required-Start: $local_fs
# Required-Stop:
# Default-Start: S
# Default-Stop: 0 6
# Short-Description Provides display brightness persistency on laptop computers
# Description: Provides display brightness persistency on laptop computers