This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Claude Code Usage", | |
"description": "A simple dashboard to graph claude code metrics", | |
"widgets": [{ | |
"id": 3962812398480529, | |
"definition": { | |
"title": "Tokens used", | |
"title_size": "16", | |
"title_align": "left", | |
"type": "query_value", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// OTLP Debug Proxy | |
// tweak datadog site url as necessary | |
const DATADOG_OTLP_METRICS_ENDPOINT = `https://api.us5.datadoghq.com/api/intake/otlp/v1/metrics`; | |
console.log(`Starting OTLP Debug Proxy on port 8080...`); | |
console.log(`Forwarding OTLP/HTTP metrics to: ${DATADOG_OTLP_METRICS_ENDPOINT}`); | |
Bun.serve({ | |
port: 8080, | |
async fetch(claudeRequest) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!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 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("hello") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const got = require('got'); | |
const crypto = require('crypto'); | |
const blacklist = [ | |
'cnn is isis', | |
'side of beef', | |
]; | |
const blacklist_replies = [ | |
"Message: GOTO is not allowed in a stored procedure handler", |
NewerOlder