How to view a Git repository in your browser with "git instaweb"
Shell Script (Bash) posted 26 days ago by christian
git instaweb -d webrick:
1 % git instaweb -d webrick 2 [2010-02-18 17:27:01] INFO WEBrick 1.3.1 3 [2010-02-18 17:27:01] INFO ruby 1.8.7 (2008-08-11) [i686-darwin10.0.0] 4 No known browser available. 5 http://127.0.0.1:1234
Now open http://127.0.0.1:1234 in your browser.
You can also add this this to ./gitconfig:
1 [instaweb] 2 httpd=webrick
Find locally modified files in CVS.
Shell Script (Bash) posted about 1 month ago by marko
CVS prints it’s output to stderr for some reason. Here’s how to find locally modified files.
1 cvs up 2>1|grep ^M
Tagged cvs, locally modified
Solution for "svn: Server sent unexpected return value (403 Forbidden) in response to MKACTIVITY"
Shell Script (Bash) posted about 1 month ago by christian
Problem:
1 $ svn commit -m 'xxx' 2 svn: Commit failed (details follow): 3 svn: Server sent unexpected return value (403 Forbidden) in response to MKACTIVITY request for '/svn/xxx
The solution is to specify the username:
1 $ svn commit -m 'xxx' --username <login>
How to manually sign/create a package for the Android Market (Titanium Developer)
Shell Script (Bash) posted 2 months ago by christian
Generate cert:
1 keytool -genkey -v -keystore android -alias android -keyalg RSA -validity 11000
Building the package in Titanium Developer doesn’t work for me, so I have to do this:
1 jarsigner -storepass xxx -keystore /Users/christian/keystores/android -signedjar /tmp/app.apk /Users/christian/Projects/xxx-titanium/XXX/build/android/bin/app-unsigned.apk xxx
Setting LD_LIBRARY_PATH when using the Gnu Project Debugger (gdb)
Shell Script (Bash) posted 2 months ago by christian
If you get this:
1 ImportError: lpthread.so: cannot open shared object file: No such file or directory
Do this:
1 set environment LD_LIBRARY_PATH=directory where lpthread.so is
The reason for this problem is that gdb doesn’t use the same settings as your session so specifying LD_LIBRARY_PATH in your bash session won’t work.
Tagged ld_library_path, gdb