Skip to content

Instantly share code, notes, and snippets.

View steinbrueckri's full-sized avatar
🤘

Richard Steinbrück steinbrueckri

🤘
View GitHub Profile
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

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

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 / 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):
### Keybase proof
I hereby claim:
* I am steinbrueckri on github.
* I am steinbrueckri (https://keybase.io/steinbrueckri) on keybase.
* I have a public key ASDRwXrYXHx6jE9mfHqFm23wJ9li7FiuXCiobZuxA9IkyAo
To claim this, I am signing this object:
@steinbrueckri
steinbrueckri / create-file-in-repo.sh
Last active April 25, 2022 21:30
Create file in GitHub Repo via API - Example
#!/bin/bash
MESSAGE="test"
TOKEN=$(cat ~/.github-token)
FILENAME="$RANDOM-date.txt"
CONTENT=$(date | base64)
USER="steinbrueckri"
REPO="api-test"
MESSAGE="hello world"