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
import jenkins.model.* | |
def matchedJobs = Jenkins.instance.items.findAll { job -> | |
job.name =~ /my_regex_here/ | |
} | |
matchedJobs.each { job -> | |
println job.name | |
//job.delete() | |
} |
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 python | |
import os | |
import sys | |
import requests | |
import argparse | |
import json | |
import time | |
pulp_user = 'admin' |
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 | |
# Description: | |
# Extracts all contents of an ISO to the given output directory | |
# Requires: | |
# Packages: genisoimage | |
ISO=$1 | |
OUTDIR=${2:-"./out"} | |
usage() { |
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
FROM ubuntu:trusty | |
RUN apt-get update && apt-get -y upgrade | |
RUN apt-get install -y apache2 wget | |
RUN wget -O /usr/local/bin/sempl \ | |
https://raw.githubusercontent.com/nextrevision/sempl/0.2.1/sempl | |
RUN chmod 755 /usr/local/bin/sempl | |
ADD index.html.tmpl /app/index.html.tmpl |
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
// from http://stackoverflow.com/a/34520110 | |
node { | |
echo "I am a "+getClass().getName() | |
echo "PARAMETERS" | |
echo "==========" | |
echo getBinding().getVariables().getClass().getName() | |
def myvariables = getBinding().getVariables() | |
for (v in myvariables) { | |
echo "${v} " + myvariables.get(v) |
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
import jenkins.model.* | |
def matchedJobs = Jenkins.instance.items.findAll { job -> | |
job.name =~ /job_regex_here/ | |
} | |
matchedJobs.each { job -> | |
println job.name | |
// without parameters | |
//job.scheduleBuild(new Cause.UserIdCause()) |
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
import jenkins.model.* | |
def matchedJobs = Jenkins.instance.items.findAll { job -> | |
job.name =~ /job_regex_here/ | |
} | |
matchedJobs.each { job -> | |
def latest = job.getLastSuccessfulBuild() | |
def name = job.name | |
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 python | |
# | |
# Requires: | |
# - scapy | |
# - tcpreplay | |
import sys | |
from scapy.all import * | |
if len(sys.argv) != 6: |
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 | |
ACTION=$1 | |
PULP_IMAGES=( | |
pulp/mongodb | |
pulp/qpid | |
pulp/base | |
pulp/worker | |
pulp/apache |
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
// how_much_netflix.js | |
// A script that looks through your Netflix viewing activity and | |
// tallys up how much time you've spent watching Netflix | |
// | |
// INSTRUCTIONS TO USE: | |
// Open https://www.netflix.com/WiViewingActivity and the developer console | |
// Copy and paste this script into the developer console and press enter | |
// | |
(function() { | |
var fetchAllViewedItems = function() { |
NewerOlder