Skip to content

Instantly share code, notes, and snippets.

View ahlinc's full-sized avatar

Andrew Hlynskyi ahlinc

  • Ukraine, Kyiv
View GitHub Profile
@althonos
althonos / setup.cfg
Last active August 12, 2025 17:32
A `setup.cfg` template for my Python projects
# https://gist.github.com/althonos/6914b896789d3f2078d1e6237642c35c
[metadata]
name = {name}
version = file: {name}/_version.txt
author = Martin Larralde
author_email = martin.larralde@embl.de
url = https://github.com/althonos/{name}
description = {description}
long_description = file: README.md
@wanglf
wanglf / vscode-extension-offline.md
Last active March 3, 2026 13:28
Download VS Code extensions as VSIX

How to use?

  • Copy content of vsix-bookmarklet, create a bookmark in your browser.
  • Navigate to the web page of the VS Code extension you want to install.
  • Click the bookmark you just created, then click the download button.
    download
  • After download finished, rename the file extension to *.vsix.
  • In VS Code, select Install from VSIX... in the extension context menu.
    vsc
@chrisdone
chrisdone / gist:02e165a0004be33734ac2334f215380e
Last active March 1, 2026 08:52
Build and run minimal Linux / Busybox systems in Qemu

Common

export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS

Linux kernel

@ekreutz
ekreutz / ansible_variable_precedence.md
Last active November 20, 2025 23:25
Ansible variable precedence (order, hierarchy)
@parkovski
parkovski / 1-traits.cpp
Last active September 1, 2021 11:57
"Trait" vtables
#include <stdio.h>
class PartialEq {
public:
virtual bool eq(PartialEq *const) const = 0;
};
class PartialOrd {
public:
virtual int partial_cmp(PartialOrd *const) const = 0;
@StevenACoffman
StevenACoffman / _MicroService Proxy Gateway Solutions.md
Last active February 14, 2026 13:33
Microservice Proxy/Gateway Solutions

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from March 2, 2019

Originally, I had included some other solution

@reywood
reywood / how-to.md
Last active January 4, 2026 21:28
How to get a stack trace from a stuck/hanging python script

How to get a stack trace for each thread in a running python script

Sometimes a python script will simply hang forever with no indication of where things went wrong. Perhaps it's polling a service that will never return a value that allows the program to move forward. Here's a way to see where the program is currently stuck.

Install gdb and pyrasite

Install gdb.

# Redhat, CentOS, etc
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active March 1, 2026 16:31
Hyperlinks in Terminal Emulators
@joyrexus
joyrexus / README.md
Last active February 23, 2026 21:18
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")