-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matthias Guenther
committed
May 10, 2012
1 parent
530dbbc
commit ec3b14f
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Change rights of a directory {{{ | ||
|
||
fctchmod () | ||
{ | ||
sudo chmod -R 777 "$1" | ||
} | ||
|
||
# }}} | ||
# Eject disk {{{ | ||
|
||
fcteject () | ||
{ | ||
sudo eject /dev/cdrom | ||
} | ||
|
||
# }}} | ||
# Just to set the system variable to get gxine working {{{ | ||
|
||
fctgxine () | ||
{ | ||
# this hack is needed when you you have multiple instances of firefox installed and get the error: | ||
# gxine: error while loading shared libraries: libmozjs.so | ||
export LD_LIBRARY_PATH=/usr/lib/firefox-3.6.8/ | ||
cd $HOME/archiv/isos/movies | ||
} | ||
|
||
# }}} | ||
# Replace pdftex_t as pstex_t {{{ | ||
|
||
fctpdftex_t2pstex_t () | ||
{ | ||
sed -i "s/pdftex_t/pstex_t/g" "$1" | ||
} | ||
|
||
# }}} | ||
# Replace pstex_t as pdftex_t {{{ | ||
|
||
fctpstex_t2pdftex_t () | ||
{ | ||
sed -i "s/pstex_t/pdftex_t/g" "$1" | ||
} | ||
|
||
# }}} | ||
# Rotate jpg for ninty degrees {{{ | ||
|
||
fctrotatejpg () | ||
{ | ||
for i in *.jpg; do convert -rotate 90 "$i" "$i"; done | ||
} | ||
|
||
# }}} |