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
{ | |
"name":"shell", | |
"version":"0.0.1", | |
"description":"Run shell scripts remotely", | |
"listener": {"channel":"WebChannel","event":"Receiver","params":{}}, | |
"start":{ | |
"target":"id=maciej", | |
"channel":"ShellChannel", | |
"method":"Command", | |
"params":{"command":"{{start.command}}"}, |
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 'json' | |
require 'rest-client' | |
require 'heroku' | |
require "heroku/command/base" | |
require "anvil" | |
require "anvil/engine" | |
require "uri" | |
class Cisaurus |
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
<Response> | |
<Say>Welcome to Ski's Conference Number</Say> | |
<Dial><Conference>Ski</Conference></Dial> | |
</Response> |
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
-if current_user | |
:javascript | |
analytics.identify("#{current_user.id}",{ | |
email:"#{current_user.email}", | |
created:"#{current_user.created_at}", | |
name:"#{current_user.name}" | |
},{ | |
Intercom:{userHash:"#{OpenSSL::HMAC.hexdigest('sha256', 'mKz-[removed]', current_user.email)}"} | |
}); |
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
service do | |
id "github" | |
name "Github" | |
version "1.1" | |
description "Interact with Github.com" | |
auth_type "" | |
listener do | |
id "push" | |
name "Push" |
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
name 'Deploy console app to servers using Capistrano then notify using Hipchat' | |
channel 'github' | |
channel 'capistrano' | |
channel 'hipchat' | |
# creates a listener to listen for a push event from github on `factor-io/console` repo | |
Github.push repo:"factor-io/console" do |start_params| | |
Capistrano.deploy environment:'production' do |deploy_params| | |
Hipchat.send message:"Finished deploying #{deploy_params[:release]}" |
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
auth_type "oauth" | |
oauth_credentials do | |
key "[oauth-id]" | |
secret "[oauth-secret]" | |
expose false | |
scope "write-protected" | |
options { | |
site:"https://heroku.com", | |
authorize_url:"https://id.heroku.com/oauth/authorize", | |
token_url:"https://id.heroku.com/oauth/token"} |
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 'docker' | |
url="tcp://XXX.XXX.XXX.XXX:4243" | |
command="while true; do echo hello world; sleep 1; done" | |
Docker.url=url | |
image = Docker::Image.all.select{|i| i.info["Repository"]=="base" && i.info["Tag"]=="latest" }.first | |
begin | |
container = image.run(command) |
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 'paleta' | |
require 'paint' | |
def generate_nice_colors(size) | |
colors=Array.new(size) | |
increment=360/size | |
colors.map!.with_index do |c, i| | |
if i==0 | |
c=Paleta::Color.new(:hex, "3030FF") | |
else |