Skip to content

Instantly share code, notes, and snippets.

András Retzler ha7ilm

Block or report user

Report or block ha7ilm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

How to debug any (non-Qt) executable with QtCreator

  1. Create .gdbinit in the same directory as executable, with the following contents:
set breakpoint pending on
b main
  1. Run this:

How to compile and install Mixxx from source on Ubuntu 14.04?

You need to do this if you need the freshest version of Mixxx. However, it might have bugs. Consider installing the stable version from the repository.

First, clone the repo:

git clone
cd mixxx

Next, install all of the dependencies detailed at:

ha7ilm /
Last active Mar 26, 2018
Fix for broken W520 battery clips

I've broken the clips of my Thinkpad's aftermarket battery.

These clips hold the battery in the laptop. Without those, it can slide out, so the battery is not much useful. They were very weak indeed (probabily because the battery is not an original one, but I don't know because this is the only one I disassembled).

I've fixed it with some stick-on velcro (that has glue on its other side).

This should be very cheap, and you are likely to find it in the nearest fabric store.

The velcro seems to keep the battery in the laptop quite stable.


Custom battery module for polybar

I made this hack as the built-in battery module failed to display the battery status correctly after waking up from suspend.

type = custom/script
exec = acpi -b | cut -d' ' -f3-5 | sed 's/Unknown/Charging/g' | sed 's/^/  /'
tail = true
interval = 30

How to make formulas appear larger in Jupyter notebooks? Just add \Large to the beginning of the formula block.

E.g. $\Large \sigma$

ha7ilm / 61-zbook-kbd.hwdb
Last active Jul 17, 2019
HP Zbook 15v hbdw file for keyboard
View 61-zbook-kbd.hwdb
ha7ilm / ju.m
Last active Oct 18, 2019
ju - Autojump for MATLAB
View ju.m
% Copyright 2019 Andras Retzler <>
% Permission is hereby granted, free of charge, to any person obtaining a copy of this software
% and associated documentation files (the "Software"), to deal in the Software without restriction,
% including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
%and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
% subject to the following conditions:
% The above copyright notice and this permission notice shall be included in all copies or substantial
% portions of the Software.
ha7ilm / i3.conf
Last active Oct 30, 2019
Prompt to rename current workspace in i3 so that the new name starts with the number of the current workspace, e.g. "1:term"
View i3.conf
bindsym $mod+u exec i3-input -F "rename workspace to \"$(i3-msg -t get_workspaces | jq -r \"map(select(.focused))[0].num\"):%s\"" -P 'New name for this workspace: '
You can’t perform that action at this time.