Skip to content

Instantly share code, notes, and snippets.

Avatar

Nathan Farrar nfarrar

View GitHub Profile
View vimrc
"=============================================================================
" FILE: vimrc
" AUTHOR: Nathan Farrar <nathan.farrar.@gmail.com>
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
" 'Software'), to deal in the Software without restriction, including
" without limitation the rights to use, copy, modify, merge, publish,
" distribute, sublicense, and/or sell copies of the Software, and to
" permit persons to whom the Software is furnished to do so, subject to
@nfarrar
nfarrar / main.less
Created Feb 10, 2015
Playing with Less
View main.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
View keybase.md

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 / colorlogger.py
Last active Aug 29, 2015
Python Colored Logging
View colorlogger.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Nathan Farrar"
__website__ = "http://crunk.io"
__email__ = "nfarrar@crunk.io"
__version__ = 0.1
import logging
import sys
@nfarrar
nfarrar / heygirl.bash
Last active Aug 29, 2015
WIP: Configuration mangement ... in bash.
View heygirl.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 Sep 12, 2015
bash script for shortening urls with git.io
View gitio
#!/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 Nov 6, 2015
Notes on 'semi-finishing' the basement ceiling.
View basement-ceiling.rst

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).

View vlog.vim
" Author: Nathan Farrar <nfarrar@crunk.io>
" Website: https://crunk.io/dotfiles/
" Description: vlog plugin {{{
"
" A light weight message logging interface for debugging vim configurations.
" Messages are saved to a list rather than a file to improve performance
" times.
"
" - Echo, echom and echoerr seem highly unreliable to me. Various plugins
" call :redraw, which flushes messages and we never see them.
View jeep-upgrades.rst
You can’t perform that action at this time.