install graphite (http://graphite.wikidot.com) on Amazon Linux AMI. Please fork and fix if you find an error.
sudo yum install pycairo-devel
sudo yum install python-pip
| .card { | |
| width: 150px; | |
| background-color:lightblue; | |
| padding:0 10px; | |
| } | |
| .card h3 { | |
| border-bottom: solid 2px #aaa; | |
| } |
| require 'open-uri' | |
| require 'json' | |
| class GithubWatcher | |
| ROOT_URL = 'https://api.github.com' | |
| TOKEN = '[API TOKEN]' | |
| def compareBranches | |
| branches = JSON.parse(open("#{ROOT_URL}/repos/[ORGANIZATION]/[REPO]/branches?access_token=#{TOKEN}").read) | |
| active_branches = branches.select{|b| !['master','uat','qa'].include?(b['name'])} |
| select * from toolkitnotifications; | |
| MERGE toolkitnotifications as target | |
| USING ( | |
| select | |
| ti.N2ItemId, ti.Id as ToolkitItemId, t.UserId, GETDATE() as Created, 'UpdatedContent' as [Action] | |
| FROM ToolkitItems ti | |
| LEFT JOIN Toolkits t | |
| ON ti.ToolkitId = t.Id | |
| WHERE ti.IsDeleted = 0 |
sudo yum install pycairo-devel
sudo yum install python-pip
| davec@Busters ~ | |
| % which ec2-rdp !10511 | |
| ec2-rdp () { | |
| ~/ec2-search.sh $1 $2 | xargs ~/rdp.sh | |
| } | |
| davec@Busters ~ | |
| % cat ec2-search.sh !10512 | |
| #!/bin/bash |