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 / elk.md
Last active January 14, 2018 12:56
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
nfarrar / syslog-client.py
Created August 14, 2014 16:08
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")
parser.add_argument("--address",

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)
@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
@nfarrar
nfarrar / learning-computer-security.md
Last active April 2, 2024 04:33
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

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

@nfarrar
nfarrar / woodworking.md
Last active May 14, 2018 01:13
Woodworking & Microshop Design

Woodworking

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.

Contents

# 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