Skip to content

Instantly share code, notes, and snippets.

View tichopad's full-sized avatar
:shipit:

Michael Tichopad tichopad

:shipit:
View GitHub Profile
@tichopad
tichopad / nv
Last active September 19, 2022 08:09
Run arbitrary Node version via Docker
#!/bin/bash
# Example runs: `nv 17 ./script.js`, `nv latest yarn install`
# Get Node version
VERSION=$1
# Get the rest of the arguments
shift
ARGUMENTS=$@
docker run \
@tichopad
tichopad / gist.sh
Last active September 15, 2022 20:56
Enable Super + [1-9] shortcut for favorites in Gnome
for i in {1..9}; do gsettings set "org.gnome.shell.keybindings" "switch-to-application-$i" "[\"<Super>$i\"]"; done
@tichopad
tichopad / create-sentry-projects.ts
Created March 21, 2023 12:46
Bulk create Sentry Projects
import fs from 'fs/promises';
const SENTRY_API_KEY = 'enterapikeyhere';
const ORG_SLUG = 'enterorgslughere';
const TEAM_SLUG = 'enterteamnamehere';
const fetchSentry = (
path: string,
method: 'GET' | 'POST' | 'PUT' = 'GET',
body?: Record<string, any>,
@tichopad
tichopad / gary.jpg
Last active June 8, 2023 14:46
gary
gary.jpg