Skip to content

Instantly share code, notes, and snippets.

View macintacos's full-sized avatar

Julian Torres macintacos

View GitHub Profile
@macintacos
macintacos / gist:c1e83c2ce112bd80c995d8b90bc5c24a
Last active November 26, 2023 22:57
Factorio Blueprint Save (Nov 26th 2023)
0eNqk3O2urMd5oOdz4e+toKuez/KpBIOBPGYcIhrJkGUghuFzD2mPE4d70+ZF/5Gwtmr16ur77Xq7LxXqn7776z/8w/d/9+cf/viX//7Xf/rT//XdX/3T//cvf//dX/3v/wQDfvrf/v6Pv/+73/3lT7/72z//8Dc//fx/f/dX5/P58t0//st///OX737/13//pz/8w1++/91PI//uhz/+7Xd/9Zc//8P3X7774X/86Y//+oB//8Pf/vH3f/jpt//yj3/3/Xd/9d0Pf/n+f3735bs//v5//vTTX//wt7/7/g/f/4+//PmH//G7v/vTH77/7seH/eGPf/P9T3/rn7/8p7//59//ze///O9+5/7zf/vy3fd//MsPf/nh+399Av/ywz/+9z/+w//86+///OOD/gd/+st3f/env//xN//0x/8129/Vv0z2d/XjH/hxRn/8cfAP/zKxf/ru/PQff/7+b/793/jpVbo/Pel/9/P89IT+9s/ff//HXzHyn3/8O3/8/oe//T//+k//8Oefnv79Mv/t3w37t0lcmYTP4fzsmcXPft5fnNOv+M2v5ni+xJf91ixDZhn/9VT5q1PlN1Pll/etaaRMo30aP3+N6xen8Y2RX00jvtSX8/nWPErm8Xwe+bNn1z/7+ZxfnNiv+dWvZppf+ss535ppy0zPx6daP39+9xen9q2hX03lx2T3WxOZ37DY/RfWif35c61fvVB861e/sVLsl1Pfmuj6gvhfWtP//z+/nz/5hkX/P3+ob90Vvrwvp7/1SrzfsGjCS/FVp88vTvVbQ7+x3OwvLDfn8xvWTZjJ+/XLy/t1y8n7heXknN+wcv5XVpPP12vGz/5hfv1686se7Fsr0ufHRenL+ebnl3N/ywoLL8k3bgA/+4df/gzzq373qwn/dC/5cr75OebEzz6ufr30zv/2r1P88b//+VuPkP/ZI7z7nzxC/YZbQcAr/vOF7LxffIG/NfSr13N+XN++nG9+oDrtq338F9a4++vXuPutNe6nm9aX++1
@macintacos
macintacos / obsidian-icons.css
Last active December 5, 2022 08:56
A brute-force way to get icons into Obsidian on the Mac
:root {
--icon-purple-filter: invert(79%) sepia(34%) saturate(5757%)
hue-rotate(211deg) brightness(98%) contrast(99%);
--icon-orange-filter: invert(84%) sepia(58%) saturate(2935%)
hue-rotate(309deg) brightness(93%) contrast(92%);
}
/* hover states */
.workspace-tab-header-inner-icon:hover,
.nav-action-button:hover,
@macintacos
macintacos / _vspacecode_bindingOverrides.json
Last active August 7, 2020 18:07
VSpaceCode non-default Configuration, inspired by keybindings available in Chord Heavy. `multiCommands.txt` is an amalgamation of commands I created with the multi-commands VSCode extension to accentuate my keybindings.
{
"vspacecode.bindingOverrides": [
{
"bindings": [
{
"command": "workbench.action.openGlobalSettings",
"key": ",",
"name": "Open global settings",
"type": "command"
},
@macintacos
macintacos / windowz-layer.md
Created January 5, 2020 01:36
WINDOWZ Layer as of January 4, 2020
Physical Key Mapping Action Performed Color
Q alt+ctrl+q Move window top left #2e00e9 (Sunset Blue/Purple)
W alt+ctrl+w Move window top right #2e00e9 (Sunset Blue/Purple)
E alt+ctrl+e Move window first two thirds #2e00e9 (Sunset Blue/Purple)
T alt+ctrl+t Move window last two thirds #2e00e9 (Sunset Blue/Purple)
P alt+ctrl+p Move window to previous display #2e00e9 (Sunset Blue/Purple)
Backspace alt+ctrl+backspace Restore original window size/position #2e00e9 (Sunset Blue/Purple)
ESC TO(1) Go to Base #878eff (Solarized Purple)
A alt+ctrl+a Move window bottom left #2e00e9 (Sunset Blue/Purple)
@macintacos
macintacos / nrmlshft-layer.md
Last active January 5, 2020 01:20
NRMLSHFT Layer as of January 4, 2020
Physical Key Mapping Action Performed Color
W alt+right Move right 1 word #219e20 (Material Green)
E alt+right Move right 1 word #219e20 (Material Green)
I cmd+left Move to beginning of line #219e20 (Material Green)
P cmd+v Copy #219e20 (Material Green)
Backspace backspace Backspace 1 character #219e20 (Material Green)
A cmd+right Move to end of line #219e20 (Material Green)
G cmd+down Move to bottom #219e20 (Material Green)
Shift MO(6) Momentarily activate NRMLSHFT #219e20 (Material Green)
@macintacos
macintacos / visual-layer.md
Created January 5, 2020 00:31
VISUAL Layer as of January 4, 2020
Physical Key Mapping Action Performed Color
W alt+shift+right Select right 1 word #878eff (Solarized Purple)
E alt+shift+right Select right 1 word #878eff (Solarized Purple)
Y cmd+c Copy #878eff (Solarized Purple)
I TO(1) Go to Base #878eff (Solarized Purple)
P cmd+v Paste #878eff (Solarized Purple)
Backspace shift+left Select left 1 character #878eff (Solarized Purple)
ESC TO(1) Go to Base #878eff (Solarized Purple)
A TO(1) Go to Base #878eff (Solarized Purple)
@macintacos
macintacos / normal-layer.md
Last active January 5, 2020 00:23
NORMAL Layer as of January 4, 2020
Physical Key Mapping Action Performed Color
Tab tab Tab #00a3e9 (Desert Sun Blue)
W alt+right Move right 1 word #00a3e9 (Desert Sun Blue)
E alt+right Move right 1 word #00a3e9 (Desert Sun Blue)
R cmd+shift+z Redo #00a3e9 (Desert Sun Blue)
Y cmd+c Copy #00a3e9 (Desert Sun Blue)
U cmd+z Undo #00a3e9 (Desert Sun Blue)
I TO(1) Go to Base #f2671f (Sunset Orange)
P cmd+v Paste #00a3e9 (Desert Sun Blue)
@macintacos
macintacos / gimme-my-icons-plz.js
Last active May 2, 2020 17:00
Bringing icons (in an emoji form) back to the MongoDB Atlas UI. Add this as your own UserScript in something like Tampermonkey and it'll give you emojis for the icons in the left-hand bar.
// ==UserScript==
// @name Gimme My Icons Plz
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Adding emojis in place of icons for the Atlas Project UI. This now handles the new redesign properly.
// @author macintacos
// @match https://cloud.mongodb.com/v2/*
// @exclude https://cloud.mongodb.com/v2/admin*
// @require http://code.jquery.com/jquery-3.4.1.min.js
// @grant none
* {
filter: invert(100%);
}
@macintacos
macintacos / mongod-post44.json
Last active February 14, 2024 17:47
JSON file for formatting `lnav` MongoDB logs, both "pre" 4.4 and "post" 4.4 (i.e. when structured logging was introduced). Place these files in `$HOME/.lnav/formats/installed`
{
"mongod_post44": {
"title": "MongoDB 4.4 Log format",
"description": "New log format beginning with MongoDB 4.4",
"url": "https://docs.mongodb.com/manual/reference/log-messages/index.html#structured-logging",
"json": true,
"file-pattern": ".*mongodb.log",
"line-format": [
{ "field": "__timestamp__" },
" ",