Skip to content

Instantly share code, notes, and snippets.

View iafonov's full-sized avatar
🌴

Igor Afonov iafonov

🌴
View GitHub Profile
# Import the key:
IO.popen(['gpg', '--homedir', '/root/.gnupg', '--import'], 'w') do |io|
io.puts key['public_key']
end
# Mark it as ultimately trusted:
IO.popen(['gpg', '--homedir', '/root/.gnupg', '--import-ownertrust'], 'w') do |io|
io.puts "#{key['fingerprint']}:6:"
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#