This file contains hidden or 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
| $ wget https://rubygems.org/latest_specs.4.8.gz | |
| --2015-12-28 22:57:44-- https://rubygems.org/latest_specs.4.8.gz | |
| Resolving rubygems.org (rubygems.org)... 54.186.104.15 | |
| Connecting to rubygems.org (rubygems.org)|54.186.104.15|:443... connected. | |
| HTTP request sent, awaiting response... 302 Moved Temporarily | |
| Location: https://rubygems.global.ssl.fastly.net/latest_specs.4.8.gz [following] | |
| --2015-12-28 22:57:47-- https://rubygems.global.ssl.fastly.net/latest_specs.4.8.gz | |
| Resolving rubygems.global.ssl.fastly.net (rubygems.global.ssl.fastly.net)... 23.235.47.249, 199.27.79.249 | |
| Connecting to rubygems.global.ssl.fastly.net (rubygems.global.ssl.fastly.net)|23.235.47.249|:443... connected. | |
| HTTP request sent, awaiting response... 404 Not Found |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| git clone git@github.com:jnwhiteh/golang.git | |
| 9.89s user 2.87s system 25% cpu 49.470 total | |
| hg clone https://code.google.com/p/go | |
| 22.66s user 3.29s system 16% cpu 2:38.95 total |
This file contains hidden or 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
| mysql> create database unique_test; | |
| Query OK, 1 row affected (0.00 sec) | |
| mysql> use unique_test; | |
| Database changed | |
| mysql> create table table_with_unique_index (name TEXT, foo INT, bar INT); | |
| Query OK, 0 rows affected (0.02 sec) |
NewerOlder