mirror of
https://github.com/kastdeur/dotfiles.git
synced 2025-05-14 20:09:26 +02:00
Need to work on install script
This commit is contained in:
commit
0fd6e855bf
14 changed files with 202 additions and 0 deletions
2
bin/miclisten
Executable file
2
bin/miclisten
Executable file
|
@ -0,0 +1,2 @@
|
|||
#! /bin/sh
|
||||
ssh $@ 'arecord -f cd -t raw | oggenc - -r' | mplayer -
|
2
bin/micsend
Executable file
2
bin/micsend
Executable file
|
@ -0,0 +1,2 @@
|
|||
#! /bin/sh
|
||||
arecord -f cd -t raw | oggenc - -r | ssh $@ mplayer -
|
9
bin/pdf2txt
Executable file
9
bin/pdf2txt
Executable file
|
@ -0,0 +1,9 @@
|
|||
#! /bin/bash
|
||||
pdftotext $1 -
|
||||
|
||||
## Function for diffing pdf's for git
|
||||
# in ~/.gitconfig add
|
||||
## [diff "pdf"]
|
||||
## textconv = pdf2txt
|
||||
# in repo's .gitattributes add
|
||||
## *.pdf diff=pdf
|
11
bin/queue
Executable file
11
bin/queue
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
LIST=""
|
||||
for arg in $@; do
|
||||
if [ -f "$arg" ]; then
|
||||
LIST="$LIST"$'\n'"$(cat "$arg")"
|
||||
else
|
||||
LIST="$LIST"$'\n'"$arg"
|
||||
fi
|
||||
done;
|
||||
echo "$LIST" | shuf | marietje
|
||||
unset LIST
|
39
bin/upload-dir
Executable file
39
bin/upload-dir
Executable file
|
@ -0,0 +1,39 @@
|
|||
#!/bin/sh
|
||||
|
||||
tmp_file="./tmp_list";
|
||||
com="upload-to-marietje"
|
||||
remove="n";
|
||||
|
||||
trap "echo Aborted!; exit;" INT TERM
|
||||
|
||||
if [ ! -f "$tmp_file" ]; then
|
||||
touch $tmp_file;
|
||||
fi
|
||||
|
||||
echo "###$(date) - $(id -u -n)" >> $tmp_file;
|
||||
|
||||
for f in ./*; do
|
||||
name=${f##*/}
|
||||
if [ "$name" = "$0" ]; then continue
|
||||
elif [ "$name" = "$tmp_file" ]; then continue
|
||||
fi
|
||||
|
||||
echo "$com $f";
|
||||
# echo |
|
||||
$com "$f";
|
||||
if [ "$?" = "0" ]; then
|
||||
echo "$f" >> $tmp_file;
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "y$remove" = "yy" ]; then
|
||||
while read p; do
|
||||
if [[ "$p" == "###"* ]]; then
|
||||
break
|
||||
fi
|
||||
|
||||
rm -v \"$p\";
|
||||
done < tac "$tmp_file";
|
||||
fi
|
||||
|
||||
echo "It's Done!!";
|
1
bin/upload-dir-to-marietje
Symbolic link
1
bin/upload-dir-to-marietje
Symbolic link
|
@ -0,0 +1 @@
|
|||
upload-dir
|
Loading…
Add table
Add a link
Reference in a new issue