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
# Modified from: | |
# http://findingscience.com/ruby/ssl/2013/01/13/reading-an-ssl-cert-in-ruby.html | |
require "socket" | |
require "openssl" | |
host = "www.piranhas.co" | |
tcp_client = TCPSocket.new("www.piranhas.co", 443) | |
ssl_client = OpenSSL::SSL::SSLSocket.new(tcp_client) |
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
begin | |
require 'terminal-notifier' | |
module Jekyll | |
class Site | |
alias jekyll_process process | |
def process | |
jekyll_process | |
TerminalNotifier.notify('Jekyll rebuild finished.') | |
end | |
end |
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
require 'bundler/setup' | |
require 'active_record' | |
include ActiveRecord::Tasks | |
db_dir = File.expand_path('../db', __FILE__) | |
config_dir = File.expand_path('../config', __FILE__) | |
DatabaseTasks.env = ENV['ENV'] || 'development' |
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 "Finder" | |
if (name of every application process) contains "Skype" then | |
tell application "Skype" | |
send command "SET USERSTATUS ONLINE" script name "pomodoro" | |
send command "SET PROFILE MOOD_TEXT " script name "pomodoro" | |
end tell | |
end if | |
end tell | |
tell application "Twitter" to activate |