Skip to content

Instantly share code, notes, and snippets.

View joshskidmore's full-sized avatar

Josh Skidmore joshskidmore

View GitHub Profile
@joshskidmore
joshskidmore / synaptics.sh
Created October 4, 2019 00:18
synaptics.sh
#!/usr/bin/env bash
echo "Configuring synaptics settings..."
S=synclient
# [man] The LeftEdge, RightEdge, TopEdge and BottomEdge parameters are used to define the edge and corner
# areas of the touchpad. The parameters split the touchpad area in 9 pieces, like this:
# │ │
# │ LeftEdge │ RightEdge
@joshskidmore
joshskidmore / gpd-p2max-kmonad-config.kbd.hs
Last active October 4, 2019 19:07
GPD P2Max KMonad Keyboard Config
INPUT = LINUX_DEVICE L64 /dev/input/by-id/usb-HAILUCK_CO._LTD_USB_KEYBOARD-event-kbd
OUTPUT = UINPUT_SINK
// "TH" = "tap hold"
// this definition states that tapping the ESC key for < 150ms
// acts as an escape and holding for anything > 150ms generates the ` character
// (which is a common place for the tick character on a US keyboard layout)
@esc = TH 150 esc `
// "MT" = "multi tap"
@joshskidmore
joshskidmore / img-url-exif.sh
Last active February 15, 2024 15:14
img-url-exif.sh
#!/usr/bin/env bash
# Josh Skidmore <josh@josh.sc>
# Basic example of using an HTTP range header to extract EXIF data
# from a JPEG file without having to download the entire image.
# This has no error handling and assumes the EXIF data is embedded
# within the first $KB_TO_DOWNLOAD kilobytes of the image
# Requirements:
# * curl