curl -b cookiejar -c cookiejar 'http://another/url/requiring/session/cookie'
Tuesday, September 29, 2009
cURL Login, Save and Use Cookies
curl -b cookiejar -c cookiejar -u 'username:password' 'http://login/form'
Thursday, September 24, 2009
Set Environment Variables in Gnome on Ubuntu Linux
On Ubuntu 9.04 (and probably other versions),
- `/bin/sh /etc/gdm/Xsession default` reads ~/.profile
- /bin/sh is Dash, not Bash. Dash accepts a subset of the syntax that Bash accepts.
- Environment variables set in ~/.profile or in files sourced by ~/.profile are propagated to Gnome and programs launched from Gnome.
Saturday, September 19, 2009
Set a breakpoint in a Bazaar plugin source file
(pdb) b /the/full/path/from/which/bzr/loads/the/plugin/source/file.py:line
Thursday, September 17, 2009
Schedule something to run once
at now +1 minute
warning: commands will be executed using /bin/sh
at> echo 'do something'
warning: commands will be executed using /bin/sh
at> echo 'do something'
Wednesday, September 16, 2009
General-purpose progress for moving data at the command line
pv INPUTFILE >OUTPUTFILE
Can replace cp or cat.
Can replace cp or cat.
Sunday, September 13, 2009
Incremental git fast-export / fast-import
Initial export:
git fast-export --all --export-marks=exportmarks.txt >data.fi
Initial import:
git fast-import --export-marks=importmarks.txt
Incremental export:
git fast-export --all --import-marks=exportmarks.txt --export-marks=exportmarks.txt >data.fi
Incremental import:
git fast-import --import-marks=importmarks.txt --export-marks=importmarks.txt
Thursday, September 10, 2009
External Diff Tool, e.g., Beyond Compare, in IntelliJ IDEA
File > Settings > IDE Settings: General > Diff Options
Wednesday, September 9, 2009
Command Line Remote Desktop
rdesktop -d DOMAIN -u USER -g WxH HOST
tsclient's clipboard was not working. rdesktop's works.
Subscribe to:
Posts (Atom)