Skip to content

Instantly share code, notes, and snippets.

View mrmeszaros's full-sized avatar

Mészáros Máté Róbert mrmeszaros

View GitHub Profile
# https://www.erlang-solutions.com/downloads/download-erlang-otp
# wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
# sudo dpkg -i erlang-solutions_1.0_all.deb
deb http://packages.erlang-solutions.com/ubuntu trusty contrib
deb http://packages.erlang-solutions.com/ubuntu saucy contrib
deb http://packages.erlang-solutions.com/ubuntu precise contrib
wget http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
sudo apt-key add erlang_solutions.asc
@swistak
swistak / generate_savon_objects.rb
Last active July 3, 2018 03:36
Generates objects for use with Savon. Uses Action Model (ServiceBase) to provide validations and attributes access, but can be easily adapted to Struct / OpenStruct if needed.
module MyModule
# Regenerating code
end unless __FILE__ == $0
if __FILE__ == $0
require 'savon'
split_on = "#" + " Regenerating code"
code = File.read(__FILE__).split(split_on).last
wsdl_file_path = File.join(File.dirname(__FILE__), ARGV.first || raise("Gimme file!"))