-
Action -> Stop
-
Download new Docker image with the same tag to overwrite the old image
-
Action -> Reset
-
Start
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
export enum Role { | |
APPLICANT = 'applicant', | |
TRAINER = 'trainer', | |
ADMIN = 'admin', | |
} | |
export function enumToPgEnum<T extends Record<string, any>>( | |
myEnum: T, | |
): [T[keyof T], ...T[keyof T][]] { | |
return Object.values(myEnum).map((value: any) => `${value}`) as any |
Please read this guide again https://developer.1password.com/docs/ssh/git-commit-signing/
Make sure you don't have gpg.ssh.program
field in your ~/.gitconfig
Make sure your ~/.ssh/config
has this:
Host *
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
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
export default { | |
async fetch(request) { | |
function usageResponse() { | |
const usageHtml = `<!DOCTYPE html> | |
<html> | |
<head><title>CORS Proxy Service</title></head> | |
<body> | |
<h1>CORS Proxy Usage</h1> | |
<p>Use this proxy by appending the URL you want to access to the base URL of this proxy. For example:</p> | |
<code>https://our-corsproxy.site/https://somewhere.hates.cors/some-path?somequery=param</code> |
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
package telegrambot | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"github.com/GoogleCloudPlatform/functions-framework-go/functions" | |
"github.com/go-telegram/bot" | |
"github.com/go-telegram/bot/models" |
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
sudo scutil --set HostName <new host name> |
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 IndexPage = React.lazy(() => | |
new Promise<{ default: React.ComponentType }>(resolve => | |
setTimeout(() => { | |
resolve( | |
import('./pages/IndexPage').then(module => ({ default: module.IndexPage })) | |
); | |
}, 3000000) | |
) | |
); |
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/bash | |
# Function to check and convert the file if necessary | |
check_and_convert() { | |
local file=$1 | |
[ -d "$file" ] && return # Skip directories | |
# Use ffprobe to get the codec type for each audio stream | |
codec_info=$(ffprobe -v error -select_streams a -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 "$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 wait (ms) { | |
return new Promise(resolve => setTimeout(() => resolve(), ms)); | |
} | |
export default async function capture(browser, url) { | |
// Load the specified page | |
const page = await browser.newPage(); | |
await page.goto(url, {waitUntil: 'load'}); | |
// Get the height of the rendered page |
NewerOlder