Browse Source

Removed unused scripts

master
Maxim Likhachev 6 years ago
parent
commit
2dd513cbb3
  1. 9
      camshot
  2. 11
      dada
  3. 16
      ip2email.sample
  4. 20
      ip2sms.sample
  5. 9
      lastfmlog
  6. 23
      mkaf
  7. 17
      office2pdf
  8. 9
      pkgs
  9. 7
      rip
  10. 7
      rip_pcm
  11. 25
      setrating

9
camshot

@ -1,9 +0,0 @@ @@ -1,9 +0,0 @@
#!/bin/bash
#Создан: Вс 30 мар 2014 15:40:48
#Изменён: Вс 30 мар 2014 15:42:59
#http://www.commandlinefu.com/commands/view/11774/press-enter-and-take-a-webcam-picture.
read && ffmpeg -y -r 1 -t 3 -f video4linux2 -vframes 1 -s sxga -i /dev/video0 ${1:-~}/webcam-$(\date +%Y-%m-%d_%H:%M).jpeg

11
dada

@ -1,14 +1,13 @@ @@ -1,14 +1,13 @@
#!/bin/bash
#Создан: Ср 18 май 2016 14:53:34
#Изменён: Сб 02 июл 2016 17:13:00
#Изменён: чт 17 окт 2019 13:01:07
#Дадаизатор текстов
cat "$1" \
| tr ' ' '\n' \
| grep -o '[а-яА-Яa-zA-Z]+' \
tr ' ' '\n' <"$1" \
| grep -o -E '[а-яА-Яa-zA-Z]+' \
| shuf \
| head -n ${2:-500} \
| fmt
| head -n "${2:-500}" \
| fmt -w "${3:-80}"

16
ip2email.sample

@ -1,16 +0,0 @@ @@ -1,16 +0,0 @@
#!/bin/bash
# +SAMPLE
#Посылка sms с ip
sendemail -f user@mail \
-t user@mail \
-s smtp.mail:25 \
-xu username \
-xp password \
-m $(echo \
$(\date '+%d.%m %T') \
$(ifconfig eth0 | grep -o 'Bcast:[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+') \
$(lynx -dump http://checkip.dyndns.org:8245/ | sed 's/.*: //g; 1q;d')
)

20
ip2sms.sample

@ -1,20 +0,0 @@ @@ -1,20 +0,0 @@
#!/bin/bash
# +SAMPLE
#Посылка sms с ip-адресом компьютера
#Требуется зарегистрировать почтовый ящик на my.beeline.ru
$HOME/.shellrc/bin/scripts/sendemail \
-f user@mail \
-t number@sms.beemail.ru \
-s smtp.mail:25 \
-xu username \
-xp password \
-m $(echo \
$(\date '+%d.%m %T') \
$(/sbin/ifconfig eth0 | grep -o 'Bcast:[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+') \
$(lynx -dump http://checkip.dyndns.org:8245/ | sed 's/.*: //g; 1q;d')
) \
-l $HOME/.shellrc/var/log/sendemail

9
lastfmlog

@ -1,9 +0,0 @@ @@ -1,9 +0,0 @@
#!/bin/bash
#Создан: Пт 26 фев 2016 21:38:13
#Изменён: Пт 26 фев 2016 21:38:13
#- Лог scmpc/last.fm
watch -n 1 "tail $SHELLRC/var/log/mpdscribble.log"

23
mkaf

@ -1,23 +0,0 @@ @@ -1,23 +0,0 @@
#!/bin/bash
#Создан: Вс 27 апр 2014 18:37:42
#Изменён: Вс 27 апр 2014 19:29:26
convert "$1" -resize x400 \
-gravity West -background white -splice 30x0 \
-gravity East -background white -splice 30x0 \
-gravity North -background white -splice 0x90 \
-gravity South -background white -splice 0x30 \
-gravity North \
-font "Helvetica" \
-pointsize 24 \
-draw "text 0,20 '$2'" \
-gravity North \
-font "Helvetica" \
-pointsize 17 \
-draw "text 0,55 '$3'" \
-gravity South \
-font "Helvetica" \
-pointsize 15 \
-draw "text 0,8 '$4'" "${1}_af.jpg"

17
office2pdf

@ -1,17 +0,0 @@ @@ -1,17 +0,0 @@
#!/bin/bash
#pgrep soffice.bin || \
soffice \
-headless \
-accept="socket,host=127.0.0.1,port=8100;urp;" \
-nofirststartwizard
sleep 1
for i; {
java -jar $SHELLRC/etc/soft/jodconverter/lib/jodconverter-cli-2.2.2.jar \
"$i" "${i//\.*/}.pdf"
}
killall soffice.bin

9
pkgs

@ -1,9 +0,0 @@ @@ -1,9 +0,0 @@
#!/bin/bash
#Создан: Пт 01 июл 2016 10:53:17
#Изменён: Пт 01 июл 2016 10:53:17
for c in `EIX_LIMIT=0 eix -I -# | cut -d '/' -f 1 | sort -u`; {
EIX_LIMIT=0 eix -I --nocolor "$c/*" >> "${c}.list";
}

7
rip

@ -1,7 +0,0 @@ @@ -1,7 +0,0 @@
#!/bin/bash
#- Рип DVD и видео
mencoder $1 -ovc x264 -vf yadif -oac copy \
-x264encopts subq=6:partitions=all:8x8dct:me=umh:\
frameref=5:bframes=4:b_pyramid:weight_b:threads=2:crf=22 -o $2

7
rip_pcm

@ -1,7 +0,0 @@ @@ -1,7 +0,0 @@
#!/bin/bash
#- Рип DVD и видео с pcm-дорожкой
mencoder $1 -ovc x264 -vf yadif -oac pcm \
-x264encopts subq=6:partitions=all:8x8dct:me=umh:\
frameref=5:bframes=4:b_pyramid:weight_b:threads=2:crf=22 -o $2

25
setrating

@ -1,25 +0,0 @@ @@ -1,25 +0,0 @@
#!/bin/bash
#
# Изменение комментария в id3-теге с помощью ncmpcpp
# $1 -- текст комментария
#
# Переход к редактору тегов
xdotool key e
xdotool key Down
xdotool key Down
xdotool key Down
xdotool key Down
xdotool key Down
xdotool key Down
xdotool key Down
xdotool key Down
xdotool key Down
xdotool key Down
xdotool key Return
xdotool key Control+u
xdotool type $1
xdotool key Return
xdotool key y
Loading…
Cancel
Save