Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jackblk on github.
  • I am jackblk ( on keybase.
  • I have a public key whose fingerprint is DBD6 B206 4668 F2B4 6B4E ABDB D89E BA32 B52E 6AF0

To claim this, I am signing this object:

jackblk /
Last active December 25, 2020 19:59
Toogle PulseAudio output ports, disable/enable Auto-Mute Mode on Linux
DEVICE='0' # Index/name of the device in `pacmd list-sinks`
CARD='1' # Card index in `cat /proc/asound/cards`
ACTIVE_SINK=$(pacmd list-sinks | grep 'active port' | awk '{ print $3 }')
if [ "$ACTIVE_SINK" = "<analog-output-headphones>" ]; then
echo "[*] Enabling all analog output on $DEVICE."
pacmd set-sink-port "$DEVICE" analog-output-lineout
amixer -c "$CARD" sset 'Auto-Mute Mode' Disabled
jackblk /
Created December 27, 2020 08:25
Turn off calculator shortcut on PopOS
# Because of whatever bug it is, even if you turn off Calculator shortcut,
# it still opens calculator in Pop OS. Run below command to disable it.
# Ref:
gsettings set calculator-static "['']"
jackblk / mouse.gif
Last active January 25, 2021 07:57 — forked from primaryobjects/mouse.gif
View the mouse pointer position in Selenium Nightwatch. Execute this code when the page loads or in the javascript console. Use for Selenium Python. See
jackblk /
Created June 2, 2021 07:19 — forked from matijs/
Solarized Dark profile for macOS

Solarized Dark profile for on macOS High Sierra

Based on the excellent Solarized (Dark) created by Ethan Schoonover. For source code, check the main Solarized repository on GitHub.


Open and save Solarized Dark.terminal.

Import from the “Profiles” tab in the settings of or just double-click the file after downloading.

jackblk /
Created October 1, 2020 04:17
Use I'm Feeling Lucky on Chrome address bar


  • Navigate to chrome://settings/searchEngines?search=manage

  • Add search engine

    • Name: Feeling lucky
    • Keyword: i
    • URL:
  • Install Redirect Google to avoid Google redirect notice


jackblk / firefox-geckodriver-alpine-amd64-arm64.Dockerfile
Created December 23, 2021 09:56
Install latest firefox and geckodriver in Docker Alpine. Headless Firefox works for both AMD64 and ARM64.
# ================== Install Firefox & Driver ==================
RUN apk add --no-cache firefox-esr
# Install Geckodriver
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
RUN apk add --no-cache --virtual .build-deps wget \
| grep "tag_name" | sed -E 's/.*"([^"]+)".*/\1/') \
&& wget -qO /tmp/geckodriver.tar.gz \
"$GECKODRIVER_VERSION/geckodriver-$GECKODRIVER_VERSION-linux64.tar.gz" \
jackblk /
Created February 10, 2022 04:11
disable auto update on android, this is for samsung phone
  • Conected phone via USB to PC (Windows 7 64 bits). Waited a while for drivers to install.
  • Installed "minimal_adb_fastboot_v1.4.3_setup.exe" (from XDA-Developers).
  • Enabled USB DEBUG under "Config / Developer Options" on phone.
  • Connected phone to PC via USB.
  • Opened a Command Prompt under the folder "C:\Program Files (x86)\Minimal ADB and Fastboot"
  • Typed ADB SHELL, and the phone´s shell opened.
  • Then I used the following commands:
jackblk /
Last active April 3, 2022 13:11
Install Docker on OSMC, RaspberryPi hardware


Install Docker for OSMC on Raspberry Pi.

Tested on Raspberry Pi 2B, OSMC 2020.11-1.


Basic checks

Check version, release and keyname of OS:

jackblk / .gitconfig
Last active February 10, 2024 17:47
Git automatically config for work email and personal email
[includeIf "gitdir/i:github/"]
path = .gitconfig-github
[includeIf "gitdir/i:work/"]
path = .gitconfig-work'