Skip to content

Instantly share code, notes, and snippets.

@cdenneen
cdenneen / Jenkinsfile
Last active July 23, 2018 00:55
Jenkins Pipeline with matrix testing
node {
stage 'Checkout'
git branch: 'production', url: 'https://github.com/cdenneen/control-repo.git'
stash "${env.JOB_NAME}"
stage: 'Test'
gitCommit = sh(returnStdout: true, script: 'git rev-parse HEAD').trim()
// short SHA, possibly better for chat notifications, etc.
shortCommit = gitCommit.take(6)
sh "echo $shortCommit"
def matrix = [:]
@mdo
mdo / 00-intro.md
Last active March 24, 2024 08:04
Instructions for how to affix an Ikea Gerton table top to the Ikea Bekant sit-stand desk frame.

Ikea Bekant standing desk with Gerton table top

@andreicristianpetcu
andreicristianpetcu / ansible-summary.md
Created May 30, 2016 19:25
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@nicwolff
nicwolff / XML_breaker.py
Last active March 14, 2024 02:11
Python script to break large XML files
import os
import sys
from xml.sax import parse
from xml.sax.saxutils import XMLGenerator
class CycleFile(object):
def __init__(self, filename):
self.basename, self.ext = os.path.splitext(filename)
self.index = 0
@bradmontgomery
bradmontgomery / git-cheat-sheet.md
Last active February 25, 2022 20:08
a little git cheat sheet.

git cheat sheet

Interactively stage changes in a file

git add -ip <file>

Create a new, remote tracking branch (without branching from a local branch)

git co -b somebranch upstream/somebranch
@digitaljhelms
digitaljhelms / gist:4287848
Last active May 11, 2024 23:32
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch