I hereby claim:
- I am jackblk on github.
- I am jackblk (https://keybase.io/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:
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
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 |
# 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: https://www.reddit.com/r/pop_os/comments/idey8l/cant_turn_off_calculator_shortcut/ | |
gsettings set org.gnome.settings-daemon.plugins.media-keys calculator-static "['']" |
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 Terminal.app or just double-click the file after downloading.
# ================== 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 \ | |
&& GECKODRIVER_VERSION=$(wget -qO- https://api.github.com/repos/mozilla/geckodriver/releases/latest \ | |
| grep "tag_name" | sed -E 's/.*"([^"]+)".*/\1/') \ | |
&& wget -qO /tmp/geckodriver.tar.gz \ | |
"https://github.com/mozilla/geckodriver/releases/download/$GECKODRIVER_VERSION/geckodriver-$GECKODRIVER_VERSION-linux64.tar.gz" \ |
[includeIf "gitdir/i:github/"] | |
path = .gitconfig-github | |
[includeIf "gitdir/i:work/"] | |
path = .gitconfig-work' |
Since my Macbook Pro only has USB-C port, I used an USB-A to USB-C adapter to connect my F310 to it, but it does not work (pressing MODE button does not turn on the LED).
To make it work: