Skip to content

Instantly share code, notes, and snippets.

rbramwell / Curl job
Created February 23, 2016 21:24 — forked from gschueler/Curl job
How to run a rundeck job using curl

Run a Job using Curl

This document describes how to use CURL to interact with the RunDeck server to invoke a Job to run.

The steps are as follows:

  1. Authenticate to the RunDeck server and acquire a session cookie.
  2. Submit run request for particular Job ID, sending session cookie.

Kubernetes + AWS ECR = ❤️

Makefile and YAML templates for automating the use of AWS Elastic Container Registry with Kubernetes.

Based off of this awesome Redsaid blog post.


  • Amazon ECR, along with your AWS account ID and the region your ECR is in
schempy / stream-file-uploads-nodejs.js
Created March 11, 2015 21:59
Streaming File Uploads With Node.Js
var http = require('http');
var router = require('routes')();
var Busboy = require('busboy');
var port = 5000;
// Define our route for uploading files
router.addRoute('/images', function (req, res, params) {
if (req.method === 'POST') {
// Create an Busyboy instance passing the HTTP Request headers.
quezacoatl / Gemfile
Last active May 10, 2016 02:11
Ruby 2.2.X AWS SDK memory leak
source ''
gem 'nokogiri'
gem 'aws-sdk'
gem 'fake_sqs'
gem 'newrelic_rpm'
log local0
mode http
log global
option httplog
option http-server-close
option dontlognull
option redispatch
aseigneurin / copy_remotely
Last active January 5, 2024 19:06
Ansible module to copy a file if the MD5 sum of the target is different
module: copy_remotely
short_description: Copies a file from the remote server to the remote server.
- Copies a file but, unlike the M(file) module, the copy is performed on the
remote server.
The copy is only performed if the source and destination files are different
(different MD5 sums) or if the destination file does not exist.
source ""
cookbook "apt"
cookbook "chef_handler"
cookbook "yum"
cookbook "simulator", git: ""
ktheory / LICENSE
Last active August 29, 2015 14:06
Redis indicators
Copyright 2014 Kickstarter, Inc.
Released under an MIT License.
andreiashu /
Created August 19, 2014 15:09
Jenkins self-backup to S3 job
cd /var/lib
tar czf ${WORKSPACE}/ecm_jenkins.tar.gz --exclude='*.log' --exclude='jenkins/jobs/*/builds/*' --exclude='jenkins/jobs/*/workspace/*' jenkins
s3cmd put ${WORKSPACE}/ecm_jenkins.tar.gz s3://[bucket-name]/ecm_jenkins.tar.gz
jfromaniello /
Created August 11, 2014 14:12
CoreOS template for CloudFormation with two EBS disks on /var/lib/docker

This is a fork from the original CoreOS cloud formation template. It adds two EBS disks of 30G, mounted to /var/lib/docker.

This is intended to be used with an m3.large machine which comes with 30G of SSD.

The reason I add two of 30 and not one of 60 is because a BTRFS limitation.

You can use the "btrfs add" approach in the units to create a BTRFS raid.