Skip to content

Instantly share code, notes, and snippets.

# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->

Keybase proof

I hereby claim:

  • I am tiagolnobre on github.
  • I am tiagonobre (https://keybase.io/tiagonobre) on keybase.
  • I have a public key whose fingerprint is 6491 B65F 47D3 4728 5E5D B4B4 84C4 1287 19E1 AF68

To claim this, I am signing this object:

@tiagolnobre
tiagolnobre / route53.rb
Last active August 29, 2015 14:03
change route53 ruby aws sdk
require 'aws-sdk-core'
zid = nil
r53 = Aws::Route53.new
r53.list_hosted_zones[:hosted_zones].each do |zone|
id = zone[:id].match(/\/hostedzone\/(.*)/)[1]
puts zone[:name] + ':' + id
if (zone[:name] == "testing.com.") then zid = id end
end