Skip to content

Instantly share code, notes, and snippets.

View UncleCJ's full-sized avatar

Carl-Johan Sveningsson UncleCJ

View GitHub Profile
@derEremit
derEremit / gource-multiple-repositories.sh
Created November 8, 2011 14:58 — forked from anonymous/gource-multiple-repositories.sh
Generates gource video out of multiple repositories.
#!/usr/bin/env bash
# Generates gource video (h.264) out of multiple repositories.
# Pass the repositories in command line arguments.
# Example:
# <this.sh> /path/to/repo1 /path/to/repo2
RESOLUTION="1600x1080"
outfile="gource.mp4"
i=0
@pgilad
pgilad / Instructions.md
Last active March 31, 2024 22:30
Git commit-msg hook to validate for jira issue or the word merge

Instructions

  • copy the file commit-msg to .git/hooks/commit-msg
  • make sure your delete the sample file .git/hooks/commit-msg.sample
  • Make commit msg executable. chmod +x .git/hooks/commit-msg
  • Edit commit-msg to better fit your development branch, commit regex and error message
  • Profit $$

Shell example

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@opyate
opyate / commit-msg
Created October 10, 2017 09:33
JIRA code commit msg hook; presumes merges happen on remote (via PR mechanism, etc)
#!/bin/sh
# .git/hooks/commit-msg
test "" != "$(egrep '[A-Z]{3,}-\d+' "$1")" || {
echo >&2 Commit message requires JIRA code.
exit 1
}
@vmdowney
vmdowney / harvard-iiif-jigsaws.md
Last active October 13, 2021 13:13
Harvard Digital Collections IIIF online jigsaw puzzles

Creating online jigsaw puzzles from Harvard Digital Collections images

These instructions were adapted from tweets by Emma Stanford on using Bodleian Library IIIF images to create online jigsaw puzzles: https://twitter.com/e_stanf/status/1233102000151126017.

  1. Find an image in Harvard Digital Collections: https://library.harvard.edu/digital-collections. Here is an example image, MS Thr 495 (319) from the Harvard Theatre Collection:
https://id.lib.harvard.edu/digital_collections/hou01892c00350
  1. Click Copy Manifest Link in the Tools & Related Links panel. The link should like this: