Skip to content

Instantly share code, notes, and snippets.

@mswart
mswart / etc.default.unicorn
Created August 21, 2012 09:10
Init.d-Script for unicorn with bundle and rvm
UNICORN_USER=www-data
UNICORN_GROUP=www-data
BUNDLE_GEMFILE=/var/www/current/Gemfile
RVM_EXE=/usr/local/rvm/bin/rvm
RAILS_ROOT=/var/www/current/
RAILS_ENV=production
RAILS_VERSION=ree
@mswart
mswart / filter.py
Created October 25, 2017 09:14
Filter aptly snapshot with libsolv to selected a consistent set of dependencies like apt would do
#!/usr/bin/python3
import argparse
import json
import os
import re
import signal
import subprocess
import sys
import time