Skip to content

Instantly share code, notes, and snippets.

@Toboe
Toboe / mp3merge
Created June 22, 2012 12:10
mp3 audiobook merge
#!/bin/bash
#Requires http://mp3wrap.sourceforge.net/
#Deletes .pdf & move .jpg cover from AudioBook folder
find . -name '*.mp3'|sort|xargs mp3wrap ../$(echo $PWD | cut -c102- | sed 's/\ //g').mp3 && ls && mv *.pdf ../ ; mv cover.jpg ../$(echo $PWD | cut -c102- | sed 's/\ //g').jpg ; ls -G ; cd ../
@Toboe
Toboe / xloadimage_wmii
Created October 9, 2012 10:39
desktop random wallpaper xloadimage wmii using shuffle (no spases in files)
/usr/local/bin/xloadimage -display :1 -onroot -fullscreen ../The_Wallpapers/$(shuffle -p1 $(ls -1 ../The_Wallpapers/))
@Toboe
Toboe / Cmd_stats
Created November 11, 2012 23:02
linux,tools,stats,commands
Curl
feh --thumbnails --index-info "%n\n%wx%h"
feh --list
feh --draw-tinted --info "exifgrep '(Model|DateTimeOriginal|FNumber|ISO|Flash|ExposureTime|FocalLength.\\*)' '%f' | cut -d . -f 4-"
feh -t modular/setup/environment/wallpaper/ --thumb-height 120 --thumb-width 120 -S width -n -d --cache-thumbnails
mplayer -ss 670 -frames 1 -vo jpeg -nosound movie.avi
mplayer -ao null -ss 0:51:48 -endpos 15 -vo gif89a:output=16.gif:fps=17 palette,format=bgr=24 Ololo.avi
ffmpeg -i movie.mp4 -vcodec copy -acodec copy -ss 00:37:40 -t 00:01:10 /mnt/destvideo.mp4