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
# stable.pp | |
class 700-stable { | |
include apt | |
# deb http://debian.mirror.iweb.ca/debian/ testing main contrib non-free | |
# deb-src http://debian.mirror.iweb.ca/debian/ testing main contrib non-free | |
# Key: 55BE302B Server: subkeys.pgp.net | |
# debian-keyring | |
# debian-archive-keyring |
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
Package: * | |
Pin: release a=stable | |
Pin-Priority: 700 | |
Package: * | |
Pin: release a=testing | |
Pin-Priority: 100 | |
Package: * | |
Pin: release a=unstable |
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
#!/usr/bin/env ruby | |
#credits: Walter White, Updates: Addy Osmani | |
# dependencies | |
require "json" | |
require "open-uri" | |
# your github username | |
username = "k9ert" |
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
$ ./zkmon.rb | |
0 zk_version - OK 3.4.3-1240972, built on 02/06/2012 10:48 GMT | |
0 zk_avg_latency count=5 OK 5 | |
0 zk_max_latency count=265 OK 265 | |
0 zk_min_latency count=0 OK 0 | |
0 zk_packets_received count=2158687 OK 2158687 | |
0 zk_packets_sent count=2319327 OK 2319327 | |
0 zk_outstanding_requests count=0 OK 0 | |
0 zk_server_state - OK standalone | |
0 zk_znode_count count=10078 OK 10078 |
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
getVersions = function(query) { | |
var map = function() { | |
emit( this.value.project, {project:this.value.project, fqdn:this.value.fqdn, ts:this.value.ts,version:this.value.version,environment:this.value.environment} ); | |
}; | |
var reduce = function(k,vals) { | |
version = vals[0].version; | |
vals.forEach(function(val) { if (val.version != version) return "inconsistent" } ) ; | |
return version; | |
}; | |
return db.versions.mapReduce( |
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
#!/usr/bin/env ruby | |
# This snippet can be used to feed a megabitmeter | |
# with the number of tweets on a feed | |
# see also http://megabitmeter.de/ | |
# Twitter-API: https://dev.twitter.com/apps | |
require 'rubygems' | |
require 'twitter' |
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
org.apache.maven.plugins:maven-dependency-plugin:2.8:copy -Dartifact=de.company.rest.of.groupid:the-artifactid:1.2.4.0:zip: -DrepoUrl=https://repository.company.com/therepo -DoutputDirectory=. |
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
#!/usr/bin/perl | |
my @grabbed; | |
while (<STDIN>) { | |
if (/$ARGV[0]/) { | |
print $_; | |
while (<STDIN>) { | |
last if /^$/; | |
print $_; | |
} | |
} |
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
// https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin | |
// An example for a Pre-send Script | |
// Assume output log-output like: | |
// ERROR: [email protected] please fix | |
import javax.mail.internet.* | |
logger.print("This ends up in the log as well"); | |
String encodingOptions = "text/html; charset=UTF-8;"; | |
// msg.setContent("please check!!!!", encodingOptions); |
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
#!/bin/bash | |
vagrant destroy -f | |
timeout 3600 vagrant up | |
VAGRANT_RESULT=$? | |
echo "===============================================================" | |
if [ $VAGRANT_RESULT -eq 124 ]; then | |
echo "vagrant up timed out: 3600 seconds" | |
else | |
echo "Vagrant exited with code: $VAGRANT_RESULT" |
OlderNewer