Skip to content

Instantly share code, notes, and snippets.

// Logitech MX Master 4 Button Mapping
// 0x0c4 → Top button behind scroll wheel (MagSpeed toggle)
// 0x052 → Middle click (wheel press) (Standard middle click)
// 0x053 → Back button (side) (Browser Back)
// 0x056 → Forward button (side) (Browser Forward)
// 0x0c3 → Gesture button (Gesture button) (Media gesture hub)
// 0x1a0 → Thumb button (bottom-left corner) (Super/Meta key)
// Configuration for Logitech MX Master 4
// Full gesture implementation on the gesture button for media control
@yuryroot
yuryroot / db_backup.sh
Last active October 5, 2016 13:35
Bash script for backup Postgresql cluster
#!/usr/bin/env bash
# These ENV variables should be specified:
# * WORKING_DIR
# * PG_USER
# * SCP_USER
# * SCP_HOST
# * SCP_DIR
#
# Also optional variable MAIL_TO can be specified.