Skip to content

Instantly share code, notes, and snippets.

@AskinNet
AskinNet / bash-guide-1.md
Created May 7, 2024 05:55 — forked from Titiaiev/bash-guide-1.md
шпаргалка по написанию bash скриптов, по ссылке - оригинальная статья на хабре

Бесплатная книга-сайт на русском, полный гайд
Advanced Bash-Scripting Guide

Введение

BASH — Bourne-Again SHell (что может переводится как «перерожденный шел», или «Снова шел Борна(создатель sh)»), самый популярный командный интерпретатор в юниксоподобных системах, в особенности в GNU/Linux. Ниже приведу ряд встроенных команд, которые мы будем использовать для создания своих скриптов.

>break выход из цикла for, while или until

@faizalmansor
faizalmansor / fix-install-opencode-with-npm-on-windows-powershell.md
Created August 29, 2026 13:30
Fail to install opencode-ai with npm on windows 11 powershell

If you encounter errors like these:

PS C:\Users\User> npm i -g opencode-ai

added 3 packages in 1m
npm warn install-scripts 1 package has install scripts not yet covered by allowScripts:
npm warn install-scripts   opencode-ai@1.18.25 (postinstall: node ./postinstall.mjs)
npm warn install-scripts
npm warn install-scripts Run `npm install -g --allow-scripts=opencode-ai` to allow these scripts once, or `npm config set allow-scripts=opencode-ai --location=user` to allow them for all global installs.
npm notice

Office 2021

Method 1: Using my command line

Step 1.1: Open cmd program with administrator rights.

  • First, you need to open cmd in the admin mode, then run all commands below one by one.

Step 1.2: Get into the Office directory in cmd.

  • For x86 and x64
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@jboner
jboner / latency.txt
Last active November 4, 2026 11:57
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012 except when noted)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@bcherny
bcherny / designing-data-intensive-application-notes.md
Last active November 4, 2026 10:03
Notes: Designing Data-Intensive Applications

Notes on Martin Kleppmann's excellent Designing Data-Intensive Applications.

Chapter 1: Reliable, Scalable, and Maintainable Applications

  • Data Systems
    • Dimensions to consider when thinking about data systems: access patterns, performance characteristics, implementations.
    • Modern data systems often blur the lines between databases, caches, streams, etc.
  • Reliability
    • Systems should perform the expected function at a given level of performance, and be tolerant to faults and user mistakes
  • Fault: One component of a system deviating from its spec. Prefer tolerating faults over preventing them (except for things like security issues). Faults stem from hardware failures, software failures, and human error (in a study, config errors caused most outages).
@bruxx-6243
bruxx-6243 / Atelier de débogage JavaScript — Task Manager.md
Last active November 4, 2026 10:47
Atelier de débogage JavaScript — Task Manager

🐞 Atelier de débogage JavaScript — Task Manager

Niveau : Débutant → Intermédiaire Langage : JavaScript Format : 5 exercices progressifs Thème : Identifier, comprendre et corriger les erreurs dans le code d'un gestionnaire de tâches


📌 Présentation

@MotherSphere
MotherSphere / nikke-pc-launcher-compromise.md
Last active November 4, 2026 13:56
NIKKE PC launcher compromise (Nov 2026): Level Infinite CDN files modified, remote-control agent, indicators

NIKKE PC launcher compromise (November 2026)

한국어 번역 (Korean translation): nikke-pc-launcher-compromise_ko.md

Caution

From 2026-09-27, four official JavaScript files on Level Infinite's CDN contained attacker code. The NIKKE PC launcher loads these files. From Oct 23 at the latest, opening the launcher could install a remote-control agent: while the launcher was open, the attacker could run any command on your machine, read any file and take screenshots.

Update, 2026-11-04 12:11 GMT: Level Infinite confirmed a fix on Nov 4 in a statement on X (see Summary). Three of the files were replaced on Nov 3 between 17:04 and 17:23 GMT. The fourth, FeedList.feb647c9.js, was cleaned at the origin on Oct 28, but some CDN servers kept the modified copy until Nov 4 between 03:12 and 03:21 GMT. On Nov 4 at 11:20 GMT all four files were clean on the four CDN servers checked. The attacker's server no longer answered at 18:31 GMT on Nov 3. None of

@miketartar
miketartar / ColdTurkeyBlockerActivator.py
Created September 26, 2020 04:21
Cold Turkey Blocker Activator
import json
import sqlite3
import os
DB_PATH = "C:/ProgramData/Cold Turkey/data-app.db"
def activate():
@NathanSebhastian
NathanSebhastian / settings.json
Created October 31, 2026 08:32
Omniroute Claude Code config
{
"maxEffortLevel": "medium",
"permissions": { "defaultMode": "acceptEdits" },
"env": {
"ANTHROPIC_BASE_URL": "http://localhost:20128",
"ANTHROPIC_AUTH_TOKEN": "YOUR OMNIROUTE API KEY",
"ANTHROPIC_API_KEY": "",
"ANTHROPIC_MODEL": "YOUR OMNIROUTE COMBO",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "YOUR OMNIROUTE COMBO",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "YOUR OMNIROUTE COMBO",