Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=275)}([function(e,t,n){"use strict";e.exports=n(276)},function(e,t){e.exports=function(e){return e&&e.__esModule?e
import { RDSClient, paginateDescribeDBInstances, DescribeDBInstancesCommand } from "@aws-sdk/client-rds"
import { writeFileSync } from 'fs'
import axios from 'axios'
(async () => {
const rdsClient = new RDSClient();
const dbs = [];
for await (const page of paginateDescribeDBInstances( { client: rdsClient }, {})) {
dbs.push(...page.DBInstances);
@martinamps
martinamps / gist:42ccbc930e44f963ff25d960ce5138ee
Created August 22, 2024 00:35
tampermonkey script to make cloudflare ai gateway ux better
// ==UserScript==
// @name Cloudflare AI Gateway Improver
// @namespace https://dash.cloudflare.com/
// @version 1.5
// @description Adds some missing columns / a modal for viewing request/response in browser
// @author @martinamps
// @match https://dash.cloudflare.com/*
// @grant none
// ==/UserScript==
@martinamps
martinamps / scan_dirs.sh
Created January 13, 2025 07:01
verify all code repos are up to date with your git remote
#!/bin/zsh
CODE_DIR=~/code
for dir in $CODE_DIR/*; do
if [ -d "$dir" ]; then
echo "Checking: $dir"
if [ -d "$dir/.git" ]; then
cd "$dir"
@martinamps
martinamps / gist:599a0fa3f5af60339d0115d7a0d8647b
Created February 27, 2025 00:09
Figma karabiner remap to Sketch group parent navigate
{
"title": "Figma Shift+Return to Esc",
"rules": [
{
"description": "Remap Shift+Return to Esc in Figma only.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "return_or_enter",