Skip to content

Instantly share code, notes, and snippets.

Martin Jackson actionjack

Block or report user

Report or block actionjack

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
actionjack /
Created Feb 14, 2019 — forked from mllrjb/
Jenkins init.groovy.d LDAP Authentication


Set LDAP_BIND_USER and LDAP_BIND_PASSWORD environment variables in the system (e.g. when creating your Docker container, etc).

actionjack /
Created Nov 26, 2018 — forked from olandese/
Create a sharded MongoDB in CosmosDB using the Azure CLI
az login
View Example log
Start-Date: 2018-11-19 14:23:29
Commandline: apt-get -y install less vim
Install: vim-common:amd64 (2:8.0.0197-4+deb9u1, automatic), vim-runtime:amd64 (2:8.0.0197-4+deb9u1, automatic), vim:amd64 (2:8.0.0197-4+deb9u1), xxd:amd64 (2:8.0.0197-4+deb9u1, automatic), libgpm2:amd64 (1.20.4-6.2+b1, automatic), less:amd64 (481-2.1)
End-Date: 2018-11-19 14:23:37
Start-Date: 2018-11-19 14:25:58
Commandline: apt-get remove vim
Remove: vim:amd64 (2:8.0.0197-4+deb9u1)
End-Date: 2018-11-19 14:25:59
actionjack /
Created Nov 13, 2018 — forked from StevenACoffman/
Fluentd Fluent-bit FileBeat memory and cpu resources

Fluent-bit rocks

A short survey of log collection options and why you picked the wrong one. 😜

Who am I? Where am I from?

I'm Steve Coffman and I work at Ithaka. We do JStor (academic journals) and other stuff. How big is it?

Number what it means
101,332,633 unique visitors in 2017
View kill_deploy_jobs.groovy
import hudson.model.*
def q = Jenkins.instance.queue
q.items.each {
if (it =~ /deploy-to/) {
actionjack / groovy.groovy
Created Oct 10, 2018 — forked from adampats/groovy.groovy
Jenkins groovy script to execute shell command
View groovy.groovy
def cmd = 'hostname'
def sout = new StringBuffer(), serr = new StringBuffer()
def proc = cmd.execute()
proc.consumeProcessOutput(sout, serr)
println sout
actionjack /
Created Sep 24, 2018 — forked from mikepea/
Pull Request Etiquette

Pull Request Etiquette

Why do we use a Pull Request workflow?

PRs are a great way of sharing information, and can help us be aware of the changes that are occuring in our codebase. They are also an excellent way of getting peer review on the work that we do, without the cost of working in direct pairs.

Ultimately though, the primary reason we use PRs is to encourage quality in the commits that are made to our code repositories

Done well, the commits (and their attached messages) contained within tell a story to people examining the code at a later date. If we are not careful to ensure the quality of these commits, we silently lose this ability.

actionjack /
Created Sep 7, 2018 — forked from drmalex07/
An example with an oneshot service on systemd. #systemd #systemd.service #oneshot


Services declared as oneshot are expected to take some action and exit immediatelly (thus, they are not really services, no running processes remain). A common pattern for these type of service is to be defined by a setup and a teardown action.

Let's create a example foo service that when started creates a file, and when stopped it deletes it.

Define setup/teardown actions

Create executable file /opt/foo/

actionjack /
Created Jul 17, 2018 — forked from alperkokmen/
Simple script to trigger, acknowledge, and resolve incidents via PagerDuty Integration API.
DESCRIPTION="bad things™ are happening"
if [ $# -ne 3 ]; then
echo " - TYPE: [t]rigger | [a]cknowledge | [r]esolve"
echo " - SERVICE KEY: unique identifier for service"
actionjack /
Created May 2, 2018 — forked from luhn/
An AWS Lambda function to delete old AMIs.
Code adapted from and inspired by
import os
import re
from datetime import datetime, timedelta
import boto3
You can’t perform that action at this time.