Skip to content

Instantly share code, notes, and snippets.

View christopheranderton's full-sized avatar

Christopher Anderton christopheranderton

View GitHub Profile
@christopheranderton
christopheranderton / mute-macosx-startup-sound.sh
Last active July 5, 2019 13:21
Enable ”Mute” for the Startup sound on Mac OS X.
#!/bin/sh
osascript -e 'set volume with output muted'
@christopheranderton
christopheranderton / github-brand-colors-aug-2015.css
Last active April 28, 2020 19:30
Official Github Brand Colors (August 20, 2015) from the GitHub internal CSS framework (Primer) version 2.3.3 at: http://primercss.io/colors/ [Note: Photoshop users. You can download the raw file (.css) and import the swatches just like a .aco file (more recent versions of Photoshop).
/* # OFFICIAL GITHUB BRAND COLORS
--------------------------------------------------------------------
Official Github Brand Colors (August 20, 2015) from the
GitHub internal CSS framework (Primer) version 2.3.3
Source URI: http://primercss.io/colors/
1.a = Github Branding Color Swatches
-------------------------------------------------------------------- */
.swatch-github-blue {
background-color:#4078c0;
@christopheranderton
christopheranderton / homebrew-github-api-token.md
Last active January 2, 2024 13:07
Set your Github API Token If you hit a ”GitHub API rate limit exceeded” when searching with Homebrew (http://brew.sh/).

Description

PLEASE SCROLL DOWN AND READ THE COMMENTS FOR A MORE UP TO DATE WAY (AND EASIER) TO DO THIS
When using Homebrew (http://brew.sh) and searching formulas or pull requests you may get the dreaded error message: Github API Rate limit exceeded

Let's fix that! (yeah!)


Short version

PLEASE SCROLL DOWN AND READ THE COMMENTS FOR A MORE UP TO DATE WAY (AND EASIER) TO DO THIS

@christopheranderton
christopheranderton / wp-cli-update
Last active January 4, 2016 03:28
NOTE: This is a old Gist. It may work, but it can also be deprecated. | Update WP-CLI (WP-CLI itself, not a WordPress install).For use with your Terminal.app (or iTerm.app).
cd ~/.wp-cli
php composer.phar self-update
php composer.phar require 'wp-cli/wp-cli=@stable'
@christopheranderton
christopheranderton / css-font-setting-the-standards-way.css
Last active February 22, 2016 07:28
Note: This is a old Gist. It may be deprecated. | Standards CSS Font Feature Settings instead of non CSS standard optimizeLegibility. However, it seems that Blink-based browsers (Chrome and Opera) adds extra padding for every word, thus breaking some layouts (specially grid based ones and css menus). Firefox and WebKit (Safari) does not seems to…
/* While most people are using text-rendering: optimizeLegibility;
* in their projects for better text rendering, it's actually non
* standard CSS (it's a SVG property).
* The standard way is to use the font feature settings for OpenType.
* The snippet below replicates text-rendering: optimizeLegibility;
*------------------------------------------------------------------- */
-moz-font-feature-settings:"kern" 1, "liga" 1;
-moz-font-feature-settings:"kern=1, liga=1";
-ms-font-feature-settings:"kern" 1, "liga" 1;