This file contains 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
#!/usr/bin/env bash | |
ARGS="$@"; | |
if [ -z "$ARGS" ]; then ARGS=list; fi; | |
CARGS=$(echo "$ARGS" | sed -E "s/ +/,/g"); | |
curl -sL "https://www.toptal.com/developers/gitignore/api/$CARGS"; | |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
set -o pipefail | |
FORCE=0 | |
function ckfiles() { ck -f $@; } | |
function ckdirs() { ck -d $@; } | |
function ck() { | |
local x | |
local txt=" " |
This file contains 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
# [Choice] Ubuntu version: bionic, focal | |
ARG VARIANT="focal" | |
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT} | |
# Guide for figuring out what to install: | |
## https://gist.github.com/mtsahakis/f7893e3b5f0785dd99f304b4822d9b61 | |
# Installing `repo` | |
## https://source.android.com/setup/develop#installing-repo | |
# Android version -> API level mapping: | |
## https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
YR=$(date +%Y) | |
MTH=$(date +%m) | |
DSTDIR="${1:-${HOME}/.geoip}" | |
OLDDIR="${2:-${DSTDIR}/.old}" | |
BURL="https://download.db-ip.com/free" | |
mkdir -p "${DSTDIR}" "${OLDDIR}" |
This file contains 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
#!/usr/bin/env bash | |
DBG="${DBG:-0}"; | |
PRNT_LABEL=0; | |
URL="https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json"; | |
function run_prechecks() { | |
# is jq installed | |
if ! type jq &>/dev/null; then | |
echo "Download 'jq'"; |