Skip to content

Instantly share code, notes, and snippets.

View robnadin's full-sized avatar

Rob Nadin robnadin

View GitHub Profile
@robnadin
robnadin / install_rbenv.sh
Last active October 7, 2021 09:30 — forked from 0xmachos/install_rbenv.sh
Install the Ruby version manager rbenv and ruby-build to allow you to install Ruby versions
#!/usr/bin/env bash
set -eo pipefail
# -e exit if any command returns non-zero status code
# -o pipefail force pipelines to fail on first non-zero status code
FATAL="\\033[1;31mFATAL\\033[0m"
WARNING="\\033[1;33mWARNING\\033[0m"
PASS="\\033[1;32mPASS\\033[0m"
INFO="\\033[1;36mINFO\\033[0m"
@robnadin
robnadin / Example.swift
Last active February 11, 2020 07:02 — forked from beccadax/Example.swift
Elegant handling of localizable strings in Swift 5.
let color = "blue"
let num = 42
localized("Colorless green ideas sleep furiously.")
localized("Colorless \(color) ideas sleep furiously.")
localized("\(num.formatted("%05d")) colorless green ideas sleep furiously.")
@robnadin
robnadin / ReadMe.txt
Created June 26, 2018 21:39 — forked from WinSe7en/ReadMe.txt
Mac Symantec Uninstall
********* RemoveSymantecMacFiles.command 7.0.49 *********
WARNING: This script will remove all files and folders created by Symantec
Mac OS X products (LiveUpdate Administration Utility files) and
any files within those folders. Therefore, you will lose ALL files
that reside in those folders, including any that you have created.
Usage: RemoveSymantecMacFiles.command [-CcdeFfghIikLlmpQqRrV] [-QQ] [-re] [volume ...]
Summary: If no option or volume is specified, then all Symantec files are
@robnadin
robnadin / CustomFontMetrics.swift
Created August 9, 2017 09:15 — forked from zwaldowski/CustomFontMetrics.swift
[WIP] UIFontMetrics Backport from iOS 11
//
// CustomFontMetrics.swift
//
// Created by Zachary Waldowski on 6/6/17.
// Licensed under MIT.
//
import UIKit
private extension UITraitCollection {