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 / 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}", (res) ->
payload = JSON.parse(res.body.payload)
for comp in payload.components
if == component_id
return cb(
View etc_daemon_conf_port
# This is the template file
<Port <%= @port %> >
# bla bla bla
# 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"
require 'rubygems'
require 'AWS'
ruby_block "register_with_elb" do
You can’t perform that action at this time.