Skip to content

Instantly share code, notes, and snippets.

View mknepprath's full-sized avatar
🏠
Working from home

Michael Knepprath mknepprath

🏠
Working from home
View GitHub Profile
@mknepprath
mknepprath / musickit-token-encoder.js
Created February 20, 2021 16:48 — forked from leemartin/musickit-token-encoder.js
Apple Music API Token for MusicKit
"use strict";
const fs = require("fs");
const jwt = require("jsonwebtoken");
const privateKey = fs.readFileSync("AuthKey.p8").toString();
const teamId = "ABCDE12345";
const keyId = "ABCDE12345";
const jwtToken = jwt.sign({}, privateKey, {
@mknepprath
mknepprath / appify
Created January 8, 2020 16:31 — forked from mathiasbynens/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh