Skip to content

Instantly share code, notes, and snippets.

View nfarrar's full-sized avatar

Nathan Farrar nfarrar

View GitHub Profile
@nfarrar
nfarrar / 0_reuse_code.js
Created June 26, 2014 21:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@nfarrar
nfarrar / htpc-lshw.txt
Created October 27, 2014 19:17
HTPC Hardware
htpc
description: Desktop Computer
product: DS61 (1.0)
vendor: Shuttle Inc.
version: V1.0
serial: To be filled by O.E.M.
width: 64 bits
capabilities: smbios-2.7 dmi-2.7 vsyscall32
configuration: boot=normal chassis=desktop family=D sku=1.0 uuid=00020003-0004-0005-0006-000700080009
*-core
" Author: Nathan Farrar
" Email: nathan.farrar@gmail.com
" Website: http://crunk.io/
" INITIALIZATION {{{1
" This file is utf-8. Ensure we read it correctly.
scriptencoding utf-8
" If we're running vim-tiny or vim-small stop sourcing the vim configuration.
if !1 | finish | endif
@nfarrar
nfarrar / science-for-children.md
Last active August 29, 2015 14:10
... teaching my daughter about science, electronics, robotics, computers and programming.

Science for Children

Learning with style.

Note: Also using this as gift-tracker idea for family.

Misc

Movies & shows she likes, related to science.

# Author: Nathan Farrar
# Email: nathan.farrar@gmail.com
# Website: http://crunk.io/
# Updated: 2014-10-10 08:50:00
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
# NOTES
@nfarrar
nfarrar / main.less
Created February 10, 2015 15:13
Playing with Less
// jellybeans
@opacity: 1;
@black-jellybeans: rgba(59,59,59,@opacity); // #3b3b3b
@red-jellybeans: rgb(207,106,76,@opacity); // #cf6a4c
@green-jellybeans: rgba(153,173,106,@opacity); // #99ad6a
@yellow-jellybeans: rgba(216,173,76,@opacity); // #d8ad4c
@blue-jellybeans: rgba(89,123,197,@opacity); // #597bc5
@magenta-jellybeans: rgba(160,55,176,@opacity); // #a037b0

Keybase proof

I hereby claim:

  • I am nfarrar on github.
  • I am nfarrar (https://keybase.io/nfarrar) on keybase.
  • I have a public key whose fingerprint is B743 226C 28B5 6031 FD0D DCB5 3E15 F07F C918 704E

To claim this, I am signing this object:

@nfarrar
nfarrar / heygirl.bash
Last active August 29, 2015 14:19
WIP: Configuration mangement ... in bash.
#!/usr/bin/env bash
# Author: Nathan Farrar <nfarrar@crunk.io>
# Website: http://dotfiles.crunk.io/
#
#/ Usage: source _lib.bash
#/ bash _lib.bash
#/
#/ This script is required by all the other scripts in bootstrap & modules
#/ directories. It provides a set of reusable 'library' functions for building
#/ small, cross-platform scripts (bundled as modules) that install & configure
@nfarrar
nfarrar / gitio
Created September 12, 2015 19:19
bash script for shortening urls with git.io
#!/usr/bin/env bash
# Author: Nathan Farrar <nfarrar@crunk.io>
# Website: https://crunk.io
# Description: Command-line git.io shortner script, in bash.
#
#/ Usage: gitio [options] <url>
#/ Shortens github URLs using git.io. The generated URL is automatically
#/ copied to the clipboard (requires xclip on linux platforms).
#/ -c <code> Specify an optional code to be used as a 'vanity' URL.
#/ -v Display verbose messages.
@nfarrar
nfarrar / basement-ceiling.rst
Last active November 6, 2015 18:41
Notes on 'semi-finishing' the basement ceiling.

Basement Ceiling

Pictures of the basement ceiling are here.

The basement ceiling is already low. Installing a drop ceiling is expensive, makes it more difficult to access all the wiring/etc and reduces overhead space (which is already at premium).