I hereby claim:
- I am andrei0x309 on github.
- I am andrei0x309 (https://keybase.io/andrei0x309) on keybase.
- I have a public key whose fingerprint is A395 A949 6EF0 01E4 2809 80EF B961 E5B6 8389 457E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import { NobleEd25519Signer } from '@farcaster/hub-nodejs' | |
| import { getWeb3Auth } from 'utils/common/web3-auth' | |
| export const doChanneltest = async () => { | |
| const web3Auth = await getWeb3Auth('testxxxxxxxo') | |
| const farcaster = web3Auth?.farcaster | |
| if (!farcaster) { | |
| console.error('No farcaster auth found') | |
| return |
| handlePostReq['/cross-post-composer'] = async (req: any, res: any) => { | |
| const body: T_FRAME_API_BODY = req.body | |
| const { untrustedData, trustedData } = body | |
| const verification = await verifiedMessage(trustedData.messageBytes) | |
| if (!(verification?.valid)) { | |
| return res.status(200).send({ | |
| type: 'form', | |
| title: 'Cross Post with Yup', |
| import { walk } from "https://deno.land/std/fs/walk.ts"; | |
| import { join } from "https://deno.land/std/path/mod.ts"; | |
| const megaFiles = {} | |
| async function crawlDirectory(relativePath: string): Promise<string[]> { | |
| const filePaths: string[] = []; | |
| const currentDir = Deno.cwd(); // Get the current working directory | |
| const absolutePath = join(currentDir, relativePath); |
| const addToIndexedDB = async (dbName, version, storeName, keyPath, key, value) => { | |
| try { | |
| // Open a connection to the database | |
| const dbRequest = indexedDB.open(dbName, version); | |
| dbRequest.onupgradeneeded = (event) => { | |
| const db = event.target.result; | |
| // Create an object store if it doesn't exist | |
| db.createObjectStore(storeName, { keyPath }); | |
| }; |
| .github-contributions { | |
| --color-workflow-card-connector: var(--color-scale-gray-5); | |
| --color-workflow-card-connector-bg: var(--color-scale-gray-5); | |
| --color-workflow-card-connector-inactive: var(--color-border-default); | |
| --color-workflow-card-connector-inactive-bg: var(--color-border-default); | |
| --color-workflow-card-connector-highlight: var(--color-scale-blue-5); | |
| --color-workflow-card-connector-highlight-bg: var(--color-scale-blue-5); | |
| --color-workflow-card-bg: var(--color-scale-gray-7); | |
| --color-workflow-card-inactive-bg: var(--color-canvas-inset); | |
| --color-workflow-card-header-shadow: rgba(27, 31, 35, 0.04); |
| // this file is loaded in worker-dom by amp-script and handles all comment functions | |
| (async function ampComments() { | |
| const addSiSpinner = function (element, prepend = false) { | |
| const spinner = document.createElement('div'); | |
| spinner.classList.add('loadingspinner'); | |
| if (prepend) { | |
| element.insertBefore(element, element.firstElementChild); | |
| } else { | |
| element.appendChild(spinner); |
| #!/bin/bash | |
| JAILS=`fail2ban-client status | grep "Jail list" | sed -r 's/^[^:]+:[ \t]+//' | sed 's/,//g'` | |
| for JAIL in $JAILS | |
| do | |
| fail2ban-client status $JAIL | |
| done |