Skip to content

Instantly share code, notes, and snippets.

@n8henrie
n8henrie / folder_action_template.applescript
Last active May 15, 2020 16:40
Template for Folder Actions to allow easy interactive testing in Script Editor, should work seamlessly once activated as Folder Actions.
-- http://n8henrie.com/2016/02/template-for-more-efficient-applescript-folder-actions/
property test_folder : "/path/to/action/folder"
property test_file : "/path/to/action/folder/file.txt"
on main(this_folder, these_items)
tell application "Finder"
-- Uncomment below 2 lines to run on *every* file in the folder when this script runs
-- set list_of_files to every item in this_folder
@grenade
grenade / 01-generate-ed25519-ssh-key.sh
Last active July 2, 2024 14:42
generate ed25519 ssh and gpg/pgp keys and set file permissions for ssh keys and config
#!/bin/bash
# generate new personal ed25519 ssh key
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <rthijssen@gmail.com>"
# generate new host cert authority (host_ca) ed25519 ssh key
# used for signing host keys and creating host certs
ssh-keygen -t ed25519 -f manta_host_ca -C manta.network
eval "$(ssh-agent -s)"