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
| Download | |
| -------- | |
| svn co https://src.springframework.org/svn/spring-samples/task-basic/trunk | |
| (http://blog.springsource.org/2010/01/05/task-scheduling-simplifications-in-spring-3-0/) | |
| Build | |
| ----- | |
| mvn clean package |
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
| watch -n 8 "cat /etc/issue | grep '[a-z]'; uname -a; top -b -n 1 | head -1; who" |
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
| import sys | |
| import BaseHTTPServer | |
| from SimpleHTTPServer import SimpleHTTPRequestHandler | |
| HandlerClass = SimpleHTTPRequestHandler | |
| ServerClass = BaseHTTPServer.HTTPServer | |
| Protocol = "HTTP/1.0" | |
| if sys.argv[1:]: | |
| port = int(sys.argv[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
| """List manually installed debian packages | |
| Use as root or with sudo: | |
| python list_manually_installed_packages.py [date] | |
| output results to /var/log/manually_installed_software_<hostname>.csv | |
| Optional argument [date] will list only packages installed since that date. | |
| The date format is YYYYMMDD and be used e.g. as |
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 | |
| mkdir mygists | |
| cd mygists | |
| curl -u "gerjantd" https://api.github.com/gists | json_xs > mygists.json | |
| cat mygists.json | grep "\"id\"" | awk -F "\"" '{print $4}' > repos | |
| for g in `cat repos`; do git clone [email protected]:$g.git gist-$g; done |
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
| for f in `find . -type f -regextype awk -regex ".*/*.(xml|java)"`; do sed -i -e "s/foo/bar/g" $f; done |
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
| mkisofs -o /tmp/foo.iso foo/ |
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
| gerjan@peertje:~/git/svl01-int-p.rivm.nl$ for f in `find . -mindepth 1 -maxdepth 1 -type d`; do echo $f; pushd .; cd $f; git diff --shortstat master origin/master; popd; echo; done | |
| ./ttapp | |
| ~/git/svl01-int-p.rivm.nl ~/git/svl01-int-p.rivm.nl | |
| ~/git/svl01-int-p.rivm.nl | |
| ./springpad-mvc-ro | |
| ~/git/svl01-int-p.rivm.nl ~/git/svl01-int-p.rivm.nl | |
| ~/git/svl01-int-p.rivm.nl | |
| ./divocos |
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
| dorsthog@svl01-int-p:/data/git> for f in `find -mindepth 1 -maxdepth 1 -type d -name "*.git"`; do echo $f; pushd .; cd $f; git log|head -5; popd; done |
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: (^\w*\.\w*)=(.*)$ | |
| Replace with: <$1>$2</$1> |