Skip to content

Instantly share code, notes, and snippets.

View SanariSan's full-sized avatar
⚛️

SanariSan

⚛️
  • Jobity.io
  • Georgia, Tbilisi
View GitHub Profile

Reference artifact for a future agent-readiness feature track — not for merge. Opening then closing so it's linkable from the feature task.

Source scans (Cloudflare Radar · Agent Readiness)

Both: 23/100 · Level 1. Discoverability 2/3 · Content Accessibility 0/1 · Bot Access Control 1/2 · Protocol Discovery 0/7 · Commerce 0/0 (N/A).

Item table — payout × effort

Applies: L = jobity.io (marketing), A = app.jobity.io.

@SanariSan
SanariSan / start.bat
Last active February 6, 2026 17:10
Local Rust (game) server startup
:: Launch inside the rust server directory
:: Connect with connect 127.0.0.1:28015
@echo off
:start
echo "Starting Rust server... To stop the server, type 'quit' in this window and press Enter."
RustDedicated.exe -batchmode -maxmemory 8192 ^
+server.port 28015 ^
+server.level "Procedural Map" ^
@SanariSan
SanariSan / gist:7f7396f213298c0526f3a4bc5dbeaa25
Created June 9, 2025 16:53 — forked from pwlin/gist:8a0d01e6428b7a96e2eb
Android : add cert to system store
https://code.google.com/p/android/issues/detail?id=32696#c5
If you have a certificate that is not
trusted by Android, when you add it, it goes in the personal cert store.
When you add a cert in this personal cert store, the system requires a
higher security level to unlock the device. But if you manage to add your
cert to the system store then you don't have this requirement. Obviously,
root is required to add a certificate to the system store, but it is quiet
easy.
@SanariSan
SanariSan / clip.ts
Last active November 20, 2025 11:01
Recursively clip code files with path prepend (for ai to get proj summary)
import { appendFileSync, readFileSync } from 'fs';
import { readdir } from 'fs/promises';
import { join } from 'path';
const ROOT = './';
const IGNORE: (string | RegExp)[] = [
'img',
'.github',
'.git',
'.gitignore',
@SanariSan
SanariSan / arr-to-entries.js
Created April 10, 2025 09:02
Flat array to entries (pairs of key-val)
const arr = [1, 2, 3, 4, 5, 6]; // -> [[1,2],[3,4],[5,6]]
arr.reduce((acc, cur, i) => {
const pos = ~~(i / 2);
acc[pos] = acc[pos] ?? [];
if (i % 2 === 0) acc[pos].push(cur);
else acc[pos].unshift(cur);
return acc;
@SanariSan
SanariSan / git-batch-push.sh
Created March 31, 2025 15:43 — forked from spenserhale/git-batch-push.sh
When your repo exceeds upload limit (GitHub 2GB), you can push in batches so you can store up to total size limit. (100GB) (Warning uses force push, ideally should be used for setting up new remote, once)
# Adjust the following variables as necessary
REMOTE=origin
BRANCH=$(git rev-parse --abbrev-ref HEAD)
BATCH_SIZE=250
# check if the branch exists on the remote
if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then
# if so, only push the commits that are not on the remote already
range=$REMOTE/$BRANCH..HEAD
else
@SanariSan
SanariSan / sol_is_freezable.js
Created February 12, 2025 18:15
Is sol token freezable, chatgpt
const { Connection, PublicKey } = require('@solana/web3.js');
const { getMint } = require('@solana/spl-token');
async function checkTokenFreezable(tokenAddress) {
// Connect to Solana mainnet
const connection = new Connection('https://api.mainnet-beta.solana.com');
try {
// Create PublicKey from the token address
const mintPubkey = new PublicKey(tokenAddress);
@SanariSan
SanariSan / prettify-ts-type.md
Created November 26, 2024 17:48
Prettify, show full nested ts type

tsconfig.json This prevents typehints for big types from showing ... N more ...

{
  "compilerOptions": {
    "noErrorTruncation": true,
  }
}
@SanariSan
SanariSan / favicon-optimize.md
Created September 24, 2024 22:30
Favicon optimization

imagick cli

convert favicon.ico -define icon:auto-resize=64,48,32,16 compressed_favicon.ico

Demo:

Spoiler warning

Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the <details> tag... just make sure you close <details> afterward.

console.log("I'm a code block!");