Skip to content

Instantly share code, notes, and snippets.

Nathaniel Landau natelandau

Block or report user

Report or block natelandau

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
View JSON feed for Jekyll
---
layout: null
---
{
"version": "https://jsonfeed.org/version/1",
"title": {{ site.name | jsonify }},
"home_page_url": "{{ site.baseurl }}/",
"feed_url": "{{ site.baseurl }}/feed.json",
"description": {{ site.tagline | jsonify }},
"favicon": "{{ site.baseurl }}/assets/icons/favicon-96x96.png",
@natelandau
natelandau / bootstrapNewMac
Created Jan 24, 2017
A bootstrap script to install my dotfiles and configure a new computer
View bootstrapNewMac
#!/usr/bin/env bash
# This bootstraps installing ssh-keys to github
# set colors
if tput setaf 1 &> /dev/null; then
tput sgr0
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
ORANGE="$(tput setaf 172)"
else
View key base.md

Keybase proof

I hereby claim:

  • I am natelandau on github.
  • I am natelandau (https://keybase.io/natelandau) on keybase.
  • I have a public key whose fingerprint is EE8A FAC2 21BC B14D 7A15 2D9E E004 54D8 1110 55DB

To claim this, I am signing this object:

@natelandau
natelandau / parse_yaml.sh
Created Feb 29, 2016 — forked from pkuczynski/parse_yaml.sh
Read YAML file from Bash script
View parse_yaml.sh
#!/bin/sh
parse_yaml() {
local prefix=$2
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034')
sed -ne "s|^\($s\)\($w\)$s:$s\"\(.*\)\"$s\$|\1$fs\2$fs\3|p" \
-e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 |
awk -F$fs '{
indent = length($1)/2;
vname[indent] = $2;
for (i in vname) {if (i > indent) {delete vname[i]}}
View gist:5f1e7196951bb1cdbd4b
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@natelandau
natelandau / .bash_profile
Last active Nov 15, 2019
Mac OSX Bash Profile
View .bash_profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
You can’t perform that action at this time.