Skip to content

Instantly share code, notes, and snippets.

View willnorris's full-sized avatar

Will Norris willnorris

View GitHub Profile
<?php
function twitter_metadata($metadata) {
$metadata['twitter:card'] = 'summary';
$metadata['twitter:creator'] = '@willnorris';
foreach (array('url', 'title', 'description', 'image') as $attr) {
if (array_key_exists("og:$attr", $metadata)) {
$metadata["twitter:$attr"] = $metadata["og:$attr"];
}
@willnorris
willnorris / gist:c374b88cf92272572f4b
Last active August 29, 2015 14:00
hterm preferences
// Modified from https://groups.google.com/a/chromium.org/d/topic/chromium-hterm/eEijj3W1UBk/discussion
// Disable bold.
term_.prefs_.set('enable-bold', false)
// Use this for Solarized Dark
term_.prefs_.set('background-color', "#002B36")
term_.prefs_.set('foreground-color', "#839496")
@willnorris
willnorris / keybase.md
Created July 7, 2014 00:23
Keybase proof

Keybase proof

I hereby claim:

  • I am willnorris on github.
  • I am willnorris (https://keybase.io/willnorris) on keybase.
  • I have a public key whose fingerprint is 6918 7042 4552 90C1 FCBB 5492 6B3A 242D 0BC4 CBB0

To claim this, I am signing this object: