mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit fbeb02daa99766b74c79fcaae03a2935981b6e97
parent 98baf5e5b730c3bf9808f0acf2c9abe3df8cd44d
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun, 27 Nov 2016 21:27:06 +0100

Merge branch 'master' of a3nm.net:git/mybin

Diffstat:
bluetooth_connect | 2+-
cgitaboutfilter.c | 5+++--
cgitemailfilter.c | 2+-
fetch-all-git | 3++-
4 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/bluetooth_connect b/bluetooth_connect @@ -22,6 +22,6 @@ echo "pairable on"; sleep 0.1; echo "scan on"; sleep 0.1; echo "pair $HW"; sleep 0.5; echo "trust $HW"; sleep 0.5; -echo "connect $HW"; sleep 2; +echo "connect $HW"; sleep 5; echo quit; sleep 0.2) | bluetoothctl -a diff --git a/cgitaboutfilter.c b/cgitaboutfilter.c @@ -33,8 +33,9 @@ print_html_s (char *s) int main (int argc, char *argv[]) { - char c; - char urlflag, urlbuf[256]; + signed char c; + signed char urlflag; + char urlbuf[256]; char *ext = strrchr(argv[1], '.'); if (NULL == ext) { // plain text diff --git a/cgitemailfilter.c b/cgitemailfilter.c @@ -5,7 +5,7 @@ int main (int argc, char *argv[]) { - char flag = 0, c; + signed char flag = 0, c; while (EOF != (c = getchar())) { switch (c) { case '@': diff --git a/fetch-all-git b/fetch-all-git @@ -1,10 +1,11 @@ #!/bin/bash +FOLDER=${1:-$HOME/git} set -e umask 022 -cd ~/git +cd "$FOLDER" for a in * do cd "$a"