Skip to content

Instantly share code, notes, and snippets.

View cgiosy's full-sized avatar

cgiosy cgiosy

View GitHub Profile
@antfu
antfu / doc-table.md
Last active October 14, 2023 20:09
Doc Table in Markdown

Example

Name

Description


@derhuerst
derhuerst / 10-geekbench-6.md
Last active January 5, 2026 07:52
VPS price & performance comparison

Geekbench 6

product notes price (incl. VAT) dedic.? cores RAM SSD Yabs Geekbench ST Geekbench MT Geekbench version operating system date of benchmark
Hetzner CPX11 4,58€/m no 2 2GB 40GB - 1476/1496 2714/2732 Geekbench 6.3.0 Build 603408 (rosedale-main-build bca065a7d9) Ubuntu 22.04 2024-07-02
Hetzner CPX21 8,39€/m no 3 4GB 80GB - 1484/1474 3862/3792 Geekbench 6.3.0 Build 603408 (rosedale-main-build bca065a7d9) Ubuntu 22.04 2024-07-02
Hetzner CPX22 no IPv4
@FreddieOliveira
FreddieOliveira / docker.md
Last active January 8, 2026 22:00
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@sebmarkbage
sebmarkbage / WhyReact.md
Created September 4, 2019 20:33
Why is React doing this?

I heard some points of criticism to how React deals with reactivity and it's focus on "purity". It's interesting because there are really two approaches evolving. There's a mutable + change tracking approach and there's an immutability + referential equality testing approach. It's difficult to mix and match them when you build new features on top. So that's why React has been pushing a bit harder on immutability lately to be able to build on top of it. Both have various tradeoffs but others are doing good research in other areas, so we've decided to focus on this direction and see where it leads us.

I did want to address a few points that I didn't see get enough consideration around the tradeoffs. So here's a small brain dump.

"Compiled output results in smaller apps" - E.g. Svelte apps start smaller but the compiler output is 3-4x larger per component than the equivalent VDOM approach. This is mostly due to the code that is usually shared in the VDOM "VM" needs to be inlined into each component. The tr

@icchy
icchy / exp.c
Created September 2, 2019 00:30
Oneline Calc
123;
return 123;
}
extern void *opendir(const char *);
extern void *readdir(void *);
extern void *shmat(int, const void *, int);
typedef struct {
ino_t d_ino;
off_t d_off;
unsigned short d_reclen;
@sebmarkbage
sebmarkbage / Infrastructure.js
Last active February 26, 2025 13:57
SynchronousAsync.js
let cache = new Map();
let pending = new Map();
function fetchTextSync(url) {
if (cache.has(url)) {
return cache.get(url);
}
if (pending.has(url)) {
throw pending.get(url);
}
@arbv
arbv / IsBadMemPtr.c
Last active July 10, 2024 09:20
A safer replacement for the obsolete IsBadReadPtr() and IsBadWritePtr() WinAPI functions on top of VirtualQuery() which respects Windows guard pages and does not use SEH.
/*
Copyright (c) 2017,2020 Artem Boldariev <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files(the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions :
@jimmywarting
jimmywarting / readme.md
Last active December 15, 2025 13:53
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers