diff options
| -rwxr-xr-x | bin/connect_usb | 7 | ||||
| -rwxr-xr-x | bin/gpg-mounter | 32 | ||||
| -rwxr-xr-x | bin/gpg-wrapper | 41 | ||||
| -rwxr-xr-x | bin/make-ssh-known-hosts | 40 | ||||
| -rwxr-xr-x | bin/my_tagger | 90 | ||||
| -rwxr-xr-x | bin/oik | 4 | ||||
| -rwxr-xr-x | bin/run-mailcheck | 14 | ||||
| -rwxr-xr-x | bin/stopaudio | 2 | ||||
| -rwxr-xr-x | bin/update-xmonad.sh | 11 | 
9 files changed, 0 insertions, 241 deletions
diff --git a/bin/connect_usb b/bin/connect_usb deleted file mode 100755 index ad335a7..0000000 --- a/bin/connect_usb +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -alsa_out -d hw:1 -j USB & -alsa_in -d hw:1 -j USB & -sleep 1 && \ -    jack_connect "PulseAudio JACK Sink:front-left" "USB:playback_1" && -    jack_connect "PulseAudio JACK Sink:front-right" "USB:playback_2" diff --git a/bin/gpg-mounter b/bin/gpg-mounter deleted file mode 100755 index b1a9c15..0000000 --- a/bin/gpg-mounter +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh -# gpg-wrapper for users who put their .gnupg in encfs -# Copyright (C) 2009, 2011  Ryan Kavanagh <ryanakca@kubuntu.org> -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program.  If not, see <http://www.gnu.org/licenses/>. - - -crypted_dir=${HOME}/.gnupg.encfs -decrypted_dir=${HOME}/.gnupg -if [ -n "${GNUPGHOME}" ] -then -    decrypted_dir=${GNUPGHOME} -fi -mounted=`mount | grep ${decrypted_dir}` - -if [ ! -n "${mounted}" ] -then -    encfs -o nonempty ${crypted_dir} ${decrypted_dir} -fi - -exit $? diff --git a/bin/gpg-wrapper b/bin/gpg-wrapper deleted file mode 100755 index 614fbee..0000000 --- a/bin/gpg-wrapper +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -# gpg-wrapper for users who put their .gnupg in encfs -# Copyright (C) 2009, 2011  Ryan Kavanagh <ryanakca@kubuntu.org> -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program.  If not, see <http://www.gnu.org/licenses/>. - - -if [ ! -n "${GNUPGHOME}" ] -then -    decrypted_dir=${HOME}/.gnupg -else -    decrypted_dir=${GNUPGHOME} -fi - -# --lock-never is needed since encfs doesn't support locking any more -if [ -f ${decrypted_dir}/gpg.conf ] -then -    exec GPG_BINARY --lock-never --homedir ${decrypted_dir} $@ -else -    gpg-mounter -    if [ -f ${decrypted_dir}/gpg.conf ] -    then -        exec GPG_BINARY --lock-never --homedir ${decrypted_dir} $@ -    else -        echo 'No gnupg.conf in ${decrypted_dir}' -        exit 1 -    fi -fi - -exit 0 diff --git a/bin/make-ssh-known-hosts b/bin/make-ssh-known-hosts deleted file mode 100755 index 77e31ed..0000000 --- a/bin/make-ssh-known-hosts +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh -# Given a list of host names as arguments, generate a known_hosts file -# Copyright (C) 2013 Ryan Kavanagh <rak@debian.org> -# All rights reserved. -#  -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -#  1. Redistributions of source code must retain the above copyright -#     notice, this list of conditions and the following disclaimer. -#  2. Redistributions in binary form must reproduce the above copyright -#     notice, this list of conditions and the following disclaimer in the -#     documentation and/or other materials provided with the distribution. -#  3. The name of the author may not be used to endorse or promote products -#     derived from this software without specific prior written permission. -#  -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, -# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY -# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL -# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -for i in "$@"; do -    IP4=$(host -t A "$i" | awk '/address/ { print "," $NF }'); -    IP6=$(host -t AAAA "$i" | awk '/address/ { print "," $NF }'); -    if test "${IP4}" = ",record"; then -        IP4=""; -    fi -    if test "${IP6}" = ",record"; then -        IP6=""; -    fi -    HOST=$(echo "${i}${IP4}${IP6}" | sed -e 's/ //g'); -    KEYS=$(ssh -q "$i" cat /etc/ssh/ssh_host_rsa_key.pub /etc/ssh/ssh_host_ecdsa_key.pub); -    echo "${KEYS}" | sed -e 's/^/'"${HOST}"' /g'; -done diff --git a/bin/my_tagger b/bin/my_tagger deleted file mode 100755 index f09b031..0000000 --- a/bin/my_tagger +++ /dev/null @@ -1,90 +0,0 @@ -#!/usr/bin/python - -import codecs -import re - -from mutagen import flac - -FILENAME='tracks' - -CONFIRM=True -DEBUG=False -SWAPNAME=True -SAVE=True -SPLIT=False - -if CONFIRM or DEBUG: -    import pprint -    # From -    # http://stackoverflow.com/questions/10883399/unable-to-encode-decode-pprint-output -    class PPUTF8(pprint.PrettyPrinter): -        def format(self, object, context, maxlevels, level): -            if isinstance(object, unicode): -                return (object.encode('utf8'), True, False) -            return pprint.PrettyPrinter.format(self, object, context, -                        maxlevels, level) - - -if __name__ == '__main__': -    if CONFIRM or DEBUG: -        pp = PPUTF8(indent=4) - -    with codecs.open(FILENAME, encoding='utf-8', mode='r') as f: -        lines = f.readlines() -    headers = lines[0][:-1].split('\t') - -    if SWAPNAME: -        first_last = re.compile('^(?P<last>[^,]+),\s+(?P<first>.+)$') - -    files = {} -    for i, file in enumerate(lines[1:]): -        # i starts counting at zero while we need it to start counting at 1 -        # since 0 is the header line -        i += 1 -        line = lines[i].replace('\n', '').split('\t') -        file = line[0] -        files[file] = {} -        for j, tag in enumerate(line[1:]): -            # j starts counting at 0, should be 1 -            j += 1 -            header = headers[j] -            files[file][header] = tag.strip() -            if header == 'ARTIST' or header == 'LYRICIST' or \ -                    header == 'ARRANGER': -                if SPLIT: -                    files[file][header] = [name.strip() for name in -                                                        tag.split(';')] -                else: -                    files[file][header] = tag.strip() -                if SWAPNAME: -                    for n, name in enumerate(files[file][header]): -                        res = first_last.match(name) -                        if res: -                            files[file][header][n] = res.group('first') + \ -                                    ' ' + res.group('last') - - -     -    if CONFIRM: -        print "Loaded data:\n" -        pp.pprint(files) - -    if CONFIRM: -        if raw_input("\nSave files? [Y/n]").lower()in ['', 'y']: -            SAVE = True -        else: -            SAVE = False - -    file = flac.FLAC() -    for name in files.keys(): -        file.load(name) -        # Delete tags -        file.delete() -        for key, val in files[name].iteritems(): -            file[key] = val -            if SAVE: -                file.save() - -        if DEBUG: -            print "\n\nData in flac file:", name -            pp.pprint(file) diff --git a/bin/oik b/bin/oik deleted file mode 100755 index 1e4fc0a..0000000 --- a/bin/oik +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -killall -9 offlineimap -rm -f ~/.offlineimap/*.lock diff --git a/bin/run-mailcheck b/bin/run-mailcheck deleted file mode 100755 index 0c627a5..0000000 --- a/bin/run-mailcheck +++ /dev/null @@ -1,14 +0,0 @@ -#!ZSH_PATH -MAIL=`mailcheck` -GMAIL=`echo $MAIL | grep -v QueensU` -QUEENSU=`echo $MAIL | grep QueensU` -if echo $GMAIL | grep -q new ; then -    echo $GMAIL | awk '{printf("%d(%d)"), $6, $3}' > ~/.xmonad/gmailcheck; -else -    echo $GMAIL | awk '{printf("%d(%d)"), $3, 0}' > ~/.xmonad/gmailcheck; -fi -if echo $QUEENSU | grep -q new ; then -    echo $QUEENSU | awk '{printf("%d(%d)"), $6, $3}' > ~/.xmonad/queensucheck; -else -    echo $QUEENSU | awk '{printf("%d(%d)"), $3, 0}' > ~/.xmonad/queensucheck; -fi diff --git a/bin/stopaudio b/bin/stopaudio deleted file mode 100755 index 0d74163..0000000 --- a/bin/stopaudio +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -killall jackd pulseaudio diff --git a/bin/update-xmonad.sh b/bin/update-xmonad.sh deleted file mode 100755 index d40b597..0000000 --- a/bin/update-xmonad.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -cd /usr/src/xmonad -darcs pull -runhaskell Setup.lhs configure -runhaskell Setup.lhs build -runhaskell Setup.lhs install -cd /usr/src/XMonadContrib -darcs pull -runhaskell Setup.lhs configure -runhaskell Setup.lhs build -runhaskell Setup.lhs install  | 
