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
gem 'minitest' |
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
module Cloudability | |
class Resque < Resque::Server | |
enable :sessions | |
set :github_options, { | |
:scopes => "user", | |
:secret => ENV['GITHUB_CLIENT_SECRET'], | |
:client_id => ENV['GITHUB_CLIENT_ID'], | |
} |
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 | |
# Enable FileVault | |
if [[ `fdesetup status` != "FileVault is On." ]]; then | |
sudo fdesetup enable | |
fi | |
xcode-select --install | |
echo "###############################################################" |
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 'fog' | |
iam = Fog::AWS::IAM.new({ | |
aws_access_key_id: "REDACTED", | |
aws_secret_access_key: "REDACTED", | |
}) | |
response = iam.get_user("foo") | |
puts response.body["User"]["Arn"] |
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
pkill -SIGHUP gpg-agent; gpg --list-secret-keys | grep sec | awk '{ print $2 }' | awk 'BEGIN { FS = "/" } ; { print $2 }' | sed '/^$/d' | xargs -t -L 1 -J % gpg -o /dev/null -s -u % /dev/null |
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
Verifying that +ejfinneran is my openname (Bitcoin username). https://onename.com/ejfinneran |
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 | |
platform='unknown' | |
unamestr=`uname` | |
if [[ "$unamestr" == 'Linux' ]]; then | |
platform='linux' | |
elif [[ "$unamestr" == 'Darwin' ]]; then | |
platform='darwin' | |
fi |
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
ruby-1.8.7-p302 > hash | |
=> #<OrderedHash {:email=>["is too short (minimum is 6 characters)", "should look like an email address."]}> | |
ruby-1.8.7-p302 > u.errors | |
=> #<OrderedHash {:email=>["is too short (minimum is 6 characters)", "should look like an email address."]}> | |
ruby-1.8.7-p302 > hash == u.errors | |
=> true | |
ruby-1.8.7-p302 > hash.to_json == u.errors.to_json | |
=> false | |
ruby-1.8.7-p302 > hash.to_json | |
=> "{\"email\":[\"is too short (minimum is 6 characters)\",\"should look like an email address.\"]}" |
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
sendClass = SendClassification.new(nil,nil,nil,nil,nil,nil,nil,189,nil,nil,nil,nil,nil,nil,nil,nil) | |
sendProf = SenderProfile.new(nil,nil,nil,nil,nil,nil,nil,352,nil,nil,nil,nil,'NTO Customer Support','acruz@example.com',nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil) | |
delProf = DeliveryProfile.new(nil,nil,nil,nil,nil,nil,nil,306,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil) | |
email = Email.new(nil,nil,nil,nil,nil,2052608,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil) | |
sendDefList = SendDefinitionList.new(nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,objID,'CustomObject',nil,nil,nil,nil,nil) | |
emailSendDef = EmailSendDefinition.new(nil,nil,nil,nil,nil,nil,nil,customerKey,nil,nil,customerKey,desc,nil,nil,nil,sendClass,sendProf,nil,nil,delProf,nil,nil,nil,nil,nil,nil,nil,nil,0,0,sendDefList,email,nil,nil,nil,'Thank You for Contacting NTO Customer Support',nil,1,1,nil,nil,nil,nil,1,nil,nil,nil,'acruz@example.com' |
OlderNewer