qoomon’s gists · GitHub
Skip to content Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert Instantly share code, notes, and snippets. 🌳 Go for it! Bengt Brodersen qoomon 🌳 Go for it! 241 followers · 67 following Jungheinrich Digital Solutions Germany https://qoo.monster @qoomon@chaos.social @qoomon.bsky.social in/bengtbrodersen @qoomon1 View GitHub Profile Recently created Least recently created Recently updated Least recently updated 1 file 0 forks 0 comments 0 stars qoomon / github-create-PAT.ts Created September 25, 2026 08:48 GitHub: Create a PAT programmatically import { chromium, Page, Browser, BrowserContext } from 'playwright'; async function createGitHubPAT(): Promise<string> { const username = process.env.GITHUB_USERNAME; const password = process.env.GITHUB_PASSWORD; if (!username || !password) { throw new Error('GITHUB_USERNAME and GITHUB_PASSWORD environment variables must be set.'); } 1 file 0 forks 0 comments 0 stars qoomon / keyoxide-proof.md Last active February 21, 2025 15:25 keyoxide.org Proof aspe:keyoxide.org:X2TJUL5QWM6CYZRFO6LLKFJ72Q 1 file 0 forks 0 comments 1 star qoomon / Sandbox.md Created November 1, 2024 08:08 Sandbox Moin 1 file 0 forks 0 comments 0 stars qoomon / github-for-each-org-repository.ts Created September 3, 2024 15:47 Script to iterate over all GitHub org repos import {Octokit} from 'octokit'; import * as process from 'node:process' import YAML from 'yaml'; const metaDataPath = '.github/metadata.yaml'; const input = { token: process.env.GITHUB_TOKEN ?? _throw(new Error('environment variable GITHUB_TOKEN is required')), owner: process.env.GITHUB_OWNER ?? _throw(new Error('environment variable GITHUB_OWNER is required')), } 1 file 0 forks 0 comments 0 stars qoomon / resultOf.ts Last active August 27, 2024 11:25 Run functions or await promises in a safe way by return a result object function resultOf<T>(fn: () => T): SafeResult<T>; function resultOf<T>(fn: () => Promise<T>): Promise<SafeResult<T>>; function resultOf<T>(promise: Promise<T>): SafeResult<T>; function resultOf<T>(input: (() => T | Promise<T>) | Promise<T>): Result<T> | Promise<Result<T>> { if (typeof input === 'function') { try { const result = input() if (result instanceof Promise) { return safe(result); } 1 file 0 forks 0 comments 0 stars qoomon / gist:700f68ca890edd5802fd768652f231cc Last active February 22, 2024 13:22 GitHub Actions Commit Identity git config user.name 'github-actions[bot]' git config user.email '41898282+github-actions[bot]@users.noreply.github.com' 2 files 0 forks 0 comments 0 stars qoomon / AWSParametersAndSecretsLambdaExtension-Utils.ts Created October 12, 2023 06:08 AWSParametersAndSecretsLambdaExtension /** * @param secretId the ARN or name of the secret. * @param version the version stage or version id * @see https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets_lambda.html * @see https://docs.aws.amazon.com/systems-manager/latest/userguide/ps-integration-lambda-extensions.html */ export async function getSecretString(secretId: string, version?: SecretManagerSecretVersionStage | string) { const extensionHttpPortPort = process.env["PARAMETERS_SECRETS_EXTENSION_HTTP_PORT"] ? parseInt(process.env["PARAMETERS_SECRETS_EXTENSION_HTTP_PORT"]) : 2773 const secretManagerRequestUrl = new URL(`http://localhost:${extensionHttpPortPort}/secretsmanager/get`) 1 file 0 forks 0 comments 0 stars qoomon / qoomon.md Last active October 25, 2023 05:40 qoomon styles "Combining Long Stroke Overlay" (U+0336) and "Combining Short Stroke Overlay" (U+0335). qoomon q̴͈̮o̴̱ọm̶͓̥on͒ Q̶̸O̶̴O̶̴M̶̸O̶̴N̶̸ 1 file 0 forks 0 comments 0 stars qoomon / bypass safe links.user.js Last active March 22, 2023 14:45 Userscript to bypass Safe Links // ==UserScript== // @name Bybass Safe Links // @namespace https://qoomon.github.io // @version 1.0 // @description try to take over the world! // @author qoomon // @match https://statics.teams.cdn.office.net/evergreen-assets/safelinks/1/atp-safelinks.html?* // @match https://urlisolation.com/browser?* // @icon https://cdn-icons-png.flaticon.com/512/388/388484.png // @grant none 1 file 0 forks 0 comments 0 stars qoomon / Colima-status.2s.zsh Created February 13, 2023 16:44 xBar - Colima Status #!/bin/zsh # <xbar.title>Colima Status</xbar.title> # <xbar.author>Bengt Brodersen</xbar.author> # <xbar.author.github>qoomon</xbar.author.github> # <xbar.desc>Displays Colima Status - https://github.com/abiosoft/colima</xbar.desc> source ~/.zprofile DOCKER_RUNNING_ICON='iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAACQAAAAAQAAAJAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAACqgAwAEAAAAAQAAACoAAAAAxiJEngAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0Y Newer Older You can’t perform that action at this time.