Skip to content

Instantly share code, notes, and snippets.

View korchasa's full-sized avatar
💭
(╯°□°)╯︵ ┻━┻

Stanislav Korchagin korchasa

💭
(╯°□°)╯︵ ┻━┻
View GitHub Profile
@korchasa
korchasa / gods_en.md
Created March 24, 2025 19:48
Framework GODS: Clear and Precise Task Setting

Framework GODS: Clear and Precise Task Setting

What is GODS?

The framework helps to formulate tasks in a way that avoids misunderstandings between the "client" and the "executor":

  • Helps to clearly articulate the goal, context, and criteria for task completion.
  • Makes the task transparent and understandable for executors and clients.
  • Suitable for tasks with predictable cycles and measurable results.
  • Does not replace flexible processes in research, innovation, or dynamic projects.
@jango-blockchained
jango-blockchained / .cursorrules
Last active April 5, 2025 20:13
Advanced Structured XML .cursorrules
<?xml version="1.0" encoding="UTF-8"?>
<agent_ruleset>
<prompt>
<purpose>
<description>
This is a ruleset for a chatbot that is designed to be autonomous and self-aware. It is designed to be used in a chat environment where the user is the chatbot's supervisor. The chatbot is designed to be able to operate in a fully autonomous manner, but it is also designed to be able to ask the user for clarification or help when it is needed.
</description>
</purpose>
</prompt>
@jpswade
jpswade / devops_best_practices.md
Last active April 30, 2025 14:27
Devops Best Practices Checklist

Find the original here article here: Devops Best Practices

DevOps started out as "Agile Systems Administration". In 2008, at the Agile Conference in Toronto, Andrew Shafer posted an offer to moderate an ad hoc "Birds of a Feather" meeting to discuss the topic of "Agile Infrastructure". Only one person showed up to discuss the topic: Patrick Debois. Their discussions and sharing of ideas with others advanced the concept of "agile systems administration". Debois and Shafer formed an Agile Systems Administrator group on Google, with limited success. Patrick Debois did a presentation called "Infrastructure and Operations" addressing

@excavador
excavador / README.md
Last active November 6, 2022 21:48
automatically add alias ip address to loopback

Motivation

You often have several docker containers and applications which work together in the locel development environment. You need the following communications:

  • docker container to localhost
  • localhost to docker container
  • docker container to docker container

You have a way to connect localhost-to-docker using -p (port-mapping) docker option. For instance, you can start PostgreSQL container using -p 0.0.0.0:5432:5432 and then connect like to normal PostgreSQL

@meetmatt
meetmatt / gist:d5dd2ecae37fbabb483dffba2d6dbec6
Created November 3, 2016 13:33
Show installed packages reverse sorted by size in alpine
apk info | xargs -n1 -I{} apk info -s {} | xargs -n4 | awk '{print $4,$1}' | sort -rn
@blixt
blixt / prng.js
Last active March 30, 2025 04:16
A very simple, seedable JavaScript PRNG. NOTE: Please read comments on why this is not a good choice.
// NOTICE 2020-04-18
// Please see the comments below about why this is not a great PRNG.
// Read summary by @bryc here:
// https://github.com/bryc/code/blob/master/jshash/PRNGs.md
// Have a look at js-arbit which uses Alea:
// https://github.com/blixt/js-arbit
/**
@markselby
markselby / nginx-openresty-ubuntu-build-dependencies.sh
Last active July 26, 2018 08:35
Build Nginx OpenResty version on Ubuntu.This is part of the high performance caching blog on writebox.co.uk
# Build dependencies for OpenResty.
sudo apt-get install build-essential libpcre3-dev libssl-dev libgeoip-dev
# Install standard Nginx first so that you get the relevant service scripts installed too
sudo apt-get install nginx
# If you want to access Postgres via Nginx
sudo apt-get install libpq-dev
@jboner
jboner / latency.txt
Last active May 13, 2025 17:54
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
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