Skip to content

Instantly share code, notes, and snippets.

View Zaijo's full-sized avatar

Dominik Zajíček Zaijo

View GitHub Profile
@shawmanz32na
shawmanz32na / Dockerfile
Last active July 11, 2023 17:18
mssql-docker with seed data
FROM microsoft/mssql-server-linux
COPY . /usr/src/app
ENTRYPOINT [ "/bin/bash", "/usr/src/app/docker-entrypoint.sh" ]
CMD [ "/opt/mssql/bin/sqlservr" ]
@wknapik
wknapik / drawioxml2html.sh
Last active December 29, 2017 13:56
draw.io xml to html
#!/usr/bin/env bash
# USAGE: drawioxml2html.sh diagram.xml >diagram.html
# html encoding from https://stackoverflow.com/questions/12873682/#answer-12873723
diag="$(sed 's,.*<\(diagram [^>]*\)>\(.*\)<\(/diagram\)>.*,\1FOO\2BAR\3,g' <"$1"|\
sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g'|\
sed 's/&/\\&/g; s/FOO/\&gt;/; s/BAR/\&lt;/')"
^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(([Zz])|([\+|\-]([01][0-9]|2[0-3]):[0-5][0-9]))$
@digitaljhelms
digitaljhelms / gist:4287848
Last active November 16, 2024 01:10
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch