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
# docker save | streamed images to STDOUT | |
# bzip2 | compress image an the fly | |
# pv | show progress bar | |
# ssh | forward stream to remote host | |
# bunzip2 | decompress on remote host | |
# docker load | reimport on remote host | |
docker save <image> | bzip2 | pv | ssh user@host 'bunzip2 | docker load' |
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
# ssh key via variable | |
resource "google_compute_instance" "via-variable" { | |
name = "via-variable" | |
machine_type = "n1-standard-1" | |
zone = "europe-west4-a" | |
boot_disk { | |
initialize_params { | |
image = "debian-cloud/debian-9" | |
} |
the moment a card is due, post comment "@{creatorusername} {triggercardname} is overdue!", add the warning sticker
when a comment containing "Done ✅" is posted to a card, move it to the top of the list "Done"
when a card in list "Done ✅" is archived, post comment "Card archived on {date} by {username}"
when a card is moved to the "Done ✅" list, remove all the labels and due date from it and unsubscribe the member from the card
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
#!/bin/bash | |
### Open your Trello Board in the Brower for example https://trello.com/b/UyF8VyFV/innovation-weekly | |
### Add ".json" add the end of the URL like https://trello.com/b/UyF8VyFV/innovation-weekly.json | |
### Now your browser should display a Json Doc, download this. | |
for row in $(cat innovation-weekly.json | jq -r '.cards[] | { status: .closed, name: .name, desc: .desc} | @base64'); do | |
_jq() { | |
echo ${row} | base64 --decode | jq -r ${1} | tr -d '\n' | |
} |
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
const isDev = ['localhost', '127.0.0.1'].includes(location.hostname); | |
const dom = { | |
select: document.querySelector.bind(document), | |
slectAll: document.querySelectorAll.bind(document) | |
}; | |
const injectScript = (source, callback) => { | |
const script = document.createElement('script'); | |
script.src = source; | |
script.addEventListener('load', callback); | |
document.head.appendChild(script); |
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
#!/bin/bash | |
# NOTE: other solution can maybe ... | |
# gcloud container images list-tags eu.gcr.io/project_id/image_name | |
image=$1 | |
if [[ ! $image =~ ^[eu\.]*gcr\.io\/.+\/.+:.+$ ]]; then | |
echo "[ERROR] bad parameter, expect something like 'eu.gcr.io/project/image:version'" | |
exit 255 | |
fi |
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
octokit/octokit.rb, mlabouardy/komiser, googleapis/google-cloud-ruby, gildasio/h2t, | |
cflint/CFLint, Comcast/snowdrift, pajowu/fahrgastrechte-autofill, mathieudutour/github-tag-action, | |
ocadaruma/zsh-gcloud-prompt, burdzwastaken/hadolint-action, s4u/maven-settings-action, p1nkun1c0rns/awesomeness, | |
karancode/yamllint-github-action, actionshub/markdownlint, progettoIspw2019/FixMyCity, chick-p/action-markdownlint, | |
mrlesmithjr/ansible-sshd, p1nkun1c0rns/deploy-google-cloud-run-action, p1nkun1c0rns/prometheus-operator-lint-action, p1nkun1c0rns/maven-settings-action, | |
p1nkun1c0rns/sonarcloud-test-java, p1nkun1c0rns/gha-test-repo, grulkeS/IronHackArena, gleichda/cloud-shell, | |
FrauTroll/JuniorChallenge, dabeck/envsubst, rsrchboy/docker-mdl, |
Postmortem documents are a ritual designed to examine serious incidents or outages. Google’s book on Site Reliability Engineering says:
A postmortem is a written record of an incident, its impact, the actions taken to mitigate or resolve it, the root cause(s), and the follow-up actions to prevent the incident from recurring.
We practice postmortems to ensure we understand and address the root cause of severe incidents such as outages, data loss, or serious production bugs.
OlderNewer