Skip to content

Instantly share code, notes, and snippets.

Daniel Widerin saily

Block or report user

Report or block saily

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am saily on github.
  • I am widerin ( on keybase.
  • I have a public key ASBt_C-qgCfevYvxqwqyNCkGSYmSzIsqqs_EEhFxrY7dawo

To claim this, I am signing this object:

saily / supervisord.service
Last active May 28, 2016 — forked from tonyseek/supervisord.service
Running supervisord with systemd.
View supervisord.service
Description=supervisord - Supervisor process control system for UNIX
ExecStart=${buildout:directory}/bin/supervisord -n
ExecReload=${buildout:directory}/bin/supervisorctl reload
ExecStop=${buildout:directory}/bin/supervisorctl shutdown
saily / json_restore_hierarchy
Last active Nov 21, 2018
Restore JSON hierarchy in Weblate PRE_COMMIT_SCRIPTS
View json_restore_hierarchy
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import argparse
import codecs
import json
__author__ = 'Daniel Widerin <>'
__license__ = 'MIT'
saily / gist:738617b760167ea4527f
Created Oct 28, 2015 — forked from kecebongsoft/gist:11312110
Bulk remove iTerm2 color schemes.
View gist:738617b760167ea4527f
# There was a day where I have too many color schemes in iTerm2 and I want to remove them all.
# iTerm2 doesn't have "bulk remove" and it was literally painful to delete them one-by-one.
# iTerm2 save it's preference in ~/Library/Preferences/com.googlecode.iterm2.plist in a binary format
# What you need to do is basically copy that somewhere, convert to xml and remove color schemes in the xml files.
$ cd /tmp/
$ cp ~/Library/Preferences/com.googlecode.iterm2.plist .
$ plutil -convert xml1 com.googlecode.iterm2.plist
$ vi com.googlecode.iterm2.plist
View init.d-supervisor
# supervisord This scripts turns supervisord on
# Author: Mike McGrath <> (based off yumupdatesd)
# Jason Koppe <> adjusted to read sysconfig,
# use supervisord tools to start/stop, conditionally wait
# for child processes to shutdown, and startup later
# chkconfig: 345 83 04
saily /
Last active Aug 29, 2015
Update buildout including all sources in src dir
spinner() {
# thanks to:
local pid=$1
local delay=0.075
local spinstr='|/-\'
local infotext=$2
while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; do
local temp=${spinstr#?}
printf "[ %c ] %s" "$spinstr" "$infotext"
You can’t perform that action at this time.