Skip to content

Instantly share code, notes, and snippets.

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

Oskar bullshit

👨‍🔬
Solutionst
View GitHub Profile
@bullshit
bullshit / influxdb.conf
Created November 18, 2016 17:23 — forked from acherunilam/influxdb.conf
Nginx config for InfluxDB HA
http {
client_max_body_size 20M;
upstream influxdb {
server server1:8086;
server server2:8086;
}
upstream relay {
server server1:9096;
server server2:9096;
@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;
@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 / README.md
Last active January 29, 2020 07:20
LIRC patch instruction/how-to for USB Infrared Toy from Dangerous Prototypes

LIRC patch instruction/how-to for USB Infrared Toy from Dangerous Prototypes

This is a instruction to patch the usb infrared toy driver into lirc sources. Most of the work is done by Peter Kooiman

Requirements

# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false
#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false
@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 / 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 / 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
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|