Skip to content

Instantly share code, notes, and snippets.

View illiafox's full-sized avatar

Illia Dymura illiafox

View GitHub Profile
@zchee
zchee / cgo.md
Last active June 20, 2025 08:51
cgo convert list

See also, http://libraryofalexandria.io/cgo/

Using Go cgo

cgo has a lot of trap.
but Not "C" pkg also directory in $GOROOT/src. IDE's(vim) Goto command not works.

So, Here collect materials.

@zmts
zmts / tokens.md
Last active July 19, 2026 09:57
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@asukakenji
asukakenji / 0-go-os-arch.md
Last active June 5, 2026 16:29
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android
@JuneKelly
JuneKelly / BaselineTest.txt
Created December 12, 2017 13:45
Full text of the Baseline Test from Blade Runner 2049
A blood black nothingness began to spin.
Began to spin.
Let's move on to system.
System.
Feel that in your body.
@michaelbutler
michaelbutler / Steam_Proton_Exe.md
Last active May 27, 2026 12:50
How to run another .exe in an existing proton wine prefix

Running games through Steam's Proton is great. But what if there is a secondary exe or configuration application bundled with the game? How can you launch it if Steam itself only launches the game?

Simply run this command in a terminal:

cd /path/to/steam/steamapps/compatdata/20920/pfx

STEAM_COMPAT_DATA_PATH="/path/to/steam/steamapps/compatdata/20920" WINEPREFIX=$PWD \
    "$HOME/.steam/root/steamapps/common/Proton 5.0/proton" run ./drive_c/path/to/custom_application.exe
@r3code
r3code / distributed-monolith-vs-microservices-ru.md
Last active October 25, 2025 14:50
Распределенный монолит и микросервисы (чеклист)

Чеклист "Мои микросервисы - это распределенный монолит?"

Из статьи You're not actually building microservices

Проверка на симптомы

Итак, вы создаете микросервисы?
Взгляните на некоторые из этих симптомов и проставьте галочки, где вы согласны:

  • Изменение одного микросервиса часто требует изменений в других микросервисах (сильная связанность)

Poor Man's Global Traffic Manager

Sometimes we need to add redundancy to some service or server which happen to be a public-facing entry point of our infrastructure. For example, imagine we want to add a high availability pair for a load balancer which sits on the edge of network and forwards traffic to alive backend servers.

                                             ┌─────────────┐
                                             │             │
                                      ┌─────►│  Backend 1  │
                                      │      │             │
                                      │      └─────────────┘
@dawetmaster
dawetmaster / cloudflare-opensuse.md
Last active October 25, 2025 16:32
Make Cloudflare-WARP work on RPM-based systems other than RHEL-based distro

Install notes

  • For OpenSUSE, install the RPM package from Cloudflare for CentOS using zypper. When asked, type 2.
  • For Fedora, just install the RPM package from Cloudflare, select the Fedora 35 rpm. It is still compatible with Fedora 42, perhaps 43, but the desktop UI does not work when the system uses KDE (Gnome was untested).

How to get the package

Go to this link: https://developers.cloudflare.com/cloudflare-one/team-and-resources/devices/warp/download-warp/#linux

For Fedora users, select Fedora 35 package.

@DavidBuchanan314
DavidBuchanan314 / NWSL.TXT
Last active July 9, 2026 11:31
I think this is functionally MIT-equivalent but I am not a lawyer!
NUCLEAR WASTE SOFTWARE LICENSE V1.0
Copyright <YEAR> <OWNER>
This software license is a message... and part of a system of messages...
pay attention to it! Writing this software and associated documentation
files (the "Software") was important to us. We considered ourselves to be a
powerful culture. This Software is not a place of honor... no highly
esteemed deed is commemorated here... nothing valued is here. What is here was
dangerous and repulsive to us. This message is a warning about danger. The
@mymmrac
mymmrac / listener.go
Created July 4, 2025 11:16
Fiber example with proper context cancel
package http
import (
"net"
"sync"
)
// listen is a wrapper over [net.Listener]
type listen struct {
net.Listener