Skip to content

Instantly share code, notes, and snippets.

View Makiah's full-sized avatar

Makiah Bennett Makiah

  • Northeastern University
  • MA, USA
View GitHub Profile
@Makiah
Makiah / UpdateAngularVersion.sh
Created November 27, 2017 18:04
Updates the Angular project version (both global CLI and local)
#! /bin/bash
# Based on https://stackoverflow.com/questions/43931986/how-to-upgrade-angular-cli-to-the-latest-version
npm uninstall -g angular-cli
npm cache clean
npm install -g @angular/cli@latest
rm -rf node_modules
npm uninstall --save-dev angular-cli
echo "* Running MAC Address Spoofer! *"
# Check current MAC address
ifconfig en1 | grep ether
# Tell airport to disassociate from the current network
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z
# Spoof the MAC address
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//' | xargs sudo ifconfig en1 ether
@Makiah
Makiah / CreateMonthCalendar.scpt
Last active November 13, 2017 03:31
Used to generate school calendars for Apple Calendars (iCal whatever) for NHS schedules.
// Create the application.
var app = Application.currentApplication()
// Ensure that we have the Calendar application available for use.
app.includeStandardAdditions = true
// This function is used when we need to prompt the user for something.
function askUser(prompt) {
var response = app.displayDialog(prompt, {
defaultAnswer: "",