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
/** | |
* This init script modifies the Gradle project by adding a new task to all projects, `checkBlacklist`, which | |
* can be used to check if any of the project's resolvable dependencies are included in a configurable blacklist. | |
* | |
* To add it dynamically with a Gradle build command, add the `-I` option with the path to this file, e.g.: | |
* > gradle -I /path/to/blacklist.gradle checkBlacklist | |
*/ | |
gradle.allprojects { |
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
My AWS Secrets: | |
AKIAI0SFODNN7OKEMLPE | |
AKIAI0SFODNN7OKEMLPE | |
My other AWS Secret: AKIAI2SFODNN7OKEMLPE | |
Some high entropy strings: | |
vJalrXUtnFEMI/K7MDENG/bPxRfiCYKMDNHKROOI, vJalrXUtnFEMI/K7MDENG/bPxRfiCYKMDNHKROOI | |
wJalrXUtnFEMI/K7MDENG/bPxRfiCYKMDNHKROOI | |
"NEW_SECRET": 'GUfiHfs3pCXtHEtZzRwnLaYTAidVBxR32dffuwKkYeTDzvEAuxDuLUBm3WF' |
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
/** | |
* MIT License | |
* | |
* Copyright (c) 2018 Chris Passarello <www.insecurity.co> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
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
/** | |
* MIT License | |
* | |
* Copyright (c) 2018 Chris Passarello <www.insecurity.co> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
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
/** | |
* MIT License | |
* | |
* Copyright (c) 2018 Chris Passarello <www.insecurity.co> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
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
#!/usr/bin/env bash | |
set -o errexit -o errtrace -o noclobber -o nounset -o pipefail | |
trap 'e=$?; if [ "$e" -ne "0" ]; then printf "LINE %s: exit %s <- %s%s\\n" "$BASH_LINENO" "$e" "${BASH_COMMAND}" "$(printf " <- %s" "${FUNCNAME[@]:-main}")" 1>&2; fi' EXIT | |
PROGNAME="${0##*/}" | |
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
#!/usr/bin/env bash | |
# Any additional arguments are passed through to sort command. | |
# For example, you can order the sort by most changes to least by running with: | |
# > git-diff-stat-sort -r | |
# To pipe the output through the "less" command while preserving coloring, you can use: | |
# > git-diff-stat-sort -r | less -R | |
# Finally, to create a global git command alias, just run the following: | |
# > git config --global alias.diff-stat-sort '!git diff --stat --stat-width "$(tput cols)" --color=always | sort -t "|" -n -k2' | |
# The above alias will allow you to run the command without having to save/run the below command as a separate script, |
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
#!/usr/bin/env bash | |
set -o errexit -o errtrace -o noclobber -o nounset -o pipefail | |
trap 'e=$?; if [ "$e" -ne "0" ]; then printf "LINE %s: exit %s <- %s%s\\n" "$BASH_LINENO" "$e" "${BASH_COMMAND}" "$(printf " <- %s" "${FUNCNAME[@]:-main}")" 1>&2; fi' EXIT | |
PROGNAME="${0##*/}" | |
contains_value() { |
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
#!/usr/bin/env bash | |
set -o errexit -o pipefail -o noclobber -o nounset | |
trap 'e=$?; if [ "$e" -ne "0" ]; then printf "LINE $BASH_LINENO: exit %s <- ${BASH_COMMAND}%s\\n" "$e" "$(printf " <- %s" "${FUNCNAME[@]:-main}")" 1>&2; fi' EXIT | |
get_summary() { | |
local no_color | |
local target_dir |
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
export SHELL = /bin/bash | |
MAKEFILE_PATH := $(abspath $(firstword $(MAKEFILE_LIST))) | |
MAKEFILE_DIR := $(dir $(MAKEFILE_PATH)) | |
PYTHON_VERSION := 3 | |
PYTHON := $(PYTHON_VERSION:%=python%) | |
PYTHON_ENV_TAG := $(shell .venv/bin/python -c 'import wheel.bdist_wheel as d; print(d.python_tag(), d.get_abi_tag(), d.get_platform(None), sep="-")' 2> /dev/null || printf '\e[33mWARNING\e[0m: missing python virtual environment; run "make venv" first and then retry\n' 1>&2) | |
REQUIREMENTS_IN := $(wildcard *requirements.in) | |
#REQUIREMENTS_OUT_DIR := $(MAKEFILE_DIR) | |
REQUIREMENTS_OUT_DIR := $(abspath $(MAKEFILE_DIR)/requirements-out)/ | |
REQUIREMENTS_OUT := $(REQUIREMENTS_IN:%.in=$(abspath $(REQUIREMENTS_OUT_DIR)/%-$(PYTHON_ENV_TAG).txt)) |
OlderNewer