Skip to content

Instantly share code, notes, and snippets.

View maxkorp's full-sized avatar
:shipit:
Welp

Max Korp maxkorp

:shipit:
Welp
View GitHub Profile
const type = {
activeId: option(int),
alcoholAwarenessExpirationDate: option(Js.Json.t),
clientTypeCurrentlyBeingUsed: option([
LEGACY,
PROFESSIONAL_MOBILE_ANDROID,
PROFESSIONAL_MOBILE_IOS,
QWICKIO,
UNSPECIFIED,
WEB
@maxkorp
maxkorp / gist:01d652071ff0efc54b1c71a4d212c5c1
Created March 18, 2019 22:46
karabiner caps to escape (caps if held)
{
"description": "Change caps_lock to escape. (Post caps_lock if held_down)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]

Keybase proof

I hereby claim:

  • I am maxkorp on github.
  • I am maxkorp (https://keybase.io/maxkorp) on keybase.
  • I have a public key ASD8zjEARY1_RAwRJaZV8y2HdslHxtfN-ySL4xfYkQ83PQo

To claim this, I am signing this object:

export async function doStuff(input) {
try {
const otherstuff = await doOtherStuff(input);
return doDifferentStuff(otherstuff);
} catch (e) {
//handle
}
}
export async function doStuff2(input) {
@maxkorp
maxkorp / markdown-loader.js
Last active May 23, 2017 19:27
markdown loader that parses out yaml metadata
const yamlToJson = require('yaml-to-json');
module.exports = (source) => {
this.cacheable();
if (!source.includes('---')) {
return {
metadata: {},
contents: source
};
}
@maxkorp
maxkorp / xcode-cli-tools-unattended-install.sh
Last active April 20, 2017 19:34
Unattended install of xcode-cli tools
xcode-select --install
sleep 1
osascript <<EOD
tell application "System Events"
tell process "Install Command Line Developer Tools"
keystroke return
click button "Agree" of window "License Agreement"
delay 1
keystroke return
repeat
@maxkorp
maxkorp / _notes
Created August 18, 2016 04:04
generated nodegit binding
This file is generated from a template, so I've put the generated file here to make it easier to look at.
@maxkorp
maxkorp / new-install.sh
Last active September 25, 2018 18:56
New mac install shell script
#!/bin/bash
# Ensure not root
{
if [ "$EUID" -e 0 ]
then echo "Please do not run this script as root"
exit
fi
}