I hereby claim:
- I am saily on github.
- I am widerin (https://keybase.io/widerin) on keybase.
- I have a public key ASBt_C-qgCfevYvxqwqyNCkGSYmSzIsqqs_EEhFxrY7dawo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| [Unit] | |
| Description=supervisord - Supervisor process control system for UNIX | |
| Documentation=http://supervisord.org | |
| After=network.target | |
| [Service] | |
| ExecStart=${buildout:directory}/bin/supervisord -n | |
| ExecReload=${buildout:directory}/bin/supervisorctl reload | |
| ExecStop=${buildout:directory}/bin/supervisorctl shutdown |
| #!/usr/bin/env python2.7 | |
| # -*- coding: utf-8 -*- | |
| import argparse | |
| import codecs | |
| import json | |
| __author__ = 'Daniel Widerin <[email protected]>' | |
| __license__ = 'MIT' |
| # 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 |
| #!/bin/bash | |
| # | |
| # supervisord This scripts turns supervisord on | |
| # | |
| # Author: Mike McGrath <[email protected]> (based off yumupdatesd) | |
| # Jason Koppe <[email protected]> adjusted to read sysconfig, | |
| # use supervisord tools to start/stop, conditionally wait | |
| # for child processes to shutdown, and startup later | |
| # | |
| # chkconfig: 345 83 04 |
| #!/bin/sh | |
| spinner() { | |
| # thanks to: http://fitnr.com/showing-a-bash-spinner.html | |
| 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" |