Skip to content

Instantly share code, notes, and snippets.

View DrewMcArthur's full-sized avatar
🏠
Working from home

Drew McArthur DrewMcArthur

🏠
Working from home
View GitHub Profile
@DrewMcArthur
DrewMcArthur / 2d-workspaces.sh
Created July 1, 2015 18:38
This script allows a simulation of a 2D grid of workspaces for i3wm
#!/bin/bash
#This script simulates a 2D grid of workspaces with i3.
#all you have to do is add the next line to your i3/config
#bindsym <keys> exec <path>/i3/workspaces.sh <direction> [move win]
#for example,
#bindsym Control+Mod1+Right exec ~/.config/i3/workspaces.sh right
@DrewMcArthur
DrewMcArthur / keybase.md
Created March 31, 2018 04:20
keybase proof of my identity

Keybase proof

I hereby claim:

  • I am drewmcarthur on github.
  • I am drewmcarthur (https://keybase.io/drewmcarthur) on keybase.
  • I have a public key ASABgvOLoDg-u8V-lVjQ2KY6bhNwwwigK8JXCD0fZaH2CAo

To claim this, I am signing this object:

@DrewMcArthur
DrewMcArthur / website-icon.html
Last active October 19, 2017 10:46
A single file describing an html page that renders the icon used for my website.
<html><head>
<link href="http://fonts.googleapis.com/css?family=Lato:300,400,500" rel="stylesheet" type="text/css">
<style type="text/css">
span {
position: absolute;
top: 3.5px;
}
span.D{
left: 7.5px;
}
@DrewMcArthur
DrewMcArthur / darkroomextras.js
Last active September 28, 2017 19:48
This code can be copied into your console when playing adarkroom.doublespeakgames.com to add some aesthetic features
// determine colors to set things, depending on if the lights are on
var focused = 'black';
var faded = '#BBB';
// when the mouse hovers over an item in either the craft or build list
$('#craftBtns > div, #buyBtns > div').not('.disabled').on('mouseenter', function(event){
// TODO: this should change with the engine event
if(Engine.isLightsOff()){
focused = 'white';
faded = '#444';
@DrewMcArthur
DrewMcArthur / gist:643bbd5e4f8acbc1056682c42e770ce5
Last active September 4, 2016 22:00
How to install GNU gettext on MAC OSX
  1. Wget ftp://ftp.gnu.org/pub/gnu/gettext/gettext-latest.tar.gz
  2. Untar file as tar -zxvf gettext-latest.tar.gz
  3. cd to the directory containing the package's source code and type ./configure to configure the package for your system. If you're using csh on an old version of System V, you might need to type sh ./configure instead to prevent csh from trying to execute configure itself.

Running configure takes awhile. While running, it prints some messages telling which features it is checking for.

  1. Type make to compile the package.
  2. Optionally, type make check to run any self-tests that come with the package.
  3. Type make install to install the programs and any data files and documentation.