Skip to content

Instantly share code, notes, and snippets.

@dzwarg
dzwarg / commit-msg.py
Created June 17, 2021 18:34
JIRA commit-msg git hook
#!/usr/bin/env python
import re
import sys
COMMENT_RE = re.compile(r'^#.*$')
STORY_RE = re.compile(r'\b[A-Za-z]+-\d+\b')
BRANCH_RE = re.compile(r'^# On branch (?P<ticket>[A-Za-z]+-\d+)(-.*)?$')
def main ():
@dzwarg
dzwarg / README.md
Last active June 17, 2021 19:31
Node crawling script to output a neo4j creation statements

Crawling and Graphing a Website

This script will crawl a website, and generate a loadable file that can be fed into neo4j to graph the network of links on a site.

Prerequisites

You will need nodejs installed, as well as neo4j.

Crawling

@dzwarg
dzwarg / README.md
Created June 18, 2021 15:50
Illuminate some LEDs; one for each pull request open

Bitbucket blinkt

Purpose

Use the blinkt device to indicate how many PRs are open on a fixed set of repositories.

Platform

This software connects to Bitbucket Cloud's REST API to get information about some predetermined Git repositories.