Skip to content

Instantly share code, notes, and snippets.

@cabecada
cabecada / gist:da8913830960a644755b18a02b65e184
Last active January 14, 2025 16:00
python postgres connection with retry example
#!/usr/bin/env python
#https://github.com/psycopg/psycopg2/issues/261
import psycopg2
ISOLEVEL = psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT
import time
@braindevices
braindevices / #btrfs benchmark for daily used desktop OS
Last active January 14, 2025 15:59
which file sytem to use for daily work? should we turn on btrfs compression?
#btrfs benchmark for daily used desktop OS
@lattner
lattner / TaskConcurrencyManifesto.md
Last active January 14, 2025 15:59
Swift Concurrency Manifesto
@0xdevalias
0xdevalias / _deobfuscating-unminifying-obfuscated-web-app-code.md
Last active January 14, 2025 15:59
Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code
@QWxleA
QWxleA / Readme.md
Last active January 14, 2025 15:59
Obsidian zotero template for use with "obsidian-zotero-integration" plugin

QWxlea's over-engineered zotero template

Faq

What are these %% begin id-pn2xitti%% and %% end id-pn2xitti %% and ^pn2xitti? These are the persistance-markers of the indivual highlights, and the reference-id to that highlight.

The markers are meant for the importer. It will skip all text within those markers, so they stay when updating a zotero-import. Removing a marked block does not work well, it will not be reimported. Don't know how to fix that. If you want to reimport a highlight-block, best is to change the highlight in zotero (for example change the color). This will update the id, and on the next import the new highlight will be imported.

The reference-id is used like this: [[@name-of-the-note#^pn2xitti]]

@VictorTaelin
VictorTaelin / equality_on_recursive_lambda_terms.md
Last active January 14, 2025 15:59
Equality on Recursive λ-Terms

A tricky problem in Type Theory has a short satisfactory solution. To check if two potentially recursive expressions are equal, first we take the weak head normal form of both sides, without unrolling fixed points. Then, we do:

(F . G) == (G . F)
------------------- Fix=Fix case: apply T6's Theorem
μk(F k) == μk(G k)

(F Y) == Y
------------- Fix=Val case: apply T6's Theorem
μk(F k) == Y
@staringispolite
staringispolite / asciiputsonglasses
Last active January 14, 2025 15:53
Ascii art sunglasses meme
Puts on glasses:
(•_•)
( •_•)>⌐■-■
(⌐■_■)
Takes off glasses ("mother of god..."):
(⌐■_■)
( •_•)>⌐■-■
@abobija
abobija / README.md
Created April 27, 2024 19:03
SmartConfig ESP32 with Flutter

This is demo project to show how to use the esp_smartconfig package in Flutter to provision ESP32 devices with smart phone.

Gist is follow-up to video:

YouTube video

@MrHallows
MrHallows / fastboot_help.md
Last active January 14, 2025 15:50
fastboot commands

Command:

$ fastboot help

Output:

usage: fastboot [OPTION...] COMMAND...

flashing: