Skip to content

Instantly share code, notes, and snippets.

View sticklerm3's full-sized avatar

Matthew Stickler sticklerm3

  • Chicago, IL
View GitHub Profile
@sticklerm3
sticklerm3 / index.html
Last active May 14, 2020 23:01
Last.FM Now Playing!
<div class="nowplayingcard">
<div class="nowplayingcontainer-inner">
<img id="trackart" src="#">
<div class="trackInfo">
<a id="tracktitle"></a>
<a href="#" id="trackartist"></a>
</div>
</div>
</div>
zsh_weather(){
local weather=$(curl -s "https://api.apixu.com/v1/current.json?key="<Your API Key>"&q="<Your City>"")
local temp=$(echo $weather | jq .current.temp_c)
local condition=$(echo $weather | jq .current.condition.text)
#Default value
local color='%F{green}'
local symbol="\uf2c7"
if [[ $condition == *"rain"* ]] ;
then symbol="\uf043" ; color='%F{blue}'

Mojave installer instructions

I made this as a guide for myself to upgrade to Mojave but included the paths to past macOS versions below. Please read through this carefully, especially if upgrading from macOS Sierra as Apple notes a special use of the --applicationpath argument for the createinstallmedia command.

Before you begin

Download your macOS installer from the Mac AppStore and prepare your USB disk for the installer. Instructions for each will be found below.

To download macOS Mojave or High Sierra for this purpose, download from a Mac that is using macOS Sierra 10.12.5 or later, or El Capitan 10.11.6. Enterprise administrators, please download from Apple, not a locally hosted software-update server.

From [Apple Support][d8da3f22]

#!/usr/bin/env bash
# This script was sourced from http://krypted.com/uncategorized/check-the-efi-version-of-a-mac/
current_efi_version=$(/usr/libexec/efiupdater | grep "Raw" | cut -d ':' -f2 | sed 's/ //')
echo "current_efi_version $current_efi_version"
latest_efi_version=$(ls -La /usr/libexec/firmwarecheckers/eficheck/EFIAllowListShipping.bundle/allowlists/ | grep "$current_efi_version")
echo "latest_efi_version $latest_efi_version"
#!/bin/bash
# ================================================================================
# export-macos-man-pages.sh
#
# This script exports all available man pages to a folder in ~/Desktop
#
# Hannes Juutilainen <[email protected]>
# https://github.com/hjuutilainen/adminscripts
#
@sticklerm3
sticklerm3 / mackupcfgvariables.txt
Created August 22, 2018 08:51
mackupcfg variables
[application]
name = application
[configuration_files]
.pathtofile
@sticklerm3
sticklerm3 / gist:7943f02611fe0bec7c040369b97cc1cb
Created August 11, 2018 00:49 — forked from carimura/gist:7523120
Programming Comcast Controller for AppleTV
#*Step By Step Instruction*
##Set Apple TV to Aux Keys
--
Press Aux (Device) Button
Hold Setup Key until Aux Button Blinks Twice
Type in code 31115 (Aux Button will blink twice, if it is a long blink try last three steps again)
##Fix Play and Pause Keys
--
@sticklerm3
sticklerm3 / osx_bootstrap.sh
Created July 24, 2018 04:27 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
#!/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:
#
# - Twitter (app store)