Wednesday, 15 May 2019

[Db2 LUW] Source for arbitrary record

I sometimes are in need for a source of an arbitrary record, e. g. to test some function. In Oracle you can use DUAL. In Db2 LUW (to make it clear what DB I am referring to, I know LUW is officially not used anymore by IBM) there is a compatibility vector thing which provides DUAL as well. But it is not installed, switched on, activated or whatever one has to do to make it usable, one can use SYSIBM.SYSDUMMY1.

Thursday, 9 May 2019

[screen] Howto scroll back

screen
is a terminal multiplexer pretty useful when you want to have several terminals over one single remote connection and also if you want disconnects not effect your sessions.

However, when in screen you cannot just scroll back. Longtime I just thought it would not be possible but it is. You need to enter scrollback/copy mode by [ctrl]-[a] [esc].

[git] Create a local branch from another branch

From the active branch git checkout -b <LOCAL_BRANCH> From a donator branch git checkout -b <LOCAL_BRANCH> <DONATING_BRANCH...