Skip to content

Instantly share code, notes, and snippets.

View stefanbuck's full-sized avatar
:octocat:

Stefan Buck stefanbuck

:octocat:
View GitHub Profile
@stefanbuck
stefanbuck / prepare-commit-msg
Last active June 9, 2023 21:09
Ticket number git hook
#!/usr/bin/env bash
#
# Authors:
# Stefan Buck (https://github.com/stefanbuck)
# Thomas Ruoff (https://github.com/tomru)
#
#
# Description:
# Are you still prefixing your commits with a ticket number manually? You will love this script!
# This is a git hook script that will automatically prefix your commit messages with a ticket
@stefanbuck
stefanbuck / github_action.sh
Created October 21, 2021 07:32
GitHub shell options
#!/bin/bash --noprofile --norc -e -o pipefail {0}
const alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
const input = [
"I really",
"ScriptJava",
["and I", "an it's"],
{
m1: "love",
m2: "!namuh retteb a"
},

Octoherd script to help with the recent CircleCI’s security breach by removing deploy keys from your repos.

No warranty, use at your own risk!

Dry-run

Run the script on a single repo first. Octoherd will prompt to confim the deletion request.