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/sh | |
if [ ! -f ./jdk-23.0.1.jdk/Contents/Home/bin/java ]; then | |
curl -o java.tar.gz https://download.oracle.com/java/23/latest/jdk-23_macos-aarch64_bin.tar.gz | |
tar -xvf java.tar.gz | |
rm java.tar.gz | |
fi | |
if [ ! -f ./gluegenpatched ]; then | |
if [ ! -f ./jogl-all.jar ]; then |
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/sh | |
# check if ~/cache exists | |
if [ ! -d ./cache/https/game.havenandhearth.com/java/jogl/current/jar/ ]; then | |
echo "Cache doesn't exist, first try to run haven" | |
osascript -e 'display dialog "Please run Ender first before continuing." buttons {"OK"} with title "Haven Required" with icon caution' | |
exit 1 | |
fi | |
curl -o jogl.7z https://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z |
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/sh | |
# check if ~/cache exists | |
if [ ! -d ~/.cache/haven-launcher/cache/https/game.havenandhearth.com/java/jogl/current/jar/ ]; then | |
echo "Cache doesn't exist, first try to run haven" | |
osascript -e 'display dialog "Please run Haven first before continuing." buttons {"OK"} with title "Haven Required" with icon caution' | |
exit 1 | |
fi | |
curl -o jogl.7z https://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z |
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/sh | |
cd "$(dirname "$0")" | |
# check if jdk-23.0.1.jdk exists | |
if [ -d "./jdk-23.0.1.jdk" ]; then | |
echo "JDK 23.0.1 already downloaded" | |
else | |
curl -o java.tar.gz https://download.oracle.com/java/23/latest/jdk-23_macos-x64_bin.tar.gz | |
tar -xvf java.tar.gz | |
rm java.tar.gz |
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/bash | |
VERSION=${VERSION:-devbuild} | |
COMMIT=${COMMIT:-$(git rev-parse HEAD | head -c 8)} | |
BUILDTIME=$(date +%s) | |
LDFLAGS="-X 'main.VERSION=${VERSION}' -X 'main.BUILDTIME=${BUILDTIME}' -X 'main.COMMIT=${COMMIT}'" | |
# go tool dist list |
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
// Follow this setup guide to integrate the Deno language server with your editor: | |
// https://deno.land/manual/getting_started/setup_your_environment | |
// This enables autocomplete, go to definition, etc. | |
import { serve } from "https://deno.land/[email protected]/http/server.ts" | |
import * as postgres from 'https://deno.land/x/[email protected]/mod.ts' | |
console.log("FUNCTION VAULTSIGN LOADED") | |
const databaseUrl = Deno.env.get('SUPABASE_DB_URL')! | |
const secret = Deno.env.get('APIKEY_SECRET_INTEREXCHANGE')! |
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 requests | |
API_KEY = "YOUR API KEY" | |
resp = requests.put("https://vault.immudb.io/ics/api/v1/ledger/default/collection/default/document", headers = { | |
"X-API-KEY": API_KEY, | |
"content-type": "application/json" | |
}, json = { | |
"reddit": "Welcome!" |
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
from immudb.client import ImmudbClient | |
import uuid | |
MAX_N = 2000 | |
def main(): | |
client = ImmudbClient("localhost:3322") | |
client.login("immudb", "immudb", "defaultdb") | |
client.sqlExec("""CREATE TABLE IF NOT EXISTS pagination( ID INTEGER AUTO_INCREMENT, VALUE VARCHAR[255], PRIMARY KEY(ID) )""") | |
for index in range(0, MAX_N): | |
print("Adding records...", index, f"{round((index / MAX_N) * 100, 2)}%") |
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
from immudb import ImmudbClient | |
import time | |
class ExampleClient: | |
def __init__(self, immudbUrl, login, password, database): | |
self.immudbUrl = immudbUrl | |
self.login = login | |
self.password = password | |
self.database = database | |
self.client = ImmudbClient(immudbUrl) |
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: '2' | |
services: | |
traefik: | |
build: | |
context: traefik | |
dockerfile: Dockerfile.template | |
command: | |
- --entrypoints.web.address=:80 | |
- --providers.docker=true | |
- --providers.docker.exposedbydefault=false |
NewerOlder