$ mkdir example
$ cd example
$ git init
Initialized empty Git repository in /home/gerjan/example/.git/
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
<HTML> | |
<BODY> | |
<% | |
out.println("<DL>"); | |
java.util.Enumeration attrs = pageContext.getRequest().getAttributeNames(); | |
while (attrs.hasMoreElements()) { | |
String attr = (String) attrs.nextElement(); | |
Object val = pageContext.getRequest().getAttribute(attr); | |
out.println("<DT>"+attr+"</DT><DD>"+val.toString()+"<DD/>"); | |
} |
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
<HTML> | |
<BODY> | |
<% | |
out.println("<DL>"); | |
java.util.Properties props = System.getProperties(); | |
java.util.Enumeration e = props.propertyNames(); | |
while (e.hasMoreElements()) | |
{ | |
String key = (String) e.nextElement(); | |
String value = props.getProperty (key); |
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
Cloud foundry Grails app from scratch | |
===================================== | |
* Pre: Ubuntu 12.10 desktop system | |
* Log in (guest account) | |
* Alt+F2 firefox | |
* http://www.springsource.org/downloads/sts-ggts | |
* http://download.springsource.com/release/STS/3.1.0/dist/e3.8/groovy-grails-tool-suite-3.1.0.RELEASE-e3.8-linux-gtk.tar.gz | |
* Alt+F2 gnome-terminal | |
* cd Downloads/ |
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
mkfifo foo | |
nc -lk 2600 0<foo | /bin/bash 1>foo 2>&1 | |
(REMOTE: nc myip 2600) | |
mkdir -p foo/bar/baz/quux | |
cd foo/bar/baz/quux/ | |
for i in `seq 1 1000`; do echo -n $i" " >> foobar.txt ; done | |
zip -f foo.zip foo/ | |
hexedit foo.zip |
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=\$\{$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
Find: (^\w*\.\w*)=(.*)$ | |
Replace with: <$1>$2</$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
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
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
mkisofs -o /tmp/foo.iso foo/ |