- lxml - Pythonic binding for the C libraries libxml2 and libxslt.
- boto - Python interface to Amazon Web Services
- Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
- Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
- PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
- Celery - Task queue to distribute work across threads or machines.
- pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
JENKINS_URL=$1 | |
NODE_NAME=$2 | |
NODE_SLAVE_HOME='/home/build/slave' | |
EXECUTORS=1 | |
SSH_PORT=22 | |
CRED_ID=$3 | |
LABELS=build | |
USERID=${USER} |
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
for tag in $(git tag); | |
do | |
commit=$(git rev-list -1 $tag) | |
echo “$tag -> $commit" | |
done |
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
(hudson.model.Hudson.instance.items.findAll { job -> 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
#!/bin/bash | |
WATCH_FILE="abc.123" | |
while read oldrev newrev refname; do | |
if [ "$refname" = "refs/heads/master" ]; then | |
if git diff-tree --name-only -r -z $oldrev $newrev | grep --quiet $WATCH_FILE ; then | |
# WATCH_FILE changed... | |
fi | |
fi | |
done |
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.Jenkins | |
def upstreamName = build.buildVariableResolver.resolve("FlushJob") | |
def upstream = Jenkins.instance.getItem(upstreamName) | |
if (upstream) { | |
upstream.getLastBuild().doStop() | |
upstream.getDownstreamProjects().each { it.getLastBuild().doStop() } | |
} |
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 | |
# Kill processes orphaned by Jenkins | |
# Work around Java's use of SIGTERM rather than SIGKILL and | |
# Jenkins's lack of any workaroud in the box. | |
# Suggested usage: | |
# | |
# $ crontab -l |
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
See https://issues.jenkins-ci.org/browse/JENKINS-22547 | |
Goto Node->Conefigure->Advanced | |
Append "-Dorg.jenkinsci.plugins.gitclient.Git.timeOut=30" to "JVM Options" |
I hereby claim:
- I am sergeyhush on github.
- I am ssergey (https://keybase.io/ssergey) on keybase.
- I have a public key ASCSgWxQeA1Gsdj06IFETOd35unZXuJ8qS3NOqwOiQkbPQo
To claim this, I am signing this object:
OlderNewer