Skip to content

Instantly share code, notes, and snippets.

@leon
leon / Grunt.scala
Last active Sep 3, 2016
Playframework 2.2 Grunt Runner
View Grunt.scala
import sbt._
import Keys._
import java.net._
import java.io.File
import play.PlayRunHook
/*
Grunt runner should be in project directory to be picked up by sbt
*/
object Grunt {
@azbesthu
azbesthu / get-kernel-source.sh
Last active Jul 3, 2020
get kernel source for current rpi raspbian wheezy kernel
View get-kernel-source.sh
#!/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