Skip to content

Instantly share code, notes, and snippets.

Nathan Farrar nfarrar

Block or report user

Report or block nfarrar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nfarrar / 0_reuse_code.js
Created Jun 26, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
nfarrar /
Last active Jan 14, 2018
Setting Up a Private Elk Server

Private ELK Server

I needed a syslog server and had been reading about ELK for the past few months. I finally decided to throw together a basic implementation in my home lab. I've recorded my notes for this process in this document & dumped the notes online at the following locations:

The implementation I built is super basic, it's just in my lab for dev purposes atm - so I didn't finish securing or building the integrations - just needed it to visualize some syslog data ATM.

nfarrar /
Created Aug 14, 2014
A simple command line python syslog client for generating test messages.
#!/usr/bin/env python
import argparse
import logging
import logging.handlers
parser = argparse.ArgumentParser(__file__,
description="A syslog message generator")

ESXi (Free) Management

Exploring management options for an ESXi server in a home/lab environment.

  • It's so fucking rad that ESXi free doesn't provide a web interface. /sarcasm
  • Having a dedicated Windows VM for ESXi management is suck.
  • Running vSphere Client in Wine/Crossover requires hacks to install and doesn't work correctly.
  • How much does it cost to get a license for a lab environment?
  • Can we use the DCUI (Direct Console User Interface) without a license? (Answer: YES, via a directly console, over SSH, but we can only do very basic things)
  • Can we use the CLI/SDK/API tools? (Answer: PARTIALLY, Without a license it's locked down to read-only)
  • Can we SSH to the bare-metal host and use command line tools for manaagement? (Answer: YES, but we have to enable SSH)
View htpc-lshw.txt
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
nfarrar /
Last active Nov 12, 2019
Learning Computer Security

Learning Computer Security

About This Guide

This is an opinionated guide to learning about computer security (independently of a university or training program), starting with the absolute basics (suitable for someone without any exposure to or knowledge of computer security) and moving into progressively more difficult subject matter.

It seems that most people don't realize how much information is actually available on the internet. People love to share (especially geeks) and everything you need to become well versed in computer security is already available to you (and mostly for free). However, sometimes knowing where to start is the hardest part - which is the problem that this guide is intended to address. Therefore, this guide can accuratley be described as a 'guide to guides', with additional recommendations on effective learning and execises, based on my own experiences.

Many of the free resources are the best resources and this guide focuses on them. It is intended to provided a comprehensive

View .vimrc
" Author: Nathan Farrar
" Email:
" Website:
" 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 /
Last active Aug 29, 2015
... 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.


Movies & shows she likes, related to science.

nfarrar /
Last active May 14, 2018
Woodworking & Microshop Design


I'm completely new to home ownership & woodworking. I've tried to tackle a few projects myself & bought a couple tools in the process, but mostly still have no idea what I'm doing. My garage is a currently a complete mess. I've put some stuff up on the walls to make more space and start organizing, but I don't have any decent shelves and the "workbench" is currently just a storage area (leaving me no place to work). The surface of the workbench is warped and there are no vices or clamps making it a less than ideal work surface anyway.

I've started doing some research and dumping the notes here as I (very slowly) make progress.


View gist:849b619c7d464a84e5c0
# Author: Nathan Farrar
# Email:
# Website:
# 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.
You can’t perform that action at this time.