Skip to content

Instantly share code, notes, and snippets.

@lennart
lennart / k81x_conf.c
Created May 29, 2016 16:30 — forked from anonymous/k81x_conf.c
Invert fn keys for Logitech K81x series (Linux)
/*
* Copyright 2012 Mario Scholz <[email protected]>
*
* based on pairing_tool.c from Benjamin Tissoires <[email protected]>
* see also https://lkml.org/lkml/2011/9/22/367
*
* 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.
@lennart
lennart / CMakeLists.txt
Last active August 29, 2015 14:18 — forked from roxlu/.gitignore
cmake_minimum_required(VERSION 2.8)
set(app ocean)
set(sd ${CMAKE_CURRENT_LIST_DIR}/../src/)
include_directories(
${CMAKE_CURRENT_LIST_DIR}/../src
${CMAKE_CURRENT_LIST_DIR}/../extern/include
)
// Generated on 2014-05-02 using generator-angular 0.8.0
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
@lennart
lennart / LICENSE.txt
Created March 14, 2012 17:11 — forked from jed/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@lennart
lennart / gist:1717337
Created February 1, 2012 14:35 — forked from anonymous/gist:1717331
A Gentoo startup script for the newrelic server monitor daemon
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need net
}
start() {
@lennart
lennart / cmds.sh
Created May 29, 2011 11:29 — forked from sabman/cmds.sh
spacialdb live demo
# Live Demo at EuRuCamp Berlin of deploying a routing app to Heroku using @spacialdb
# Goal is to have your own deployment of a location based application that does street routing: http://spacialdb-routing.heroku.com/
# ===============================================
# PREREQUISITES:
# ===============================================
# 1. Get a Heroku account: http://heroku.com
# 2. Email [email protected] so we can give you access to the SpacialDB alpha Heroku addon
/**
The MIT License
Copyright (c) 2008, Shawn P. Garbett (www.garbett.org), Jonathan Hicks
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
function(doc) {
var userID = 500;
var userTags = [
100000036,
100000065,
100000077,
100000046,
100000062,
100000103
];
#===========================================
# Author: Francis Varga
# eMail: [email protected]
# Blog: http://varga-multimedia.com
#===========================================
#
# This is my .gitconfig file
#
# Did you have question ask me ;)...
[core]
module UserHelpers
def current_user_session
return @current_user_session if defined?(@current_user_session)
@current_user_session = UserSession.find
end
def current_user
return @current_user if defined?(@current_user)
@current_user = current_user_session && current_user_session.user
end