-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions_linux
executable file
·61 lines (51 loc) · 1.55 KB
/
functions_linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# to rip music of a internet radio via streamripper
fctripp ()
{
streamripper "$1" -d ~/Downloads/ripped_internet_music
}
fctrippsmoothbeats ()
{
streamripper http://www.smoothbeats.com/listen.pls -d ~/Downloads/ripped_internet_music
}
fctrippstreamingsoundtracks ()
{
streamripper http://loudcity.com/stations/streamingsoundtracks-com/files/show/aacPlus-hi.pls -d ~/Downloads/ripped_internet_music
}
fctrippdreamfactoryambient ()
{
streamripper http://ubuntu.hbr1.com:19800/ambient.ogg -d ~/Downloads/ripped_internet_music
}
fctrippjazzsmoothbeats ()
{
streamripper http://www.smoothbeats.com/nujazz.pls -d ~/Downloads/ripped_internet_music
}
# rotate mov
# $1 complete movie name
# $2 outputname (instead of mpg, avi, mp4, ... and other are possible)
fctrotatemovflip ()
{
mencoder -ovc lavc -vf flip -oac pcm $1 -o $2.mpg
}
# $3 rotattion level (flip = 180, 0 = rotate 90 clockwise and flip, 1 = rotate 90 clockwise, 2 = rotate 90 counterclockwise, 3 = rotate 90 counterclockwise and flip
fctrotatemovrotate ()
{
mencoder -ovc lavc -vf rotate=$3 -oac pcm $1 -o $2.mpg
}
# find all zip in the current directory and unzip them
fctfindzipandunzip ()
{
find . -name "*.zip" | while read filename;
do unzip -o -d "`basename -s .zip "$filename"`" "$filename"; done;
}
# take .cue ($1) and .flac ($2) as input and create files out of them
fctcreatefileoutofcueflac ()
{
# sudo apt-get install cuetools shntool
shntool split -f $1 -o flac $2
}
# convert the cdrom into an iso
fctcdromiso ()
{
cd $HOME/Desktop
sudo dd if=/dev/cdrom of="$1".iso bs=10M
}