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
find -d /some/directory -type f -depth 1 | grep $ | while read file; do | |
#perform some work on $file here | |
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
#make sure you have the mvim script on your path already ;-) | |
alias mvim="mvim --servername VIM --remote-tab $1 &> /dev/null" |
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
[alias] | |
vlog = log --graph --date-order --date=relative --pretty=format:'%C(cyan)%h: %Cblue - %an - %Cgreen %C(cyan)%ar:%Creset%n%s%n' --color |
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/griffon: 140: [: 0: unexpected operator | |
bin/griffon: 247: exec: /usr/lib/jvm/java-6-openjdk-amd64: Permission denied |
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 | |
ARCHIVE_FOLDER="$1" | |
PACKAGE="$2" | |
VERSION="$3" | |
RELEASE="$4" | |
PRIORITY="$5" | |
if [ -z "$ARCHIVE_FOLDER" -o -z "$PACKAGE" -o -z "$VERSION" -o -z "$RELEASE" -o -z "$PRIORITY" ]; then | |
echo "Usage: prepare-debian-package <archive folder> <package> <version> <release> <priority>" |
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
mvn deploy:deploy-file | |
-DgroupId=zzzzz | |
-DartifactId=yyyyy | |
-Dversion=2.2.0 | |
-Dpackaging=jar | |
-Dfile=target/grails-plugin-xxx-2.2.0.jar | |
-DrepositoryId=my-private-release-repository | |
-Durl=dav:https://myrepo/release/ |
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
#using git-completion script | |
source ~/bin/git-completion.sh | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;33m\]\w\[\033[00m\]$(__git_ps1 " \[\033[00;31m\](%s)\[\033[00m\]")\$ ' |
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
tar zcvf - /home/dude | ssh dude@backupserver "cat > /backup/dude.tar.gz" |
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
$ sudo su - | |
$ apt-get remove --purge groovy groovy-1.8.1 | |
$ apt-get update | |
$ apt-get install groovy | |
$ apt-get install groovy-1.7 | |
$ apt-get install groovy-1.9 | |
$ update-alternatives --list groovy | |
================================= |
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
sudo su - | |
add-apt-repository ppa:groovy-dev/griffon | |
apt-get update | |
#install griffon 0.9.3 stable release | |
apt-get install griffon-0.9.3 | |
#install griffon 0.9.2 stable release | |
apt-get install griffon-0.9.2 |