At work I’m currently developing software which is supposed to run on openSUSE. I need to query the package database at some point which of course does not exist on my ubuntu machine. Here’s a quick setup how to create a fake local RPM database:
echo "%_dbpath /home/user/rpmdb" >> ~/.rpmmacros
mkdir /home/user/rpmdb
rpm -i –nodeps –justdb –force-debian *.rpm
And [...]
I don’t like the default look of putty on windows, so I usually do two things:
Download the DejaVu fonts
Get this PowerShell skript to tangoify the putty palette
Note: On Windows 7 you might need to enable yourself to be able to execute powershell skripts.
Say you have a binary registry export or dump from Windows and need to have a look at its contents. What do you do? The solution I came up with is:
WINEPREFIX=/tmp/dump regedit *.reg
Which gives you nice plain-text ini-style registries to examine in /tmp/dump. That obviously needs Wine installed.
Just in case someone wonders what %~d0 in a .bat or .cmd file means, here’s the excerpt from help call:
[...]
In addition, expansion of batch script argument references (%0, %1, etc.) have been changed as follows:
%* in a batch script refers to all the arguments (e.g. %1 %2 %3 %4 %5 …)
Substitution of batch parameters (%n) [...]