Skip to content

Instantly share code, notes, and snippets.

View agoodkind's full-sized avatar
🏳️‍🌈
🍍

Alex Goodkind agoodkind

🏳️‍🌈
🍍
View GitHub Profile
@bcomnes
bcomnes / git-gpg.md
Last active February 13, 2024 07:33
my version of gpg on the mac
  1. brew install gnupg, pinentry-mac (this includes gpg-agent and pinentry)

  2. Generate a key: $ gpg --gen-key

  3. Take the defaults. Whatevs

  4. Tell gpg-agent to use pinentry-mac:

    $ vim ~/.gnupg/gpg-agent.conf 
    
@nuomi1
nuomi1 / PrintBootCampESDInfo.swift
Last active July 8, 2024 20:42
macOS and BootCamp Latest
#!/usr/bin/env swift
//
// PrintBootCampESDInfo.swift
//
// Created by nuomi1 on 8/5/18.
// Copyright © 2018年 nuomi1. All rights reserved.
//
import Foundation
@jgatjens
jgatjens / direcory_tag.rb
Created February 10, 2014 22:03
jekyll-plugin loop_directory
#usage:
#{% loop_directory directory:images iterator:image filter:*.jpg sort:descending %}
# <img src="{{ image }}" />
#{% endloop_directory %}
module Jekyll
class LoopDirectoryTag < Liquid::Block
include Liquid::StandardFilters
Syntax = /(#{Liquid::QuotedFragment}+)?/
@agoodkind
agoodkind / fish.scpt
Created January 29, 2014 21:29
Apple Script for Fish if it is Already installed to your /usr/local/bin directory and you don't want to chsh -s, derived from the original Fish.app script
tell application "System Events"
-- Don't create multiple windows if Terminal is not running
-- For some reason this sometimes throws an error on SnowLeopard
try
set terminal_count to count (processes whose bundle identifier is "com.apple.Terminal")
on error
set terminal_count to 1
end try
if terminal_count is 0 then
tell application "Terminal"
@RobFreiburger
RobFreiburger / removeOffice2011.sh
Created June 16, 2011 04:51
Office 2011 for Mac Uninstaller
#!/bin/sh
# Credit to http://www.officeformachelp.com/office/install/remove-office/
osascript -e 'tell application "Remote Desktop Connection" to quit'
osascript -e 'tell application "Microsoft Document Connection" to quit'
osascript -e 'tell application "Microsoft Messenger" to quit'
osascript -e 'tell application "Microsoft Communicator" to quit'
osascript -e 'tell application "Microsoft Outlook" to quit'
osascript -e 'tell application "Microsoft Excel" to quit'