diff options
-rwxr-xr-x | confpac | 5 | ||||
-rwxr-xr-x | dconfigure | 6 | ||||
-rwxr-xr-x | gcore | 8 | ||||
-rw-r--r-- | init_new_user.sh | 21 | ||||
-rwxr-xr-x | scan-multi | 9 | ||||
-rwxr-xr-x | supercherry | 31 |
6 files changed, 80 insertions, 0 deletions
@@ -0,0 +1,5 @@ +#!/bin/bash + +[[ -f autogen.sh ]] || return 1; +./autogen.sh; +dconfigure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-git-version --enable-debug "$@" diff --git a/dconfigure b/dconfigure new file mode 100755 index 0000000..9cb0562 --- /dev/null +++ b/dconfigure @@ -0,0 +1,6 @@ +#!/bin/bash +if [[ -x /bin/dash ]]; then + CONFIG_SHELL=/bin/dash /bin/dash ./configure CONFIG_SHELL=/bin/dash "$@"; +else + ./configure "$@"; +fi @@ -0,0 +1,8 @@ +#!/bin/sh + +if [[ -z $1 ]]; then + echo "usage: gcore <pid>" + exit 1 +fi + +exec gdb -batch -ex "attach $1" -ex "generate-core-file" -ex "detach" diff --git a/init_new_user.sh b/init_new_user.sh new file mode 100644 index 0000000..153ba64 --- /dev/null +++ b/init_new_user.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +set -e + +cd $HOME +mkdir -p git + +git clone git://git.server-speed.net/~flo/git/bin.git + +cd git +git clone git://git.server-speed.net/~flo/git/dotfiles.git +cd $HOME + +for i in .zshrc .vimrc .screenrc .screenrc-2 .zprofile .htoprc; do + ln -sf git/dotfiles/$i $i +done + +mkdir -p .zsh .vim + +touch .zshenv +echo "setopt no_global_rcs" >> .zshenv diff --git a/scan-multi b/scan-multi new file mode 100755 index 0000000..296bab4 --- /dev/null +++ b/scan-multi @@ -0,0 +1,9 @@ +#!/bin/bash + +time=$(date +%Y-%m-%d_%H%M%S) +scanimage -b -x 214.98 -y 294.973 +for img in out*.pnm; do + newfile="${time}_$((i++)).jpg" + convert "$img" "$newfile" && rm "$img" +done + diff --git a/supercherry b/supercherry new file mode 100755 index 0000000..68eac96 --- /dev/null +++ b/supercherry @@ -0,0 +1,31 @@ +#!/bin/bash + +base="master" + +RED="\e[1;31m" +GREEN="\e[0;32m" +YELLOW="\e[0;33m" +BLUE="\e[1;34m" +PURPLE="\e[0;35m" +GRAY="\e[0;37m" +NONE="\e[0;0m" + + +for ref in $(git for-each-ref --format='%(refname)' refs/remotes); do + sha1="$(git rev-parse --verify $ref)" + if [ "$(git merge-base $ref $base)" = "$sha1" ]; then + continue + fi + echo -e "$sha1: ${RED}${ref}${NONE}" + git cherry -v $base $ref | while read line; do + case $line in + +*) + echo -e $BLUE$line$NONE + ;; + -*) + echo -e $GRAY$line$NONE + ;; + esac + done + echo +done
\ No newline at end of file |