$$ # process id
$_ # default variable, some functions use it, when nothing else is defined
$! # last error of OS (usefull with 'die')
@_ # list of arguments of function $_[0] - 1st argument, $_[1] -2nd argument
$~ # format for current descriptor
$% # number of pages (counter) for current descriptor
$- # number of lines (up-down counter) till the end of page for current descriptor
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
#!/bin/sh | |
if [ $# -eq 0 ] | |
then | |
echo "Please specify argument." | |
echo "create, clean, info, migrate" | |
else | |
case `uname` in | |
MSYS*) | |
cmd="\"${FLYWAY_HOME}\flyway.cmd\"" | |
;; |
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
#!/bin/bash | |
set -e # Exit immediately if a command exits with a non-zero status. | |
for d in *; do | |
if [[ -d $d && -f $d/pom.xml ]]; then | |
echo " Processing $d" | |
git -C $d -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin | |
git -C $d -c diff.mnemonicprefix=false -c core.quotepath=false pull origin | |
git -C $d -c diff.mnemonicprefix=false -c core.quotepath=false submodule update --init --recursive | |
fi | |
done |
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
#!/bin/bash | |
set -e # Exit immediately if a command exits with a non-zero status. | |
for rep in \ | |
http://[email protected]/project1.git \ | |
http://[email protected]/project2.git \ | |
http://[email protected]/project3.git \ | |
; do | |
folder=`echo $rep | awk -F'/' '{print $NF}' | cut -d'.' -f1` | |
if [ ! -d $folder ]; then | |
echo " $folder" |
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
git config --global user.name "Xxx Xxx" | |
git config --global user.email "[email protected]" | |
git config --global credential.helper "cache --timeout=86400" | |
git config --global credential.helper wincred |
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
cat VTS_01_1.VOB VTS_01_2.VOB VTS_01_3.VOB VTS_01_4.VOB VTS_01_5.VOB VTS_01_6.VOB > mymovie.vob | |
# subtitles as separate stream (not supported by tv) | |
ffmpeg -probesize 600M -analyzeduration 600M -i mymovie.vob -map 0:0 -map 0:1 -map 0:3 -f matroska -c:v mpeg4 -q:v 3 -c:a libmp3lame -c:s copy -sub_charenc UTF8 -metadata:s:s:0 language=eng mymovie.mkv | |
# hardcoded subtitles | |
ffmpeg -probesize 600M -analyzeduration 600M -i mymovie.vob -f matroska -c:v mpeg4 -q:v 3 -c:a libmp3lame -filter_complex "[0:v][0:s]overlay[v]" -map "[v]" -map 0:1 mymovie.mkv | |
# combine video+audio and several subtitles files into one output | |
ffmpeg -i input.avi -i subtitles1.srt -i subtitles2.srt -map 0 -map 1 -map 2 -f matroska -c:v mpeg4 -q:v 3 -c:a libmp3lame -c:s copy output.mkv |
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
svn log --username USERNAME --password PASSWORD URL --limit 5 | |
svn diff --summarize --username USERNAME --password PASSWORD URL -r FROM:HEAD |
- Add the next lines to
eclipse.ini
:
-Xverify:none
-Xms512m
-Xmx1024m
-XX:MaxPermSize 368m
- Open
Window/Preferences/Java/Compiler/Building
. Change "Maximum number of problems reported per compilation unit" from 100 to 10. - Open
Window/Preferences/General/Appearance/Label Decorations
and disable decorations that are not used. - Open
Window/Preferences/General/Appearance
. Uncheck "Enable animations".
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
# logout and login using Gnome Classic (no effects) | |
sudo apt-get install gnome-session-fallback | |
# show scrollbar in windows | |
gsettings set com.canonical.desktop.interface scrollbar-mode normal | |
# change font of windows titlebar | |
gsettings set org.gnome.desktop.wm.preferences titlebar-font 'Ubuntu 10' | |
# show all applications in gnome-session-properties | |
cd /etc/xdg/autostart/ |