allow_anonymous = on
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 'mqtt' | |
require 'base64' | |
require 'json' | |
app_id = APP_ID | |
access_key = ACCESS_KEY | |
dev_id = DEV_ID | |
region = eu | |
client = MQTT::Client.connect("mqtt://#{app_id}:#{access_key}@#{region}.thethings.network:1883") |
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
desc "create ami bundle and upload it to s3" | |
task :create_and_upload_bundle do |channel, stream, data| | |
set :user, 'app' | |
message = "Please enter platform [i386|x86_64]" | |
platform = Capistrano::CLI.ui.ask(message) | |
message = "Please enter a bundle name:" | |
bundle_name = Capistrano::CLI.ui.ask(message) | |
sudo "rm -r /mnt/image; true" | |
sudo "ec2-bundle-vol -e /volume1,/volume2 -d /mnt -k ~/.ssh/XXXXX.pem -c ~/.ssh/cert-XXXXX.pem -u USERID -r #{platform}" | |
#sudo "ec2-bundle-vol -d /mnt -k ~/.ssh/XXXXX.pem -c ~/.ssh/cert-XXXX.pem -u USERID -r #{platform}" |
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
COUNTRIES = [ | |
"Afghanistan", | |
"Aland Islands", | |
"Albania", | |
"Algeria", | |
"American Samoa", | |
"Andorra", | |
"Angola", | |
"Anguilla", | |
"Antarctica", |
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
de: | |
errors: | |
messages: | |
not_found: "nicht gefunden" | |
already_confirmed: "wurde bereits bestätigt" | |
not_locked: "war nicht gesperrt" | |
devise: | |
omniauth_callbacks: | |
success: 'Sie wurden erfolgreich eingeloggt.' |
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
#!/usr/local/bin/ruby | |
require 'AWS' | |
require 'yaml' | |
class SnapshotManagement | |
# initalize class, optional override path to yml file | |
# * options [String] :path ('') | |
# | |
def initialize(params = {}) |
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
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'rexml/document' | |
require 'rexml/xpath' | |
url = 'http://rpm.newrelic.com/accounts.xml?include=application_health' | |
headers = {'x-license-key' => 'YOUR LICENSE KEY'} | |
NewerOlder