One of my colleagues shared an article on writing (good) Git commit messages today: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| {{- if . }} | |
| <style> | |
| * { | |
| font-family: Arial, Helvetica, sans-serif; | |
| } | |
| h1 { |
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 | |
| # Odzalohuje vsetky statefiles z organization v Terraform Cloud. Skript predpoklada, | |
| # ze pouzivatel je prihlaseny do Terraform Cloud cez `terraform login` a takto ziskany | |
| # token ma ulozeny defaultnym sposobom. | |
| # https://www.terraform.io/cli/commands/login#credentials-storage | |
| # Pouzitie: | |
| # chmod +x ./backup-terraform-cloud.sh | |
| # ./backup-terraform-cloud.sh <ORGANIZATION> |
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
| @echo off | |
| if _%1_==__ goto USAGE | |
| openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem -subj "/CN=My Cert Name" | |
| openssl pkcs12 -export -out mycert.pfx -inkey mycert.pem -in mycert.pem -passout pass:%1 | |
| openssl x509 -inform pem -in mycert.pem -outform der -out mycert.cer | |
| openssl pkcs12 -in mycert.pfx -nodes -passin pass:%1 | openssl x509 -noout -fingerprint | |
| openssl x509 -in mycert.pem -noout -fingerprint |
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 | |
| ADDRESS="https://" | |
| API_KEY="" | |
| SECRET_KEY="" | |
| USE_XMLLINT=0 # true => 1, false => 0 | |
| if [ x$ADDRESS == x ] || [ x$API_KEY == x ] || [ x$SECRET_KEY == x ] || [ x$USE_XMLLINT == x ]; then | |
| echo 'ERROR: Set all required valiables.' | |
| exit 1 |
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
| azure | |
| account | |
| list [options] #List the imported subscriptions | |
| show [options] [subscriptionNameOrId] #Show details about a subscription | |
| set [options] <subscriptionNameOrId> #Set the current subscription | |
| clear [options] #Remove a subscription or environment, or clear all of the stored account and environment info | |
| import [options] <file> #Import a publishsettings file or certificate for your account | |
| download [options] #Launch a browser to download your publishsettings file | |
| env... #Commands to manage your account environment |