Skip to content

Instantly share code, notes, and snippets.

Noah Kantrowitz coderanger

Block or report user

Report or block coderanger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@coderanger
coderanger / editor.rb
Last active Oct 14, 2015 — forked from Sauraus/editor.rb
Unity cookbook
View editor.rb
require 'chef/resource'
require 'chef/provider'
module Unity
module Resources
module UnityEditor
# A 'unity_editor' resource to install and uninstall Unity Editor.
class Resource < Chef::Resource::LWRPBase
self.resource_name = :unity_editor
View gist:6429373
url = require('url')
querystring = require('querystring')
component_name = (organization_id, component_id, cb) ->
http.get"http://#{organization_id}.statuspage.io/index.json", (res) ->
payload = JSON.parse(res.body.payload)
for comp in payload.components
if comp.id == component_id
return cb(comp.name)
View etc_daemon_conf_port
#
# This is the template file
#
<Port <%= @port %> >
# bla bla bla
</Port>
#
# The problem is I get several files; port_80.conf port_8080.conf, ... port_8888.conf
View gist:885944
r = gem_package "amazon-ec2" do
version "0.9.17"
end
r.run_action(:install)
require 'rubygems'
Gem.clear_paths
require 'AWS'
ruby_block "register_with_elb" do
You can’t perform that action at this time.