-
brew install gnupg, pinentry-mac
(this includes gpg-agent and pinentry) -
Generate a key:
$ gpg --gen-key
-
Take the defaults. Whatevs
-
Tell gpg-agent to use pinentry-mac:
$ vim ~/.gnupg/gpg-agent.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env swift | |
// | |
// PrintBootCampESDInfo.swift | |
// | |
// Created by nuomi1 on 8/5/18. | |
// Copyright © 2018年 nuomi1. All rights reserved. | |
// | |
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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}+)?/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |