Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Please comment & let me know if you have a fork / fixes you'd like to include.
A small sampling of external projects initially built for Ember use but designed to be used standalone:
#!/usr/bin/env ruby | |
require 'httparty' | |
require 'json' | |
class IDoneThis | |
include HTTParty | |
base_uri "https://idonethis.com/api/v0.0" | |
def initialize(token = ENV['IDONETHIS_API_KEY']) |
This gist uses TK+Berkshelf to drive creating a vagrant virts and converging a simple recipe to install and configure NTPd. This is a simple cookbook that has one recipe, one template (for ntp.conf) and one attribute file. It works on Ubuntu 12.04 and CentOS 6.4 (and derviatives) and the attribute file is used to support both distros.
This should work on Mac (where I developed it) and any chef-supported Linux that you can get Vagrant onto (Ubuntu/CentOS).
Because I use ChefDK and Test Kitchen, I can largely ignore setting up Vagrant and Berkshelf and can get right to work on writing recipe code.
package main | |
import ( | |
"container/list" | |
"fmt" | |
) | |
type Observer interface { | |
Update() | |
} |
source 'https://rubygems.org' | |
gem 'rake' | |
gem 'lotus-router' | |
gem 'lotus-controller' | |
gem 'lotus-view' | |
group :test do | |
gem 'rspec' | |
gem 'capybara' |
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash |
FROM base | |
MAINTAINER Marc-Andre Cournoyer "[email protected]" | |
RUN apt-get -y update | |
RUN apt-get install -y -q curl | |
RUN curl -L https://get.rvm.io | bash -s stable --ruby | |
RUN /bin/bash -l -c rvm requirements |
#! /bin/sh | |
# Takes a provisioning profile and installs it into the system path. | |
# This requires poking inside the provisioning profile and searching for the | |
# UUID present at the end of the file. | |
set -e | |
if [[ -z "$1" ]] | |
then |
## | |
# streams | |
## | |
alias groovesalad="mpg123 -Cq http://ice.somafm.com/groovesalad" | |
alias cliqhop="mpg123 -Cq http://ice.somafm.com/cliqhop" | |
alias spacestation="mpg123 -Cq http://ice.somafm.com/spacestation" | |
alias missioncontrol="mpg123 -Cq http://ice.somafm.com/missioncontrol" | |
alias secretagent="mpg123 -Cq http://ice.somafm.com/secretagent" | |
alias christmas="mpg123 -Cq http://ice.somafm.com/christmas" |