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 | |
set -xe | |
rm -rf subversion-1.6.9 | |
tar xzf subversion-deps-1.6.9.tar.gz | |
tar xzf subversion-1.6.9.tar.gz | |
cd subversion-1.6.9 | |
./configure --prefix=$HOME/svn19 --with-apache-libexecdir=$HOME/svn19/ale --with-editor=/bin/vi | |
make | |
make install | |
make swig-pl-lib |
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
warnline = map (chr.(158-).ord) | |
"oo~W909,=*9:~8529r~:/~0/*~9:5*~58~%/)~2/(9~%/),~'/,3" |
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 | |
exec scala -cp jlibs/commons-logging-1.1.1.jar:jlibs/jas.jar:jlibs/jux.jar "$0" "$@" | |
!# | |
import org.iocl.as._ | |
var conn = new AsConnection("tep:7008/172.27.110.41:8234") | |
println("Res: " + conn.exec("get-history")) |
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 | |
# Arg: path/to/module/in/cvs | |
# Run git-cvsimport and place result in subdir cvs.path.to.module.in.cvs | |
# or update git repo there if already existing (incremental fetch should work) | |
# Fix to your cvs credentials | |
p="$1" | |
d="cvs.`echo $p | tr / .`" | |
test -d "$d" || mkdir "$d" | |
cd "$d" || exit 1 | |
git cvsimport -p x -v -k -a -d :pserver:me@cvshost:/opt/cvs "$p" |
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
# Commit diffs from cvs..master into cvs, one at a time. | |
# No file additions/removals. | |
set -x | |
git log --format=oneline cvs..master | tail -1 | (read commit comment | |
echo "[commit:'$comment']" | |
git merge $commit || exit | |
cvs -q commit -m "$comment" || exit | |
cvs -q update -kk | |
git update-index -q --refresh | |
git status) |
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
// Makefile: | |
// CPPFLAGS += -DGIT_VERSION='"'"`git describe --always --dirty`"'"' | |
#ifdef GIT_VERSION | |
char git_version [] = "$" "Git: " GIT_VERSION "$"; // To be picked up by rcsid | |
#endif |
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 | |
cd `dirname $0` | |
exec >>dyndns.log 2>&1 | |
LANG=C | |
export LANG | |
date | |
ip=`/sbin/ifconfig eth3 | sed -ne 's,^.*inet addr:\([0-9.]*\) .*$,\1,p'` | |
echo ip: $ip | |
if test X"`cat ip`" = X"$ip"; then | |
echo Same addr |
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
-- Simple trial for html repr in haskell | |
data Html = Tag String [String] [Html] | |
| Text String | |
res :: [Html] | |
res = [(Tag "div" [] | |
[ | |
(Text "Hallo"), | |
(Tag "b" [] [Text "Bold"]) |
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
tree={} | |
STDIN.each_line do |l| | |
a=l.strip.split '/' | |
a.inject(tree) { |t,n| t[n] ||= {} } | |
end | |
puts tree.inspect | |
def rek t, p | |
t.each_pair do |k, v| |
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
set -xe | |
rm -rf repo wc | |
URL=file:///`pwd`/repo | |
time svnadmin create repo | |
time svn mkdir $URL/tr -m 'base dir' | |
time svn checkout $URL/tr wc | |
cd wc | |
mkdir A | |
cat >A/B <<EOF | |
package A |
OlderNewer