Skip to content

Instantly share code, notes, and snippets.

View steinbrueckri's full-sized avatar
🤘

Richard Steinbrück steinbrueckri

🤘
View GitHub Profile
@steinbrueckri
steinbrueckri / zsh_to_fish.py
Created April 27, 2021 08:01 — forked from dvdbng/zsh_to_fish.py
Migrate zsh history to fish
import os
import re
def zsh_to_fish(cmd):
return (cmd.replace('&&', '; and ')
.replace('||', '; or '))
def is_valid_fish(cmd):

Disable Device Enrollment Program (DEP) notification on macOS Catalina.md

With full reinstall (recommended)

   a. Boot into recovery using command-R during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

   b. Initial installation will run for approximately 1 hour, and reboot once

   c. It will then show a remaining time of about 10-15 minutes

@steinbrueckri
steinbrueckri / osx_defaults.sh
Created August 10, 2020 10:10 — forked from vraravam/osx-defaults.sh
OSX Defaults to setup a brand new machine
#!/usr/bin/env bash
# echo "Need to recapture iTerm settings"
# exit -1
# TODO: Need to figure out the settings for the following:
# 1) Finder: Left nav, favorite items with their order
# 2) Dock: Items with order
# 3) Security & Privacy Preferences: Full Disk Access, Camera, Microphone
# 4) Login items for my user (i.e. apps started when I login)

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
  • https://*.github.com/*
  • https://*.github.io
Favorites:
Unrefined:
(!(@home|@$WIFE|@mobile|@laptop|@errand|@office) & !##$EMPLOYER & !search:* & !##Someday/Maybe) |
(no priority & !search:* & !recurring & !##Someday/Maybe) |
(!search:: & !##Someday/Maybe & !recurring & !no priority) |
##Inbox,
(##Someday/Maybe|@not_now) & !no due date,
##Someday/Maybe & @next
@steinbrueckri
steinbrueckri / postmortems.md
Created May 18, 2020 17:52 — forked from spaceninja/postmortems.md
Postmortem Doc from Cloud Four

Incident Postmortems

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.

Purpose

We practice postmortems to ensure we understand and address the root cause of severe incidents such as outages, data loss, or serious production bugs.

@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";
@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