Skip to content

Instantly share code, notes, and snippets.

# Pulled right from latest rack. Old looked like this in 1.1.0 version.
#
# def [](k)
# super(@names[k] ||= @names[k.downcase])
# end
#
module Rack
module Utils
@darrennolan
darrennolan / update-mac.sh
Created July 27, 2017 01:47 — forked from anonymous/update-mac.sh
Update Mac Software script (super quicker than app store)
#!/usr/bin/env bash
softwareupdate -l
while true; do
echo "Do you wish to update all the above things?"
read -p "[y/n]? " yn
case $yn in
[Yy]* ) softwareupdate -i -a; break;;
[Nn]* ) exit;;