This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Broken Jobs</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css"> | |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
</head> | |
<body> |
This file contains hidden or 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 python2 | |
from __future__ import print_function | |
from glob import iglob | |
from json import load | |
from os import listdir | |
from sys import argv, exit | |
from shutil import rmtree | |
This file contains hidden or 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 python3 | |
# original: https://raw.githubusercontent.com/tweksteen/jenkins-decrypt/master/decrypt.py | |
# requires: pycrypto | |
import re | |
import sys | |
import base64 |
This file contains hidden or 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
IMAGE_NAME=my/image | |
TAG=latest | |
IMAGE=$(IMAGE_NAME):$(TAG) | |
NAME=my-image | |
OPTS=--name $(NAME) $(FLAGS) | |
DOCKER=docker $(DOCKER_OPTS) | |
REMOVE=true | |
FORCE_RM=true | |
PROXY_IP=$(shell $(DOCKER) inspect --format '{{ .NetworkSettings.IPAddress }}' http-proxy 2> /dev/null) |
This file contains hidden or 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/sh | |
DELIM=${1:-:} | |
git log --format=oneline --reverse | while read line; do | |
hash=$(echo "$line" | cut -d\ -f 1) | |
name=$(echo "$line" | cut -d\ -f 2- | cut -d"$DELIM" -f 1 | tr " " "-") | |
msg=$(echo "$line" | cut -d\ -f 2- | cut -d"$DELIM" -f 2- | sed 's/^\s*//g') | |
git tag -f -a "$name" -m "$msg" $hash |
This file contains hidden or 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/sh | |
CACHE_DIR=cache | |
mkdir -p $CACHE_DIR | |
http-replicator -p 8080 -i *.*.*.* -d $CACHE_DIR -s --daemon --log $CACHE_DIR/replicator.log | |
# add e.g. `ENV http_proxy http://172.17.42.1:8080` to your Dockerfile |
This file contains hidden or 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
println "Hello world" | |
execution.setVariable("groovy", "works") |
This file contains hidden or 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
function whereami { | |
curl -sb -H "Connection: close" http://freegeoip.net/csv/ | tr -d \" | awk 'BEGIN{FS=","} {printf "%-6s: %s\n%-6s: %s %s, %s (%s %s)\n%-6s: %s, %s\n", "ip", $1, "city", $7, $6, $5, $3, $2, "coords", $8, $9}' | |
} |
This file contains hidden or 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 | |
# -*- coding: utf-8 -*- | |
# This script is a simple wrapper which prefixes each i3status line with custom | |
# information. It is a python reimplementation of: | |
# http://code.stapelberg.de/git/i3status/tree/contrib/wrapper.pl | |
# | |
# To use it, ensure your ~/.i3status.conf contains this line: | |
# output_format = "i3bar" | |
# in the 'general' section. |
This file contains hidden or 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
// read JSON from String | |
SpinJsonNode json = JSON("{\"name\": \"camunda\", \"version\": \"7.2.0-alpha3\"}"); | |
// read JSON object property as String | |
String version = json.prop("version").stringValue(); | |
// calculate new version | |
int newVersion = Integer.valueOf(version.substring(version.length() - 1)) + 1; | |
version = version.substring(0, version.length() - 1 ) + newVersion; |