Changing the Key Repeat Rate in OSX

Mac OSX ships with very slow key repeat rates (how quickly a key repeats after it is first pressed, and how quickly a key input repeats after holding it down). Changing these effectively is not possible in System Settings, we instead use the command line. First, read the two relevant values in case you want to go back: defaults read -g InitialKeyRepeat and defaults read -g KeyRepeat changing these values is similarly easy:...

January 3, 2019 · 1 min · 88 words

Install and Enable GIT Large File Support in OSX

From github: Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise. If you have extremely large files that you have to manage within a git repository, this is the way github wants you to do it. ...

October 9, 2018 · 1 min · 137 words

How to Recursively Fix File Permissions in Mac OSX and Linux

I run into this problem when developing on a GIT repository where file permissions change and GIT (correctly) warns of hundreds of changes. I see this most commonly when importing files from Windows, but it can happen in many different ways. The fix is to recursively update file permissions. ...

September 20, 2018 · 1 min · 127 words

The Best Way to Block Image Hotlinking

“Image Hotlinking” is when another website embeds an image from your site (usually without permission). This increases your bandwidth bill, is a potential security concern, and is generally a pretty rude thing to do. To prevent this in Drupal, add the code below to your sites/all/files/.htaccess file: # image hotlink protection <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g?|png)$ [NC] RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?domain\. [NC] RewriteRule \.(gif|jpe?g?|png)$ - [F,NC,L] </ifModule>

September 11, 2018 · 1 min · 74 words

How to Install Python with Brew in Mac OSX

OSX ships with an older version of Python. Install using Homebrew: brew install python ...

August 30, 2019 · 1 min · 146 words