Skip to content

Instantly share code, notes, and snippets.

View bullshit's full-sized avatar
👨‍⚕️
Solutionist

Oskar bullshit

👨‍⚕️
Solutionist
View GitHub Profile
@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)
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|
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 / openhab.sh
Last active August 29, 2015 13:57 — forked from danships/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

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 / .gitignore
Last active August 19, 2022 21:27 — forked from RainerBlessing/README
Export Mac OS X keychain to CSV
keychain.csv
keychain.txt