Skip to content

Instantly share code, notes, and snippets.

geek-at /
Created Aug 13, 2020
The script used to trash a banking phishing site
while :; do
verf=$(cat /dev/urandom | tr -dc '0-9' | fold -w 8 | head -n 1)
pin=$(cat /dev/urandom | tr -dc '0-9' | fold -w 5 | head -n 1)
ip=$(printf "%d.%d.%d.%d\n" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))")
gaearon / Classes.js
Created May 27, 2020
Beneath Classes: Prototypes
View Classes.js
class Spiderman {
lookOut() {
alert('My Spider-Sense is tingling.');
let miles = new Spiderman();
# Usage:
# - Install jq:
# - Add this script to your path, eg. to /usr/local/bin
# - Add AWS access key id and secret access key to LastPass
# named "AWS Credentials for my-profile profile"
# - Add "credential_process = awscreds-lpass my-profile" to
# the respective profile in ~/.aws/config
tomhicks / plink-plonk.js
Last active Oct 1, 2020
Listen to your web pages
View plink-plonk.js
talkingmoose / Manage App Notifications.bash
Last active Oct 1, 2020
macOS Catalina will prompt users to allow Notifications from each app that makes a request. Administrators can manage these prompts using a Configuration Profile. If running Jamf Pro 10.19 or later, I suggest instead using this manifest:…
View Manage App Notifications.bash
Written by:William Smith
Professional Services Engineer
scriptingosx /
Created Sep 10, 2019
Script that builds, packages and notarizes an Xcode command line tool.
# 2019 - Armin Briegel - Scripting OS X
# place a copy of this script in in the project folder
# when run it will build for installation,
# create a pkg from the product,
# upload the pkg for notarization and monitor the notarization status
jeshan / cdk-profile-plugin.js
Last active Jul 26, 2020
How to select AWS profiles per account in AWS CDK
View cdk-profile-plugin.js
const { CredentialProviderChain } = require('aws-sdk');
const AWS = require('aws-sdk');
const accountProvider = require('./account-provider');
let getEnv = function(accountId) {
// TODO: insert logic to get your desired profile name
return profileName;
let getProvider = async (accountId, mode) => {
soundsnw /
Created Jun 11, 2019
Give macOS standard users access to networking, printing and more
# Provides standard user access to preference panels they would expect to be able to access, and might need access to.
# Provides standard users access to system preferences
/usr/bin/security authorizationdb write system.preferences allow
vakila / SingleArrow.ipynb
Created Apr 12, 2019
Anjana Vakil, "The Universe in a Single Arrow", JSHeroes 2019
View SingleArrow.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
scriptingosx /
Created Mar 28, 2019
This script will print the build numbers of the macOS version from all installer apps
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
installerBuildVersion() { # $1 path to the installer app
installerApp=${1:?"no path for installer"}
# echo "inspecting: $installerApp"
if [[ -d "$installerApp" ]]; then
identifier=$(/usr/libexec/PlistBuddy -c "print CFBundleIdentifier" "$installerApp/Contents/Info.plist")
You can’t perform that action at this time.