Skip to content

Instantly share code, notes, and snippets.

Paul Galow paulgalow

Block or report user

Report or block paulgalow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@scriptingosx
scriptingosx / pkgAndNotarize.sh
Created Sep 10, 2019
Script that builds, packages and notarizes an Xcode command line tool.
View pkgAndNotarize.sh
#!/bin/zsh
# pkgAndNotarize.sh
# 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
@soundsnw
soundsnw / standard-user-access.sh
Created Jun 11, 2019
Give macOS standard users access to networking, printing and more
View standard-user-access.sh
#!/bin/sh
#
# 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
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
scriptingosx / InstallerBuilds.sh
Created Mar 28, 2019
This script will print the build numbers of the macOS version from all installer apps
View InstallerBuilds.sh
#!/bin/bash
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")
@cellularmitosis
cellularmitosis / EmojiPointersDemo.swift
Created Aug 15, 2018
Representing pointer values as emoji can be useful for "visually" debugging certain issues, like cell reuse, etc.
View EmojiPointersDemo.swift
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
let window = UIWindow(frame: UIScreen.main.bounds)
@WardsParadox
WardsParadox / chrome.mobileconfig
Created Apr 9, 2018
Newer style chromeconfig example for multi domain pattern sign-in whitelist
View chrome.mobileconfig
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadIdentifier</key>
<string>org.example.profile.chrome</string>
<key>PayloadRemovalDisallowed</key>
<true/>
<key>PayloadScope</key>
<string>System</string>
@miguelmota
miguelmota / ssm_parameter.go
Last active Aug 24, 2019
AWS SSM Go SDK parameter store example
View ssm_parameter.go
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ssm"
)
@pudquick
pudquick / computer_icon.py
Created Jan 10, 2018
A variation on https://scriptingosx.com/2018/01/get-an-icon-for-your-mac/ that doesn't attempt to contact WindowServer / trigger errors
View computer_icon.py
#!/usr/bin/python
from Foundation import NSZeroRect, NSMakeRect, NSMakeSize
from AppKit import NSPNGFileType, NSCompositeCopy, NSGraphicsContext, NSCalibratedRGBColorSpace, NSBitmapImageRep, NSImage, NSImageNameComputer
dimension = 512
size = NSMakeSize(dimension, dimension)
rect = NSMakeRect(0, 0, dimension, dimension)
image = NSImage.imageNamed_(NSImageNameComputer)
image.setSize_(size)
View pem.go
package main
import (
"fmt"
"log"
"os"
"github.com/groob/plist"
)
@mrbar42
mrbar42 / README.md
Last active Sep 5, 2019
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)
View README.md

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
      |- 360p.m3u8
You can’t perform that action at this time.