Skip to content

Instantly share code, notes, and snippets.

View mut3's full-sized avatar

Will Barnwell mut3

View GitHub Profile
@jesugmz
jesugmz / git-tag-regex-validation-using-makefile .md
Last active July 17, 2019 20:04
Git tag regex validation using Makefile

Git tag regex validation using Makefile

This is a portion of a Makefile where I select a Git tag, validate its name using regular expresion and build a Docker image with it as tag.

# it is evaluated when is used (recursively expanded variable)
# https://ftp.gnu.org/old-gnu/Manuals/make-3.79.1/html_chapter/make_6.html#SEC59
git_tag = $(shell git describe --abbrev=0 --tags)
# Semantic versioning format https://semver.org/
tag_regex := ^v([0-9]{1,}\.){2}[0-9]{1,}$
@martin-juul
martin-juul / JSONView-solarized-dark.css
Last active December 15, 2020 19:16
[JSONView Solarized Dark] Solarized Dark color scheme for the JSONView extension. #solarized #jsonview
/*
* author: Martin Juul | Snowydane @ Github
* homepage: https://juul.xyz
* source: https://gist.github.com/snowydane/98c785460b38d68f33d8949cd2db6ea1
*/
body {
white-space: pre;
font-family: monospace;
background-color: #002b36;
color: #586e75;
@mut3
mut3 / Fun with *nix
Last active November 5, 2016 21:42
Infrastructue as code? try folder structure as code! discovered with the help of @WhoBrokeTheBuild
#!/bin/bash
poc_command="echo Hello, World!"
mkdir -p "$poc_command"
cd "$poc_command"
$(basename "$(pwd)")