Skip to content

Instantly share code, notes, and snippets.

View ingmarh's full-sized avatar

Ingmar Hergst ingmarh

View GitHub Profile
@ingmarh
ingmarh / .functions.sh
Last active July 27, 2021 08:09
Git: Check out automatically named new branch for selected Jira ticket
# Get branch name based on Jira ticket details.
# Output format: $type/$name-$id
#
# - Name is the kebab cased ticket summary,
# excluding special chars and details in braces.
# - Type is determined by the ticket‘s issuetype unless specified by
# the optional second argument (e.g. chore, new, upgrade).
#
# Requires https://github.com/go-jira/jira
#
@ingmarh
ingmarh / Dockerfile
Created May 14, 2020 12:10
CircleCI Build Artifacts server
# docker build -t circleci_build_artifacts .
# docker run -it -e CIRCLECI_TOKEN=token --init -p 8091:8091 --name circleci_build_artifacts -d circleci_build_artifacts
FROM hayd/alpine-deno:1.0.0
ENV PORT 8091
EXPOSE $PORT
WORKDIR /app
@ingmarh
ingmarh / snowflakes.css
Last active December 21, 2018 12:40
Snowflakes
/* Adapted from https://github.com/pajasevi/CSSnowflakes/blob/177a894ca6127a927986c08c641d7215c55b9dfc/dev/snowflakes.css */
nav ul > li::before {
display: block;
content: "❅";
color: #fff;
font-size: 1em;
font-family: Arial, sans-serif;
text-shadow: 0 0 5px #000;
}
@ingmarh
ingmarh / cordova_environment.js
Last active August 29, 2015 14:07 — forked from tvandervossen/environment.js
Basic environment flags for Cordova apps with installed Device plugin. Note that the Device plugin is not available before the Cordova "deviceready" event has been fired.
env = (function(){
var flags = {}, i, osVersion = device.version + '', androidVersion,
el = document.createElement('div'), root = document.documentElement
function flag(names) {
names = names.split(' ')
for (i = 0; i < names.length; i++) flags[names[i]] = true
}
function classnames() {