Skip to content

Instantly share code, notes, and snippets.

@bps
bps / private.xml
Created April 9, 2014 16:00
Fix modifier keys on MS Sculpt Ergonomic keyboard
<?xml version="1.0"?>
<root>
<!--
I found that remapping Cmd and Alt via the Keyboard prefs didn't
properly remap right Alt, so we'll do it here. Also map the
application key to right Alt.
-->
<devicevendordef>
<vendorname>MICROSOFT</vendorname>
<vendorid>0x045e</vendorid>
Go here to export playlists: http://groovebackup.com/
Each playlist will look like this:
```
"SongName","ArtistName","AlbumName"
"Oxford Comma","Vampire Weekend","Vampire Weekend"
"Le Vent Nous Portera","Noir Désir","Radio Bemba Sound System"
"Na neh na","Vaya Con Dios","Top 2000"
"Discordance","Paris Combo","Motifs"
@goldsmith
goldsmith / python_mavericks_guide.sh
Last active June 3, 2020 12:18
When I upgraded my Mac to OS X Mavericks, a lot of utilities (like Python, virtualenv, Xcode) broke, and it was pretty stressful trying to get it all set back up. Hopefully this guide can spare you some of that pain.Note: I'm by no means a Linux or Mac expert, so please fork and let me know if anything is redundant, incorrect, or missing!
# A guide to prevent pain and suffering while upgrading to OS X Mavericks
# This will vary greatly depending on system set up, so read the instructions carefully
# Back up Virtulenvs
####################
# Very important!
# For each virtualenv you have, run "pip freeze > requirements.txt" while in the activated virtualenv
# in order to prevent loss of dependencies during the upgrade.
@ccstone
ccstone / BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
Last active May 10, 2024 15:41
BBEdit-TextWrangler Regular Expression Cheat-Sheet
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEdit / BBEdit-Lite / TextWrangler Regular Expression Guide Modified: 2018/08/10 01:19
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.
@benspaulding
benspaulding / ReadMe.rst
Created October 17, 2011 01:24
Scripts for using BBEdit, TextWrangler, or MacVim as default command line EDITOR.

EDITOR Helpers

Author

Ben Spaulding

This is a collection of helper scripts for using popular Mac text editors as your terminal EDITOR.

These are certainly not essential, as all of the editors helped here ship with a powerful command-line utility. However, to properly use them for something like