Moin
This file contains 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 {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')), | |
} |
This file contains 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 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); | |
} |
This file contains 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
git config user.name 'github-actions[bot]' | |
git config user.email '41898282+github-actions[bot]@users.noreply.github.com' |
This file contains 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
/** | |
* @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`) |
"Combining Long Stroke Overlay" (U+0336) and "Combining Short Stroke Overlay" (U+0335).
qoomon
q̴͈̮o̴̱ọm̶͓̥on͒
Q̶̸O̶̴O̶̴M̶̸O̶̴N̶̸
This file contains 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 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 |
This file contains 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 | |
# <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 |
This file contains 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 | |
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}" | |
0="${${(M)0:#/*}:-$PWD/$0}" | |
echo "${${0:A}/%.plugin.zsh/.zsh}" |
This file contains 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
# lock and hide Google Drive link | |
chflags -h uchg,hidden "$HOME/Google Drive" | |
# undo by following command | |
# chflags -h nouchg,nohidden "$HOME/Google Drive" |
NewerOlder