Skip to content

Instantly share code, notes, and snippets.

@natelandau
natelandau / .bash_profile
Last active March 20, 2024 22:19
Mac OSX 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
@natelandau
natelandau / parse_yaml.sh
Created February 29, 2016 22:01 — forked from pkuczynski/parse_yaml.sh
Read YAML file from Bash script
#!/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]}}
@natelandau
natelandau / bootstrapNewMac
Created January 24, 2017 14:45
A bootstrap script to install my dotfiles and configure a new computer
#!/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
---
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",
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//

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: