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
const LOGTO_APP_ID = process.env.LOGTO_MANAGEMENT_API_ID | |
const LOGTO_APP_SECRET = process.env.LOGTO_MANAGEMENT_API_SECRET | |
const LOGTO_API_RESOURCE = `https://${process.env.LOGTO_TENANT_ID}.logto.app/api` | |
const LOGTO_APP_ID_TO_UPDATE = process.env.LOGTO_CLIENT_ID | |
if (!LOGTO_API_RESOURCE || !LOGTO_APP_ID_TO_UPDATE || !LOGTO_APP_ID || !LOGTO_APP_SECRET) { | |
console.error("Missing environment variables") | |
process.exit(1) | |
} |
gzip -dc YOUR_FILE_TO_RESTORE_TAR_GZ | pg_restore -c -d DATABASE_URL
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
export const authOptions = { | |
// ... | |
providers: [ | |
{ | |
id: "kinde", | |
name: "Kinde", | |
type: "oauth", | |
wellKnown: `https://TENANT_ID.kinde.com/.well-known/openid-configuration`, | |
idToken: true, | |
authorization: { |
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
float space = 10.; | |
vec2 p = (FC.xy * 2.0 - r) / r.y * 3.; | |
vec2 x, d; | |
for (float i = 1.0 - fract((t)); i < 25.0; i += 0.5) { | |
x = p + (cos(i * vec2(0.1, 0.5) + t) + vec2(0, 4.0 - i)) / i * (space / 2.0); | |
d = vec2(4, sin(i) * 0.4 * x * 2e-1 ) / i * 4.; | |
o += (cos(max(i, 3.) + vec4(0, 2, 4, 0)) + 1.0) / (length(x - d * clamp(dot(x, d) / dot(d, d), -11.0, 11.0)) + i / 1e8) / max(i * i, 5.0) * .12; | |
} |
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 time | |
import random | |
from pynput.keyboard import Controller | |
keyboard = Controller() # Create the controller | |
def type_string_with_delay(string): | |
for character in string: # Loop over each character in the string | |
keyboard.type(character) # Type the character | |
delay = random.uniform(0, 2) # Generate a random number between 0 and 10 |
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
{ | |
"version": "1.0.0", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"type": "module", | |
} |
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 { useEffect, useMemo, useRef, useState } from 'react'; | |
type ObserverRect = Omit<DOMRectReadOnly, 'toJSON'>; | |
const defaultState: ObserverRect = { | |
x: 0, | |
y: 0, | |
width: 0, | |
height: 0, | |
top: 0, |
NewerOlder