Skip to content

Instantly share code, notes, and snippets.

@kytrinyx
kytrinyx / README.md
Created January 8, 2013 23:26
Take a snapshot of yourself on every commit.

Git Commit Snapshots

Snap a picture of yourself on every commit.

Probably Mac OS X only, I haven't looked into others.

$ brew install imagesnap
$ git config --global init.templatedir '~/.git_template'
$ chmod +x post-commit

Keybase proof

I hereby claim:

  • I am kytrinyx on github.
  • I am kytrinyx (https://keybase.io/kytrinyx) on keybase.
  • I have a public key whose fingerprint is DA73 C2E5 7286 5B6C 8A10 3A8B 6ACB DA21 E04C E307

To claim this, I am signing this object:

require 'octokit'
def with_each(client, path)
response = client.agent.call(:get, URI::Parser.new.escape(path.to_s), nil, {})
response.data.each do |org|
yield org
end
last_response = response
while last_response.rels[:next] && client.rate_limit.remaining > 0
@kytrinyx
kytrinyx / open-recent-in-fission.scpt
Created August 15, 2020 20:17
AppleScript to open the most recent audio hijack recording in fission
set sourceFolder to "Macintosh HD:Users:kytrinyx:Music:Audio Hijack" as alias
tell application "Finder"
sort (get files of sourceFolder) by creation date
-- This raises an error if the folder doesn't contain any files
set theFile to (item -1 of result) as alias
end tell
tell application "Fission" to open theFile