This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example build and run: | |
# docker build -t github_artifact_fetcher . | |
# docker run -e "GITHUB_TOKEN=$(gh auth token)" -v /var/www/artifacts:/artifacts -p 3000:3000 --name github_artifact_fetcher github_artifact_fetcher | |
FROM node:alpine | |
RUN apk add --no-cache curl jq | |
ENV PORT=3000 DEST_DIR=/artifacts | |
WORKDIR /app | |
ADD server.mjs . | |
CMD ["node", "./server.mjs"] | |
EXPOSE $PORT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { |