Skip to content

Instantly share code, notes, and snippets.

View okaris's full-sized avatar

Ömer Karışman okaris

View GitHub Profile
@okaris
okaris / setup.sh
Created May 7, 2025 18:40
ubuntu dev setup
#!/bin/bash
set -euxo pipefail
# --- System Update ---
sudo apt update && sudo apt upgrade -y
# --- Core Packages ---
sudo apt install -y \
curl \
git \
@okaris
okaris / val.js
Created September 21, 2024 18:14
R2.town
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",
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))
{
"keys": [
{
"kty": "RSA",
"e": "AQAB",
"use": "sig",
"kid": "1elrrJpRznXc5wngiLzvNoj84ouZhKVgSicrI6qbxfo",
"alg": "RS256",
"n": "jvGSxPWdBCQArV9DCmYIFQOuefJGYHYu4J-i7CYBhFq0C1uwiwkOK_X2VXzcwjyKWGVgbusA4i9tUG0xYqPgBEhNL01jYi68QIWc0BUoD_0qgQEQrkz15lViU-H2ElI2EBWVqXVKs7hKxiUSBgJdcYHtTIHZSBN6PVjvEYGFlQrErpGsgF4MN6s9RJJ_AZgJJV4lcVoVq6yGFAofgUY_JsEltA7vT0AxnXDm8UVg-QWqOJidwpHRvMuMK0lNQ7iKTBbLGeO6IV4OAoaw1QlnPiPI9yO9ITG6mOyH4jb0V7Zxwswz8xyOShcoJA5u4yDM1PHD6IqJvu9OS2mucT15iQ"
}
@okaris
okaris / wp.sh
Last active December 13, 2016 08:38 — forked from phlbnks/wp.sh
#!/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