Skip to content

Instantly share code, notes, and snippets.

View tombennett's full-sized avatar

Tom Bennett tombennett

  • Expedia Group
  • London
View GitHub Profile
@tombennett
tombennett / osx_bootstrap.sh
Last active January 25, 2020 23:03 — forked from codeinthehole/osx_bootstrap.sh
OSX bootstrap
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - annotate (appstore)
@tombennett
tombennett / hosts.ps1
Created April 27, 2017 19:40 — forked from lantrix/hosts.ps1
Powershell script for adding/removing/viewing entries to the hosts file.
#
# Powershell Functions for adding/removing/showing entries to the hosts file.
#
# Known limitations:
# - does not handle entries with comments afterwards ("<ip> <host> # comment")
#
Function Add-Host {
<#
.SYNOPSIS