Skip to content

Instantly share code, notes, and snippets.

View bullshit's full-sized avatar
👨‍🔬
Solutionst

Oskar bullshit

👨‍🔬
Solutionst
View GitHub Profile

Created 2013-12-10

Install logitechmediaserver server on cubieboard 2

Howto install the logitech media server formerly known as squeezebox server on Cubieboard 2 (arm linux) via cubian.

@bullshit
bullshit / openhab.sh
Last active August 29, 2015 13:57 — forked from daangemist/openhab.sh
#! /bin/sh
### BEGIN INIT INFO
# Provides: openhab
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: OpenHAB Daemon
### END INIT INFO
var app = require(process.cwd() + '/app');
var winston = require('winston');
var _ = require('lodash');
// Set up logger
var customColors = {
trace: 'white',
debug: 'green',
info: 'green',
warn: 'yellow',
@bullshit
bullshit / add_mamp_php_to_path.sh
Created April 6, 2014 16:55
Add selected MAMP PHP to PATH
if [ `uname` = "Darwin" ]; then
PHPVER=$(/usr/libexec/PlistBuddy -c "print phpVersion" ~/Library/Preferences/de.appsolute.mamppro.plist)
#echo "Version: $PHPVER"
export PATH=/Applications/MAMP/bin/php/php${PHPVER}/bin:$PATH
fi
config.use_transactional_fixtures = false
config.before(:suite) do
# Do truncation once per suite to vacuum for Postgres
DatabaseCleaner.clean_with :truncation
# Normally do transactions-based cleanup
DatabaseCleaner.strategy = :transaction
end
config.around(:each) do |spec|
@bullshit
bullshit / config
Last active August 29, 2015 14:00
Raspbian 2014-01-07-wheezy kernel 3.10.25 config
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.10.25 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
@bullshit
bullshit / remove.sh
Created August 19, 2014 20:07
remove mein_homematic from ccu2/lxccu
#!/bin/bash
rm -rf /usr/local/etc/config/addons/mh 2>&1 > /dev/null
rm /usr/local/etc/config/addons/www/mh 2>&1 > /dev/null
rm -rf /opt/mh 2>&1 > /dev/null
sed -i 's/\/opt\/mh\/startup.sh/#\/opt\/mh\/startup.sh/g' /etc/init.d/S99eQ3SystemStarted
@bullshit
bullshit / UsesGroovyShell.groovy
Created December 28, 2015 13:06 — forked from itzg/UsesGroovyShell.groovy
Enabling Groovy invokedynamic ("indy") support in a Gradle build
// ....
def compilerConfig = new CompilerConfiguration()
compilerConfig.optimizationOptions.indy = true
def shell = new GroovyShell(compilerConfig)
@bullshit
bullshit / nginx.conf
Created June 3, 2016 00:44 — forked from phpdude/nginx.conf
Nginx image filter + caching of results.
location /resize {
alias /tmp/nginx/resize;
set $width 150;
set $height 100;
set $dimens "";
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) {
set $width $1;
set $height $2;
set $image_path $3;