Skip to content

Instantly share code, notes, and snippets.

@hotgazpacho
hotgazpacho / cf-resources.md
Created May 9, 2018 18:39
CloudFormation Resources that should allow setting the tags on
  • AWS::ApiGateway::Deployment
  • AWS::ApiGateway::Method
  • AWS::ApiGateway::Resource
  • AWS::ApiGateway::RestApi
  • AWS::Lambda::Function
  • AWS::Lambda::Permission
  • AWS::Lambda::Version
  • AWS::Logs::LogGroup
  • AWS::IAM::Role
  • AWS::CloudFront::Distribution
@hotgazpacho
hotgazpacho / gist:62326dffb3ab9a5e02fbabbec7998014
Created March 30, 2016 14:31
Well, playing with otto is off to a GREAT start...
$ otto dev
Would you like Otto to install Vagrant?
An older version of vagrant was found installed (1.6.3). Otto requires
version 1.8.1 or higher. Otto can install the latest version of vagrant
for you (1.8.1). Would you like Otto to update vagrant for you?
Please enter 'yes' to continue. Any other value will exit.
Enter a value: yes
@hotgazpacho
hotgazpacho / 2.1.5.txt
Created April 16, 2015 17:27
Net::HTTP in Ruby 2.1.5 vs 2.2.2
irb(main):002:0> URI.parse('http://')
URI::InvalidURIError: bad URI(absolute but no path): http://
$ brew install openssl-osx-ca
==> Installing openssl-osx-ca from raggi/homebrew-ale
==> Downloading https://github.com/raggi/openssl-osx-ca/archive/1.0.4.tar.gz
######################################################################## 100.0%
==> make install PREFIX='/usr/local/Cellar/openssl-osx-ca/1.0.4' BREW='/usr/local/bin/brew'
/usr/local/Cellar/openssl-osx-ca/1.0.4/bin/openssl-osx-ca /usr/local/bin/brew
Usage error; try -help.
rehash failed to verify, something is wrong
check /var/folders/nd/hf56kcfj23lf_fqljrn9t73m0000gn/T/openssl-osx-ca.fNAJjorc/cert.pem for problems
make: *** [install] Error 1
@hotgazpacho
hotgazpacho / gist:5c21320639f64608282d
Created February 2, 2015 14:50
Trying to download latest TeamCity using wget
~$ wget https://download.jetbrains.com/teamcity/TeamCity-9.0.2.tar.gz
--2015-02-02 09:47:13-- https://download.jetbrains.com/teamcity/TeamCity-9.0.2.tar.gz
Resolving download.jetbrains.com (download.jetbrains.com)... 54.225.64.222
Connecting to download.jetbrains.com (download.jetbrains.com)|54.225.64.222|:443... connected.
ERROR: no certificate subject alternative name matches
requested host name `download.jetbrains.com'.
To connect to download.jetbrains.com insecurely, use `--no-check-certificate'.
@hotgazpacho
hotgazpacho / my_app.rb
Created October 29, 2014 01:58
Why doesn't this work on Heroku?
require 'sinatra'
class MyApp < Sinatra::Base
get '/' do
send_file File.join(settings.public_folder, 'index.html')
end
end
@hotgazpacho
hotgazpacho / gist:7f01f33fa9efd4604194
Created October 22, 2014 22:15
Errors when running bundle install within RubyMine
/Users/wgreen/.rbenv/versions/2.1.2/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/wgreen/Development/myapp/bin/bundle install
/Users/wgreen/.rbenv/versions/2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/Users/wgreen/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle, 9): Symbol not found: _SSLv2_client_method (LoadError)
Referenced from: /Users/wgreen/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle
Expected in: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
in /Users/wgreen/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle - /Users/wgreen/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle
from /Users/wgreen/.rbenv/versions/2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/wgreen/.rbenv/versions/2.1.2/lib/ruby/2.1.0/openssl.rb:17:in `<top (required)>'
from /Users/wgreen/.rbenv/versions/2.1.2/lib/ruby/site
@hotgazpacho
hotgazpacho / gist:42983e525dfd868f3744
Created October 17, 2014 12:12
rbenv install 2.1.3 on Yosemite
/var/folders/p9/0bw4zw3j4sqfmbw67tvzplj80000gn/T/ruby-build.20141017080938.60405 ~
HTTP/1.1 200 OK
Content-Type: binary/octet-stream
Content-Length: 15129183
Connection: keep-alive
Date: Tue, 30 Sep 2014 13:48:36 GMT
Last-Modified: Fri, 19 Sep 2014 10:47:08 GMT
ETag: "74a37b9ad90e4ea63c0eed32b9d5b18f"
Accept-Ranges: bytes
Server: AmazonS3
/home/teamcity/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activerecord-4.1.1/lib/active_record/autosave_association.rb:152: [BUG] Bus Error at 0x007fff02220ff8
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]

Keybase proof

I hereby claim:

  • I am hotgazpacho on github.
  • I am hotgazpacho (https://keybase.io/hotgazpacho) on keybase.
  • I have a public key whose fingerprint is 592F 7092 3482 73D1 9A93 AC71 BE9E E476 A496 3F63

To claim this, I am signing this object: