Skip to content

Instantly share code, notes, and snippets.

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

Oskar bullshit

👨‍🔬
Solutionst
View GitHub Profile
@bullshit
bullshit / .gitignore
Last active August 19, 2022 21:27 — forked from RainerBlessing/README
Export Mac OS X keychain to CSV
keychain.csv
keychain.txt

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 / Install Docker on Raspberry Pi (Arch Linux).md
Created April 11, 2014 21:22
Install Docker on Raspberry Pi (Arch Linux)

Install Docker on Raspberry Pi (Arch Linux)

Prepare SD Card

  1. Download Image
  2. Unzip Image
  3. Copy Image on SD Card (dd if=./ArchLinuxARM-2014.03-rpi.img of=/dev/disk2)
  4. Boot Raspberry Pi

Connect to Pi

  1. Find out IP
@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