Skip to content

Instantly share code, notes, and snippets.

View KirillTregubov's full-sized avatar
:shipit:
Working to improve every day!

Kirill Tregubov KirillTregubov

:shipit:
Working to improve every day!
View GitHub Profile
@elithrar
elithrar / jj.md
Last active January 10, 2026 02:45
a jj cheat sheet for git users

jj Cheat Sheet for Git Users

🗣️ this is a useful guide to help you memorize + better understand how Jujutsu works, but it's not a replacement for learning the mental model or deeper strategies!

Core Concepts

  • No staging area — all changes in the working copy are automatically part of the current “change”
  • Changes vs commits — jj tracks “changes” (mutable) that become “commits” (immutable) when pushed
  • @ — a symbol pointing to the current working copy change (like HEAD, but for changes)
  • @- — the parent of @
@jamiephan
jamiephan / README.md
Last active December 12, 2025 06:20
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
export const chaosTestStrings = (): void => {
const textNodes = getAllTextNodes(document.body);
for (const node of textNodes) {
const textNodeLength = node.textContent ? node.textContent.length : 0;
if (node.textContent === null) {
return;
}
if (node.parentElement instanceof Element) {
if (node.parentElement.dataset.originalText === undefined) {
@Jak-Ch-ll
Jak-Ch-ll / usePreserveScroll.tsx
Last active January 22, 2025 21:03
Next.js - Preserve Scroll History
import { useRouter } from "next/router"
import { useEffect, useRef } from "react"
export const usePreserveScroll = () => {
const router = useRouter()
const scrollPositions = useRef<{ [url: string]: number }>({})
const isBack = useRef(false)
useEffect(() => {
@Toyz
Toyz / OW1 CMD
Last active January 3, 2026 18:42
All command line options to Overwatch
----------POSSIBLE OPTIONS----------------------------------------------
--account : [optional] account name to login with
--key : [optional] connection key for the server (defaults to 1 in debug)
--automationRoutine : [optional] automation routine to run after login
--startAutomationGraph : [optional] start up and execute automation global graph using provided guid
--gatherEffectStats : [optional] enables effect stat gathering
--noautoconnect : [optional] Do not automatically connect to a server
--fastQuit
--dumpAssetNames : Write to <file> a JSON map of GUID (String "0xabc...") to asset name for all soft assets
--startPosition : [optional] start position when joining a map
@fnky
fnky / ANSI.md
Last active January 10, 2026 22:42
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@tommaitland
tommaitland / form.html
Last active August 31, 2025 06:48
A form with every HTML form element (up to HTML5) for styling.
<form action="/">
<legend>A Sample Form Legend</legend>
<label for="name">Name: </label>
<input type="text" value="Name" name="Name" />
<label for="email">Email: </label>
<input type="email" value="Email" name="Email" />