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_search_and_download_from_archive_org.md
Last active April 19, 2021 06:46
How to query and download from archive.org using command line #archive #waybackmachine #commandlinefu

How to query and download from archive.org using command line

Search for all binaries from a specific URL

$ wget http://web.archive.org/cdx/search/cdx?url=dlm3.download.intuit.com/SBD/QuickBooks/* -q -O - | grep octet-stream

com,intuit,download,dlm3)/sbd/quickbooks/2012/us_r9/quickbookspremier2012.exe 20210224173151 http://dlm3.download.intuit.com/SBD/QuickBooks/2012/US_R9/QuickBooksPremier2012.exe application/octet-stream 200 HJYXHXCU33SITK476OBWSAMJSY7USDIX 483202952
com,intuit,download,dlm3)/sbd/quickbooks/2012/us_r9/quickbookspremier2012.exe 20210224173151 http://dlm3.download.intuit.com/SBD/QuickBooks/2012/US_R9/QuickBooksPremier2012.exe application/octet-stream 200 HJYXHXCU33SITK476OBWSAMJSY7USDIX 483202952
@rmi1974
rmi1974 / how_to_install_wine_gecko_debug_symbols.md
Last active January 24, 2021 18:43
How to install Wine-Gecko debug symbols (PDB) with Wine #wine #commandlinefu #wine-gecko #debug #pdb

How to install Wine-Gecko debug symbols (PDB) with Wine

From [Wine Bugzilla #46028][1].

Method 1: Extraction into WINEPREFIX

64-bit Wine-Gecko in 64-bit WINEPREFIX

tar xJvf ~/.cache/wine/gecko/wine-gecko-2.47.2-x86_64-pdb.tar.xz \
@rmi1974
rmi1974 / how_to_mount_directory_in_home_as_noexec.md
Last active January 1, 2021 18:09
How to mount a directory in HOME as no-exec #wine #commandlinefu

How to mount a directory in HOME as no-exec

To test broken applications, for example [Wine Bugzilla #11661][1].

sudo mount --bind $HOME/.wine $HOME/.wine

sudo mount /home/focht/.wine -o remount,noexec
@rmi1974
rmi1974 / how_to_hide_system_fonts_from_wine.md
Last active December 16, 2020 23:16
How to hide all system / distro provided fonts from Wine #wine #fonts #fontconfig

How to hide all system / distro provided fonts from Wine

Wine uses fontconfig to manage distro provided fonts.

To hide all system / distro installed fonts (/usr/share/fonts/... etc.) use a local fontconfig configuration file.

Content of example wine_no_system_fonts with no font paths configured:

@rmi1974
rmi1974 / how_to_show_git_submodule_commit_log.md
Created November 11, 2020 09:40
How to show Git submodule commit log embedded to superproject log #git #submodule #commandlinefu

How to show Git submodule commit log embedded to superproject log

Source: [StackOverflow post][1]

You can display the submodule changes, but only when using git log -p. The following command shows the full diff of each commit and submodule changes.

git log -p --submodule=log
@rmi1974
rmi1974 / accessing_bugzilla_via_command_line_using_pybugz.md
Last active June 4, 2020 07:49
Accessing Bugzilla via command line using 'pybugz' #bugzilla #wine #winehq #commandlinefu

Accessing Bugzilla via command line using 'pybugz'

Follow the instructions from [Github williamh / pybugz: Python interface to Bugzilla][1].

To access for example WineHQ Bugzilla, create a ~/.bugzrc with following content:

[winehq]
base = https://bugs.winehq.org/xmlrpc.cgi
@rmi1974
rmi1974 / how_to_run_a_command_sequence_against_range_of_wine_releases.md
Last active March 27, 2022 07:33
How to run a command sequence against a range of Wine releases #wine #commandlinefu #testing #automation #autohotkey #winetricks

How to run a command sequence against a range of Wine releases

Example 1

Find Wine releases using special path pattern.

$ find ~/projects/wine/mainline-install-* -path \*bin/wine -print | sort -V
/home/focht/projects/wine/mainline-install-1.4-x86_64/bin/wine
/home/focht/projects/wine/mainline-install-1.4.1-x86_64/bin/wine
@rmi1974
rmi1974 / list_of_microsoft_net_framework_windows_version_install_blockers.md
Last active February 14, 2021 17:51
List of Microsoft .NET Framework Windows version install blockers #dotnet #wine

List of Microsoft .NET Framework Windows version install blockers

Courtesy of [Wine Bugzilla #48286][1].

.NET Framework version min. WinVer max. WinVer
.NET Framework 2.0 Windows 2000 n/a (Windows 10+)
.NET Framework 2.0 SP1 Windows 2000 Windows XP/2003
.NET Framework 2.0 SP2 Windows 2000 Windows XP/2003
.NET Framework 3.0 Windows XP/2003 Windows XP/2003
@rmi1974
rmi1974 / conversion_of_wine_builtins_to_pe_format.md
Last active January 21, 2023 05:16
Conversion of Wine builtins to PE format #wine #mingw #llvm #gcc #pe #elf #commandlinefu

Conversion of Wine builtins to PE format

Status of Conversion

List of Wine builtin fake executables in Wine installation as of Wine 7.16:

mainline-install-7.16-x86_64/lib/wine/x86_64-windows/openal32.dll
mainline-install-7.16-x86_64/lib/wine/x86_64-windows/opengl32.dll
mainline-install-7.16-x86_64/lib/wine/i386-windows/openal32.dll
@rmi1974
rmi1974 / how_to_use_snapper_to_manage_wineprefixes_on_btrfs_volumes.md
Created April 9, 2020 09:33
How to use Snapper to manage WINEPREFIXes on BTRFS volumes #wine #btrfs #snapper

How to use Snapper to manage WINEPREFIXes on BTRFS volumes

Snapper is a tool created by openSUSE's Arvin Schnell that helps with managing snapshots of Btrfs subvolumes and LVM volumes. It can create and compare snapshots, revert between snapshots, and supports automatic snapshots timelines.

Create config

To create a configuration, you must first create a subvolume.