Skip to content

Instantly share code, notes, and snippets.

@tcg
tcg / how-i-configure-my-logitech-g502-mouse-to-make-me-more-productive.md
Created August 29, 2017 03:09
How I configure my Logitech G502 mouse to make me more productive

How I configure my Logitech G502 mouse to make me more productive

I use a "gaming mouse" as my current favorite every-day computer mouse, when I'm not just using the trackpad.

If you're not familiar with it, it's a great computer mouse that has some extra buttons that can be arbitrarily assigned key combos, macros, and various functions.

Recently, I decided to tweak some settings for every day desktop/work use, and I've been quite pleased. Here's a couple things I did:

Middle scroll wheel: left/right tilt

@dominickp
dominickp / pre-commit
Last active July 24, 2019 13:47
Switch scripting .sscript inflating pre-commit hook
#!/bin/sh
# Create a file with these contents in your repo at
# .git/hooks/pre-commit
# Place any .sscript files in a folder called Packed/
# Extract any .sscript files from a Packed/ directory
for i in `find . -name "*.sscript" -type f -exec echo \{\} \;`; do
# Only act if within a Packed directory