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 | |
set -euxo pipefail | |
# --- System Update --- | |
sudo apt update && sudo apt upgrade -y | |
# --- Core Packages --- | |
sudo apt install -y \ | |
curl \ | |
git \ |
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
import { PutObjectCommand, S3Client } from "npm:@aws-sdk/client-s3"; | |
import { v4 as uuidv4 } from "npm:uuid"; | |
const R2_ACCESS_KEY_ID = "---"; | |
const R2_SECRET_ACCESS_KEY = "---"; | |
const R2_BUCKET_NAME = "---"; | |
const ACCOUNT_ID = "---"; | |
const S3 = new S3Client({ | |
region: "auto", |
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
class LiDBLayer(nn.Module): | |
def __init__(self, in_features, out_features, hidden_dim, r=128, a=8, b=4): | |
super().__init__() | |
self.r, self.a, self.b = r, a, b | |
self.in_features = in_features | |
self.out_features = out_features | |
self.hidden_dim = hidden_dim | |
# Initialize Aaux and Baux with orthogonal rows (non-trainable) | |
self.register_buffer('aaux', torch.empty(r, a)) |
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
{ | |
"keys": [ | |
{ | |
"kty": "RSA", | |
"e": "AQAB", | |
"use": "sig", | |
"kid": "1elrrJpRznXc5wngiLzvNoj84ouZhKVgSicrI6qbxfo", | |
"alg": "RS256", | |
"n": "jvGSxPWdBCQArV9DCmYIFQOuefJGYHYu4J-i7CYBhFq0C1uwiwkOK_X2VXzcwjyKWGVgbusA4i9tUG0xYqPgBEhNL01jYi68QIWc0BUoD_0qgQEQrkz15lViU-H2ElI2EBWVqXVKs7hKxiUSBgJdcYHtTIHZSBN6PVjvEYGFlQrErpGsgF4MN6s9RJJ_AZgJJV4lcVoVq6yGFAofgUY_JsEltA7vT0AxnXDm8UVg-QWqOJidwpHRvMuMK0lNQ7iKTBbLGeO6IV4OAoaw1QlnPiPI9yO9ITG6mOyH4jb0V7Zxwswz8xyOShcoJA5u4yDM1PHD6IqJvu9OS2mucT15iQ" | |
} |
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 -e | |
clear | |
echo "============================================" | |
echo "WordPress Install Script" | |
echo "============================================" | |
echo "Do you need to setup new MySQL database? (y/n)" | |
read -e setupmysql | |
if [ "$setupmysql" == y ] ; then | |
echo "MySQL Admin User: " | |
read -e mysqluser |