Skip to content

Instantly share code, notes, and snippets.

View steinbrueckri's full-sized avatar
🤘

Richard Steinbrück steinbrueckri

🤘
View GitHub Profile
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);
@steinbrueckri
steinbrueckri / trello2github.sh
Created March 9, 2020 21:01
Dirty Trello2Github issues migration script
#!/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'
}
@steinbrueckri
steinbrueckri / gist:50cb2cf38e1630ee90664e62e9d83e1f
Created October 28, 2019 19:03 — forked from gankit/gist:48bdead2699c5af474b51c05f812bce4
Google Apps Script to send email via Mailgun
// 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 <info@mycompany.com>";
// Errors will be send here
var SUPPORT_EMAIL = "error@mycompany.com";
// Subject of the email
var SUBJECT = "EMAIL SUBJECT";

Team Boards

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
@steinbrueckri
steinbrueckri / example.tf
Last active August 13, 2019 18:38
Deploy 🚀 SSH 🔑 via Terraform #terraform #ssh #deploy
# 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"
}
@steinbrueckri
steinbrueckri / OpsReadiness.md
Created June 19, 2019 14:17 — forked from adyrcz/OpsReadiness.md
Operational Readiness Checklist

Operational Readiness Checklist

Types of Operability Requirements

  • Project Requirements
  • Configuration Management
  • CI/CD
  • Service Level Managment Requirements
  • Monitoring
@steinbrueckri
steinbrueckri / RUNBOOK.md
Last active June 16, 2019 18:58 — forked from voxxit/RUNBOOK.md
Example of a solid run book/operations manual

Run Book / Operations Manual

System Overview

Service Overview

Contributing Applications, Daemons, and Windows Services

Hours of Operation

@steinbrueckri
steinbrueckri / image_via_ssh
Last active December 17, 2018 13:39
Transferring a Docker image via SSH
# 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'