Skip to content

Instantly share code, notes, and snippets.

View slumbi's full-sized avatar

Akos Bontovics slumbi

View GitHub Profile
#!/bin/bash
REV=`zcat /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz | grep '* firmware as of' | head -n 1 | sed -e 's/\ \*\ firmware as of \(.*\)$/\1/'`
rm -rf rasp-tmp
mkdir -p rasp-tmp
mkdir -p rasp-tmp/linux
wget https://raw.github.com/raspberrypi/firmware/$REV/extra/git_hash -O rasp-tmp/git_hash
wget https://raw.github.com/raspberrypi/firmware/$REV/extra/Module.symvers -O rasp-tmp/Module.symvers
@slumbi
slumbi / MethodLogger.java
Last active August 29, 2015 14:07
simple method logger AOP
package fr.aspects;
import org.apache.log4j.Logger;
@Aspect
public class MethodLogger {
Logger logger = Logger.getLogger(MethodLogger.class);
// @Around("execution(* *(..)) && @annotation(Loggable)")
@Around("execution(* *(..))")
@slumbi
slumbi / graphite
Last active December 23, 2015 22:09
Some initial tools to get started on a fresh debian with graphite
prerequisites for development and graphite