This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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: "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |