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
View keybase.md

Keybase proof

I hereby claim:

  • I am paulgalow on github.
  • I am paulgalow (https://keybase.io/paulgalow) on keybase.
  • I have a public key whose fingerprint is FAB2 F3EF EC6C C5D4 A9BF 4AB3 B90D B0E9 29F1 E4C6

To claim this, I am signing this object:

View generateMacIcon.swift
#!/usr/bin/swift
import AppKit
func generateMacIcon(dimension: CGFloat, name iconName: String) {
// Make sure our maximum rendering size does not exceed 512 px
guard dimension <= 512 else {
print("Error: Maximum dimension allowed is 512")
return
@paulgalow
paulgalow / FirefoxExtensions.mobileconfig
Last active Dec 29, 2018
Example configuration profile to install the uBlock Origin Firefox extension and set domains that can install extensions
View FirefoxExtensions.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>PayloadContent</key>
<array>
<dict>
<key>EnterprisePoliciesEnabled</key>
<true/>
<key>Extensions</key>
@paulgalow
paulgalow / rename-photos-videos-timestamp.sh
Last active Jan 26, 2019
macOS Automator script to rename photos/videos based on creation date. Blog post: https://paulgalow.com/macos-quick-action-rename-photos-videos-timestamp
View rename-photos-videos-timestamp.sh
#!/bin/bash
# macOS Automator script to rename photos/videos based on creation date
# Blog post: https://paulgalow.com/macos-quick-action-rename-photos-videos-timestamp
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
# Create subfolder to store renamed files
createDestination() {
readonly destination="$(dirname "$file")/sorted"
@paulgalow
paulgalow / awscreds-lpass.sh
Last active Aug 27, 2019
Get AWS CLI IAM credentials from LastPass CLI. Blog post: https://paulgalow.com/securing-aws-credentials-macos-lastpass
View awscreds-lpass.sh
#!/bin/bash
# Get AWS CLI IAM credentials from LastPass CLI
# Blog post: https://paulgalow.com/securing-aws-credentials-macos-lastpass
# ##############################################################################
# Please adjust those properties
readonly lastPassEntry="REPLACE-ME" # Name of LastPass entry that stores your IAM credentials
readonly lpass="/usr/local/bin/lpass" # Path to LastPass CLI
# ##############################################################################
You can’t perform that action at this time.