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
pipeline { | |
agent any | |
parameters { | |
string(name: 'environment', defaultValue: 'default', description: 'Workspace/environment file to use for deployment') | |
string(name: 'version', defaultValue: '', description: 'Version variable to pass to Terraform') | |
booleanParam(name: 'autoApprove', defaultValue: false, description: 'Automatically run apply after generating plan?') | |
} | |
environment { |
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
backup-repos() { | |
for i in $(find . -type d -maxdepth 1 -mindepth 1); do | |
echo "Looking in $i..." | |
if [ -d "$i/.git" ]; then | |
echo "Found repository in $i, init backup..." | |
pushd $i > /dev/null | |
zip_name="$i-$(date +'%y%m%d').zip" | |
zip_path="/opt/backups/$zip_name" | |
echo "ZIP path: $zip_path" | |
if [ ! -f "$zip_path" ]; then |
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
ffmpeg -i $1 -filter_complex "[0:v] fps=40,scale=800:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" ${1%.*}.gif |
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
# Source: https://gist.github.com/2e67c67a36a2e782422ebefb4a0a2612 | |
############################################################################ | |
# How To Use Terrajet Providers With 100% Coverage for AWS, GCP, And Azure # | |
# https://youtu.be/QSwF3Y4ViKQ # | |
############################################################################ | |
# Additional Info: | |
# - Terrajet: https://github.com/crossplane/terrajet | |
# - How To Shift Left Infrastructure Management Using Crossplane Compositions: https://youtu.be/AtbS1u2j7po |
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
#!/bin/bash | |
# Hook based on this article: https://andy-carter.com/blog/automating-git-commit-messages-with-git-hooks | |
COMMIT_MSG_FILE=$1 | |
COMMIT_SOURCE=$2 | |
SHA1=$3 | |
branch=$(git branch --show-current) |
OlderNewer