Monthly Archives: April 2019

Sed Cheatsheet

Just a post about some of the sed lines I find scattered, to be extend in future edits. Merge same Lines Together $ sed ‘/^ \*$/{h;d};{H;s/.*//;x;s/^\n//}’ This sed example merges all “ *” lines that follow each other (e.g. empty … Continue reading

Posted in Hakre's Tips, Uncategorized | Tagged | Leave a comment

Gnome Shell Quickfix Cheatsheet

Disable work-space up/down movers which block key bindings I use in Phpstorm. Important with that is that I don’t use these dynamic work-spaces at all, so making them static and only one: dconf write /org/gnome/desktop/wm/preferences/num-workspaces 1 dconf write /org/gnome/mutter/dynamic-workspaces false … Continue reading

Posted in Hakre's Tips, Uncategorized | Tagged , , , , , | Leave a comment

Git – Set the Author Date to The Committer Date of a Recent Commit

Ah gosh that one commit has the author date just too far off, but if it would be the same as the committer date, that would be fine… Locate the commit when rebase interactively and mark for edit. Then go … Continue reading

Posted in Hakre's Tips, Pressed | Tagged | Leave a comment