Skip to content

Instantly share code, notes, and snippets.

View rmi1974's full-sized avatar

Robert Michelsen rmi1974

  • Germany
View GitHub Profile
@rmi1974
rmi1974 / how_to_unlock_a_luks_volume_with_a_usb_key.md
Created April 9, 2020 08:58
How to unlock a LUKS volume with a USB key #commandlinefu #luks

How to unlock a LUKS volume with a USB key

See [Unlocking a luks volume with a USB key (archive.org)][1].


Links

  • [Unlocking a luks volume with a USB key (archive.org)][1]
@rmi1974
rmi1974 / how_to_rebuild_fedora_rpm_from_source_with_modifications.md
Created April 9, 2020 08:53
How to rebuild Fedora RPM from source with modifications #rpm #commandlinefu

How to rebuild Fedora RPM from source with modifications

See [Fedora Source RPM (archive.org)][1].


Links

  • [Fedora Source RPM (archive.org)][1]
@rmi1974
rmi1974 / ipython_tip_sheet.md
Created April 9, 2020 08:49
IPython Tip Sheet #ipython #python #commandlinefu

IPython Tip Sheet

See [IPython Tip Sheet (archive.org)][1].


Links

  • [IPython Tip Sheet (archive.org)][1]
@rmi1974
rmi1974 / best_ssh_commands_and_tricks.md
Last active April 9, 2020 08:49
Best SSH commands and tricks #ssh #commandlinefu

Best SSH commands and tricks

See [UrFix's Blog - 25 Best SSH Commands / Tricks (archive.org)][1].


Links

  • [UrFix's Blog - 25 Best SSH Commands / Tricks (archive.org)][1]
@rmi1974
rmi1974 / how_to_customize_the_linux_kernel_version_string.md
Created April 9, 2020 08:42
How to customize the Linux kernel version string #linux #kernel

How to customize the Linux kernel version string

See [Customise Version String (archive.org)][1].


Links

  • [Customise Version String (archive.org)][1]
@rmi1974
rmi1974 / how_to_relocate_rpm_installation.md
Last active July 5, 2022 17:20
How to relocate RPM installation #rpm

How to relocate RPM installation

Some RPMs allow to install it to an arbitrary location by use of --relocate switch. While at it, you might also want to specify a custom location for the rpm database files with --dbpath swich to avoid contaminating the system rpm database.

rpm -i --dbpath <new install path>/.rpmdb \
    --relocate <default installpath>=<new install path> \
    openoffice.org-*.rpm
@rmi1974
rmi1974 / safedisc_v1_v2_miscellanea.md
Last active April 6, 2020 20:22
SafeDisc v1/v2 miscellanea #safedisc #reverse #nanomites #unpackme

SafeDisc v1.x/v2.x miscellanea

See [w4kfu's bl0g tag safedisc (archive.org)][1].


Links

  • [w4kfu's bl0g tag safedisc (archive.org)][1]
@rmi1974
rmi1974 / how_to_manage_multiple_repositories_using_myrepos_tool.md
Last active May 16, 2024 10:59
How to manage multiple repositories using myrepos tool #myrepos #git #git-annex #git-bup

How to manage multiple repositories using myrepos tool

[myrepos][1]

You have a lot of version control repositories. Sometimes you want to update them all at once. Or push out all your local changes. You use special command lines in some repositories to implement specific workflows. Myrepos provides a mr command, which is a tool to manage all your version control repositories.

myrepos is a command-line tool which adds the mr command to your environment. mr does not care about different version control systems, it supports all of them.

The standard way to use mr is to go into each one of your repositories and run the command mr register for mr to add it to your configuration file in ~/.mrconfig.

@rmi1974
rmi1974 / how_to_show_missing_development_packages_when_building_wine_from_source.md
Last active February 12, 2021 21:49
How to show missing development packages when building Wine from source #wine #commandlinefu #build #dependencies

How to show missing development packages when building Wine from source

$ find mainline-build-* -maxdepth 2 -name "config.log"  \
         -exec grep -H "development files not found" {} \;
...
mainline-build-1.3.28-i686/config.log:configure:16837: OpenCL 32-bit development files not found, OpenCL won't be supported.
mainline-build-1.3.28-i686/config.log:configure:16837: libhal/libdbus 32-bit development files not found, no dynamic device support.
mainline-build-1.3.28-i686/config.log:configure:16837: liblcms 32-bit development files not found, Color Management won't be supported.
mainline-build-1.3.28-i686/config.log:configure:16837: gstreamer-0.10 base plugins 32-bit development files not found, gstreamer support disabled
@rmi1974
rmi1974 / how_to_find_changes_with_git_log.md
Last active December 12, 2020 21:08
How to find changes with Git log with advanced search and filtering #git #commandlinefu #wine

How to find changes with Git log with advanced search and filtering

List commits on branch between two dates

Courtesy of: [List git commits to master branch between two dates][1]

Using [Wine Bugzilla #9747][2] as example to find out relevant commit(s) based on bug report comment dates.

Reporter created the ticket on 2007-09-23 00:39:45 CDT. Reporter confirmed the problem is fixed on 2007-10-09 18:47:45 CDT via comment.