Skip to content

Instantly share code, notes, and snippets.

View nils-werner's full-sized avatar

Nils Werner nils-werner

View GitHub Profile
#!/usr/bin/env python
import numpy as np
import pyaudio
import scipy.io.wavfile as wav
import random
import time
import gc
from numpy import zeros, mat, matrix, sqrt, sin, arange, pi, exp, cos, array, dot, max, abs, int16, eye
@nils-werner
nils-werner / .bash_completion
Last active December 17, 2015 12:59
Autocompletion for Composer and Artisan
# Put this either in
#
# 1. a new file called ~/.bash_completion
# 2. your ~/.bashrc
#
_composer()
{
local cur=${COMP_WORDS[COMP_CWORD]}
local cmd=${COMP_WORDS[0]}
@nils-werner
nils-werner / config.txt
Created October 31, 2012 11:30
OpenELEC Raspi Config
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
# Inspired and partly copied from:
# http://youresuchageek.blogspot.fr/2012/09/howto-raspberry-pi-openelec-on.html
#
# 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 2, or (at your option)
# any later version.
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" media="screen" href="http://symphony2.localhost/symphony/assets/css/symphony.css">
<link rel="stylesheet" type="text/css" media="screen" href="http://symphony2.localhost/symphony/assets/css/symphony.legacy.css">
<link rel="stylesheet" type="text/css" media="screen" href="http://symphony2.localhost/symphony/assets/css/symphony.grids.css">
<link rel="stylesheet" type="text/css" media="screen" href="http://symphony2.localhost/symphony/assets/css/symphony.frames.css">
<link rel="stylesheet" type="text/css" media="screen" href="http://symphony2.localhost/symphony/assets/css/symphony.forms.css">
<link rel="stylesheet" type="text/css" media="screen" href="http://symphony2.localhost/symphony/assets/css/symphony.tables.css">
<?php
Class extension_ownlogin extends Extension{
public function getSubscribedDelegates() {
return array(
array(
'page' => '/backend/',
'delegate' => 'AdminPagePreGenerate',
'callback' => 'changeLoginForm'
@nils-werner
nils-werner / gist:2870287
Created June 4, 2012 19:22
Symphony on Raspi
Engine Initialisation 0.0003 s
Page creation process started 0.2407 s
XML Built 4.8478 s
XML Generation 0.3584 s
Page Built 5.4932 s
XSLT Transformation 0.5006 s
Page creation complete 6.2352 s
bahn_ds 0.0531 s from 1 query
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by xbmc configure 11.9.2, which was
generated by GNU Autoconf 2.67. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
@nils-werner
nils-werner / .gitconfig
Created February 15, 2012 10:39
Exceprt of my .gitconfig
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
<?xml version="1.0" encoding="UTF-8"?>
<html>
<head>
<link rel="stylesheet" href="workspace/assets/style.css"/>
</head>
<body>
<div id="head">
<h1>Title</h1>
</div>
<div id="package">
@nils-werner
nils-werner / .gitconfig
Created December 8, 2011 12:51
Git Alias for displaying number of commits between two branches
[alias]
between = !sh -c 'echo $1 $(git log --pretty=oneline ${2}..$1 | wc -l) ahead && echo ${2:-$(git name-rev --name-only HEAD)} $(git log --pretty=oneline $1..$2 | wc -l) ahead' -