This file contains hidden or 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 | |
# | |
# This script is an example for running Delft3D-FLOW | |
# Adapt and use it for your own purpose | |
# | |
# [email protected] | |
# 27 Dec 2010 | |
# | |
# | |
# This script starts a single-domain Delft3D-FLOW computation on Linux |
This file contains hidden or 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 | |
# Sources: | |
# - http://content.oss.deltares.nl/delft3d/Webinar/Baart_LinuxCodeCompiling/WebinarBaart_11012012_v3.html | |
# - http://oss.deltares.nl/web/delft3d/general/-/message_boards/view_message/567530 | |
sudo apt-get update | |
sudo apt-get install \ | |
build-essential\ | |
subversion\ |
This file contains hidden or 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
# version=2.3.4 | |
# version=master | |
if [ "`git tag -l $version`" == "" ]; then | |
git checkout -qf $version | |
git pull -q | |
else | |
versionRef=`git rev-list -n 1 $version` | |
git checkout -qf $versionRef | |
fi |
This file contains hidden or 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
# .bashrc | |
# Prevent "stdin: is not a tty" error | |
# Put the following line at the top of .bashrc | |
[ -z "$PS1" ] && return |
This file contains hidden or 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 . -user userA -type d -exec chown -R userB:groupX {} + |
This file contains hidden or 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
RewriteCond %{HTTP_REFERER} facebook.com [NC] # Optional: block only traffic from facebook.com | |
RewriteRule .* - [R=404] # Give all visitors a 404 response |
This file contains hidden or 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 rev-list master | head -n 1 |
This file contains hidden or 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
SELECT | |
(substr( email, instr( email, '@') + 1)) as domain, | |
count(*) as total | |
FROM relations | |
GROUP BY domain | |
ORDER BY total DESC; |
This file contains hidden or 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
brew install wine winetricks | |
winetricks dotnet20 | |
wget http://keepass.info/download.html (Select KeePass 2 Portable version) | |
wine KeePass-2.28/KeePass.exe |
This file contains hidden or 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
# Steps | |
# 1. Remove tag | |
git tag -d TAGNAME | |
# 2. Push to origin | |
git push origin :refs/tags/TAGNAME | |
# 3. Create tag | |
git tag TAGNAME | |
# 4. Push to origin | |
git push origin |