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
// Index of some column that is not used. | |
var SENT_COLUMN = 15; | |
// Place your Grid API Key here. | |
var MAILGUN_KEY = "YOUR_MAILGUN_KEY" | |
// The emails will be send from here. | |
var EMAIL_FROM = "Company Name <[email protected]>"; | |
// Errors will be send here | |
var SUPPORT_EMAIL = "[email protected]"; | |
// Subject of the email | |
var SUBJECT = "EMAIL SUBJECT"; |
Wir haben einen Cluster per Hand (WebUI) hingestellt dann war den eintrag da. Nach dem Löschen des Clusters per Hand war der Eintrag auch wieder weg.
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 |
OlderNewer