Skip to content

Instantly share code, notes, and snippets.

View robatron's full-sized avatar
🤖

Rob McGuire robatron

🤖
  • Zillow
  • Seattle, WA
View GitHub Profile
@robatron
robatron / term-dash.md
Last active January 10, 2016 22:30
Terminal dashboarding tricks

Terminal Dashboard Notes

A few notes for creating a terminal-based dashboard

Example

function _dash_init () {
    tput civis
}
/*!
query-string
Parse and stringify URL query strings
https://github.com/sindresorhus/query-string
by Sindre Sorhus
MIT License
*/
(function () {
'use strict';
var queryString = {};
@robatron
robatron / osbridge-2015-notes.md
Last active August 29, 2015 14:23
Notes for Open Source Bridge 2015
/**
* Get the total time for the specified timers, counting parallel time only
* once if no timers match the filter, return 0.
* @param {String} filter - 'contains'-filter by name
*/
Timer.getTotalTime = function ( filter ) {
// Sort timers by start time, ascending
var sortedTimers = _.sortBy( Timer.getTimers( filter ), 'startTime' );

Monday Night Movie Date

Notes about movies showing at Sundance Cinemas that we both might like

Birdman (Comedy, Comicbook)

  • Synopsis: Beetlejuice, Batman, ...Birdman?
  • Starring: Michael Keaton, Edward Norton
  • GF Highlights: Comic-themed
@robatron
robatron / fallout-1-high-res-patch-mac-osx.md
Last active October 8, 2019 08:59
How to get the Fallout 1 (and Fallout 2) high-resolution patch working for Mac OS X

Fallout 1 (and Fallout 2) Hi-Res Patch for Mac OS X

Fallout 1 was originally designed to run at 640x480 resolution. I wanted to run the Mac OS X version of Fallout on my MacBook 11", which has a 1366x768 display. There is a [high resolution patch][hi-res], but it only supports the Windows version of Fallout.

Turns out that the OS X version of Fallout runs through Wine, so we can get this patch working with just a few configuration changes:

Note for Fallout 2 users: The process for Fallout 2 is essentially the same, with a different patch, and some minor pathing differences. Other than that, the process is exactly the same!

Install Wine

@robatron
robatron / fallout-3-macbook-intel-graphics-fix.md
Last active August 29, 2015 14:12
How to run Fallout 3 on MacBook Intel graphics chipsets

I had trouble getting Steam's version of Fallout 3 to work on my MacBook Pro in Windows. The main menu would start, but the game would crash after I clicked "play", just before the intro movie.

Turns out the issue was related to my MacBook's Intel graphics chipset, an Intel Iris Graphics 5100. To get FO3 to work, I was able to use the Intel HD Graphics Bypass package to trick FO3 into thinking it's running on an Nvidia chipset.

If you're running an Intel graphics chipset, and can't get FO3 to run, this fix may work for you too:

  1. Manually download and extract the Intel HD Graphics Bypass Package
  2. Copy d3d9x.dll --> C:\Program Files (x86)\Steam\steamapps\common\Fallout 3\
  3. (Optional) Create a backup copy of C:\users\$USERNAME\Documents\my games\Fallout3\FALLOUT.ini
  4. Copy FALLOUT.INI --> C:\users\$USERNAME\Documents\my games\Fallout3\
@robatron
robatron / apple-internet-connection-test-page.txt
Last active August 29, 2015 14:07
The page OS X uses to test Internet connections
http://www.apple.com/library/test/success.html
@robatron
robatron / kirby-js-console-dance.js
Last active August 29, 2015 14:04
Make Kirby dance in your browser's JavaScript console.
/**
* Make Kirby dance in your browser's JavaScript console.
*
* Great to run in your coworker's console when they forget to lock their computer.
*/
var i = 0;
var KFRAMES = [ "<('.'<)", "^('.')^", "(>'.')>", "^('.')^" ];
setInterval( function () {
clear();
console.log( KFRAMES[ i % ( KFRAMES.length - 1 ) ] );