+++ /dev/null
-#!/bin/sh
-[ `id -u` = 0 ] || SUDO=sudo
-for v in 7.4 8.0 8.1 8.2 8.3; do
- i=/etc/init.d/postgresql-$v
- [ -x $i ] && $SUDO $i stop
-done
-$SUDO killall pg_autovacuum postmaster postgres
-$SUDO rm -rf /etc/postgresql /var/lib/postgresql/ /var/log/postgresql/* /tmp/postgresql-testsuite/ /var/run/postgresql/*
+++ /dev/null
-#!/bin/bash -e
-
-track=1
-
-while [ -n "$1" ]; do
- nice dvdrip $track "$1.avi"
- ((track=track+1))
- shift
-done
+++ /dev/null
-#!/bin/sh -e
-
-[ -n "$1" -a -n "$2" ] || {
- echo "Usage: $0 <title no> <output file>" >&2
- exit 1
-}
-
-exec mencoder dvd://$1 -alang en -vf scale -zoom -xy 540 -o "$2" -srate 44100 -oac lavc -ovc lavc -lavcopts vcodec=mpeg4:mbd=1:vbitrate=950:abitrate=112 -af lavcresample=44100,volnorm
+++ /dev/null
-#!/usr/bin/expect -f
-
-set timeout -1
-
-#Start the guest VM
-spawn vm /srv/vm/f25.img -nographic
-
-expect "login: "
-send "a\r"
-
-expect "Password: "
-send "a\r"
-
-expect "$ "
-send "echo a | sudo --stdin dnf update -y\r"
-
-expect "$ "
-send "echo a | sudo --stdin poweroff\r"
-
-expect "$ "
+++ /dev/null
-#!/bin/sh -e
-
-cmd=`which "$3"` || true
-
-[ -f "$1" ] && [ -d "$2" ] && [ -x "$cmd" ] || {
- echo "Execute a command for all debs in an archive"
- echo "Usage: $0 <packages file> <archive root dir> <command>"
- exit 1
-}
-
-list=`readlink -f "$1"`
-
-cd "$2"
-zgrep ^Filename: "$list" | cut -f 2- -d\ | xargs -l1 $cmd
+++ /dev/null
-#!/bin/sh
-if [ "$HOME" = "/home/martin" ]; then
- export HOME=/home/martin/.cache/chrome-home
-fi
-exec /usr/bin/google-chrome "$@"
+++ /dev/null
-#!/bin/bash
-set -m
-
-xmodmap ~/.xmodmaprc
-
-# https://launchpad.net/bugs/1063617
-#gsettings reset org.gnome.desktop.wm.preferences auto-raise
-#gsettings set org.gnome.desktop.wm.keybindings lower "['<Control>b']"
-#gsettings set org.gnome.desktop.wm.keybindings maximize "['<Super>Up']"
-#gsettings set org.gnome.desktop.wm.keybindings unmaximize "['<Super>Down']"
-#gsettings set org.gnome.desktop.wm.preferences focus-mode sloppy
-
-# determine resolution
-out=`xrandr | egrep -o 'current [0-9]+ x [0-9]+'`
-XRES=`echo "$out" | cut -f2 -d' '`
-YRES=`echo "$out" | cut -f4 -d' '`
-
-if ip route | grep -q ^default; then
- if [ `date +%u` -lt 6 ] && [ `date +%k` -lt 18 ]; then
- true
- gnome-terminal --maximize --zoom=0.85 -t IRC -x env TERM=xterm weechat
- #setsid gtimelog
- fi
-
- sleep 1
-
- wmctrl -o $XRES,0
- setsid firefox
- sleep 5
- wmctrl -o 0,0
-
- #if xrandr | grep -q 1280x1024; then
- # wmctrl -o 0,1024
- #else
- # wmctrl -o 0,800
- #fi
- #setsid empathy
-fi
-
-if [ "$YRES" -gt 1000 ]; then
- xrandr --output LVDS1 --off
-
- gnome-terminal --geometry=90x34+1060+0
- gnome-terminal --geometry=90x25+1060+570
- gnome-terminal --window --geometry=130x52+4+0 --zoom=1.2 --active --tab --zoom=1.2
-
- sleep .3
- wmctrl -o 0,$YRES
- sleep .3
- gnome-terminal --geometry=130x60+5+30 --zoom=1.2 -t Mutt -x mutt -f =mbox
- sleep .2
- wmctrl -o 0,0
-else
- gnome-terminal --geometry=80x46+880+0 --zoom=0.85
- gnome-terminal --window --geometry=124x35+0+0 --active --tab
-
- wmctrl -o 0,$YRES
- sleep .3
- gnome-terminal --geometry=129x49+0+30 -t Mutt -x mutt -f =mbox
- sleep .2
- wmctrl -o 0,0
-fi
-
-if ip route | grep -q ^default; then
- gnome-terminal --zoom=0.85 -x offlineimap
-fi
+++ /dev/null
-#!/usr/bin/python
-
-import subprocess, re, sys
-
-lpbugs_re = re.compile(r'lp: #([0-9, ]+)', re.I)
-
-bzr = subprocess.Popen(['bzr', 'diff', 'NEWS'], stdout=subprocess.PIPE)
-raw_msg = bzr.communicate()[0].strip()
-if bzr.returncode != 1:
- print >> sys.stderr, 'bzr diff NEWS failed'
- sys.exit(1)
-
-# parse/format message
-msg = ''
-for l in raw_msg.splitlines():
- if not l.startswith('+ '):
- continue
- if msg:
- msg += ' '
- msg += l[2:].strip()
-
-if msg.startswith('-'):
- msg = msg[1:].strip()
-
-print '-- commit message: --'
-print msg
-print '---'
-
-if not msg:
- print >> sys.stderr, 'No message in NEWS, aborting'
- sys.exit(1)
-
-# parse Launchpad bugs
-lpbugs = []
-for b_grp in lpbugs_re.finditer(msg):
- for b in b_grp.group(1).split(','):
- lpbugs.append(b.strip())
-print 'Fixed LP bugs:', ' '.join(lpbugs)
-
-# commit
-argv = ['bzr', 'commit', '-m', msg]
-for b in lpbugs:
- argv += ['--fixes', 'lp:' + b]
-argv += sys.argv[1:]
-
-sys.exit(subprocess.call(argv))
-
+++ /dev/null
-#!/bin/sh
-set -e
-
-CHANNEL=${CHANNEL:=devel-proposed}
-MYNAME=$(getent passwd `whoami` | cut -f5 -d: | cut -f1 -d,)
-MYMAIL=${DEBMEMAIL:-$EMAIL}
-
-# flash the latest image
-ubuntu-device-flash --channel devel-proposed
-
-# make image writable
-adb shell "touch /userdata/.writable_image"
-# configure timezone
-adb shell "timedatectl set-timezone `cat /etc/timezone`"
-
-echo "rebooting to activate writable image..."
-adb reboot
-adb wait-for-device
-
-# enable network
-phablet-network -n /etc/NetworkManager/system-connections/pittinet
-
-# install some necessary packages
-adb shell "apt-get install -y vim bzr build-essential fakeroot"
-
-# set up bzr, vim, ssh
-adb shell "su -c 'mkdir ~/.ssh' phablet"
-adb push ~/.ssh/id_rsa.pub /home/phablet/.ssh/authorized_keys
-adb shell "chmod 600 /home/phablet/.ssh/authorized_keys"
-if [ -e ~/.vimrc ]; then
- adb push ~/.vimrc /home/phablet/.vimrc
- adb shell "echo 'set bg=light' >> /home/phablet/.vimrc"
-fi
-adb shell "chown -R phablet:phablet /home/phablet"
-
-# start ssh
-adb shell "start ssh"
-adb forward tcp:22000 tcp:22
+++ /dev/null
-#!/bin/sh -ex
-
-if [ -n "`cd /etc; bzr modified`" ]; then
- echo "uncommitted changes in /etc, aborting" >&2
- exit 1
-fi
-
-# push /etc/
-(cd /etc; HOME=/home/martin bzr push)
+++ /dev/null
-#!/bin/sh
-set -e
-changelog="$1"
-shift
-for p in $@; do
- pull-lp-source $p
- (cd $p-*; dch -D yakkety --rebuild "No-change rebuild against $changelog"; dch -r ''; debuild --no-lintian -S -nc)
- dput ${p}_*_source.changes
-done
-
+++ /dev/null
-#!/bin/sh
-set -e
-
-num=${1:-1}
-
-if [ -n "$DEBUG" ]; then
- PREFIX=echo
-fi
-
-for f in *.JPG *.jpg; do
- [ -f "$f" ] || continue
- title=`exiv2 pr -Pv -gXmp.photoshop.Headline "$f"` || title=''
- newname=`printf "%03i" $num`
- #newname=`exiv2 pr -Pv -gExif.Image.DateTime "$f"`
- if [ -n "$title" ]; then
- newname="$newname - $title"
- fi
- newname="$newname.jpg"
- if [ -e "$newname" ]; then
- echo "Error: new name $newname for $f already exists, aborting" >&2
- exit 1
- fi
- $PREFIX mv "$f" "$newname"
- num=$((num+1))
-done
+++ /dev/null
-#!/usr/bin/python
-
-import subprocess, urllib, re
-
-URL='http://people.ubuntu.com/~ubuntu-archive/pending-sru.html'
-
-prev = ''
-for m in re.finditer('href="https://launchpad.net/ubuntu/(\w+)/\+source/([\w_-]+)/?"',
- urllib.urlopen(URL).read()):
- suite = m.group(1) + '-proposed'
- src = m.group(2)
- if src == prev:
- continue
- prev = src
- subprocess.call(['buildd', src, suite, 'rescore'])
+++ /dev/null
-#!/bin/sh
-set -e
-V=`dpkg-parsechangelog | grep ^Version: | cut -f2- -d' '`
-D=`dpkg-parsechangelog | grep ^Distribution: | cut -f2- -d' '`
-
-svn commit -m "release $V to $D"
-svn up
-svn-buildpackage --svn-tag-only --svn-noautodch