Skip to content

Instantly share code, notes, and snippets.

View driversti's full-sized avatar
🦝
Have been making 🪲 since birth

Yurii driversti

🦝
Have been making 🪲 since birth
View GitHub Profile
@driversti
driversti / CLAUDE.md
Created December 2, 2025 05:43 — forked from ctoth/CLAUDE.md
My Current global CLAUDE.md

Working with Q — Coding Agent Protocol

What This Is

Applied rationality for a coding agent. Defensive epistemology: minimize false beliefs, catch errors early, avoid compounding mistakes.

This is correct for code, where:

  • Reality has hard edges (the compiler doesn't care about your intent)
  • Mistakes compound (a wrong assumption propagates through everything built on it)
  • The cost of being wrong exceeds the cost of being slow
@driversti
driversti / Northwest Territories (2025-10-13).txt)
Last active October 13, 2025 07:37
Factories in Northwest Territories on October 13, 2025
Erepublik Region Factory Count Results
=====================================
Generated on: Mon Oct 13 08:51:39 CEST 2025
URL: https://www.erepublik.com/en/main/city/218/residents
API Endpoint: https://www.erepublik.com/en/main/city-data/218/residents
SUMMARY:
-------
Total factories owned by all residents: 7892
Total residents analyzed: 158
@driversti
driversti / auto_company_dissolver.js
Created May 23, 2025 12:09
Automatically dissolve all companies of the holding
(async()=>{for(const c of Object.values(companies).filter(c=>c.holding_company_id=='0')){let id=c.id,d=3000+Math.random()*7000;try{let r=await fetch(`https://www.erepublik.com/en/economy/sell-company/${id}`,{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded','Origin':'https://www.erepublik.com','Referer':`https://www.erepublik.com/en/economy/sell-company/${id}`},body:`disolve=${id}&pin=0000&_token=${SERVER_DATA.csrfToken}`});console.log(`Company ${id}:`,await r.json())}catch(e){console.error(`Fail ${id}:`,e)}await new Promise(r=>setTimeout(r,d))}})()
@driversti
driversti / connect
Last active January 24, 2025 07:29
SSH to servers with handy navigation
#!/bin/bash
################################################
### GENERATED BY AI (tested on macOS) ###
################################################
# Hide cursor and show it again on exit
trap 'printf "\033[?25h"' EXIT
printf '\033[?25l'
@driversti
driversti / nvidiachecks.md
Created January 17, 2025 09:18 — forked from jadwigo/nvidiachecks.md
different ways to check for nvidia jetpack versions

old version - check for existing file

cat /etc/nv_tegra_release

later versions (check L4T verions)

dpkg-query --show nvidia-l4t-core

dpkg -l | grep 'nvidia-l4t-core'

@driversti
driversti / keychron_k2.adoc
Created September 24, 2024 07:17 — forked from judaew/keychron_k2.adoc
Keychron K2 Manual

Keychron K2 Manual

Connect Bluetooth

On the side of the keyboard, switch the toggle to Bluetooth. Press fn+1 3 seconds and pair with device named Keychron K2.

  • fn+1 connect to 1st device

  • fn+2 connect to 2nd device

  • fn+3 connect to 3rd device

@driversti
driversti / auto_open_satoshi_box.md
Last active February 2, 2024 19:06
Auto-opening satoshi boxes
@driversti
driversti / chatgpt-cwa
Last active January 19, 2024 20:10
Adjust the width of the content area in ChatGPT dialog interactively with buttons
// ==UserScript==
// @name ChatGPT Content Width Adjuster (CWA)
// @namespace http://tampermonkey.net/
// @version 1.2
// @description Adjust the width of the content area in ChatGPT dialog interactively with buttons
// @author driversti
// @match https://chat.openai.com/*
// @grant GM_addStyle
// @grant GM_registerMenuCommand
// ==/UserScript==
@driversti
driversti / erepublik_posts_filter.userscript.js
Created January 7, 2024 19:45
Filter out posts you don't like
// ==UserScript==
// @name eRepublik Post Filter
// @version 1.1
// @description FIlter out post you don't like specifying keywords (banned words)
// @author driversti https://www.erepublik.com/en/citizen/profile/4690052
// @match https://www.erepublik.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
// @run-at document-end
// @icon https://www.google.com/s2/favicons?sz=64&domain=erepublik.com
// @grant none
@driversti
driversti / auto_activation_3min_pp_boosters.userscript.js
Last active January 8, 2024 19:40
Automatic activation 3 min PP boosters
// ==UserScript==
// @name 3min PP boosters activation
// @namespace https://www.erepublik.com/
// @version 1.1
// @description Activate all 3min PP boosters with one click.
// @copyright YOU ARE NOT ALLOWED TO DISCLOSE THIS SCRIPT TO OTHERS WITHOUT MY PERMISSION!!!
// @author driversti https://www.erepublik.com/en/citizen/profile/4690052
// @match https://www.erepublik.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=erepublik.com
// @grant none