Skip to content

Instantly share code, notes, and snippets.

@muturgan
muturgan / UUIDv6.sql
Created November 17, 2024 13:46 — forked from fabiolimace/UUIDv6.sql
Functions for generating UUIDv6 and UUIDv7 on PostgreSQL
/*
* MIT License
*
* Copyright (c) 2023-2024 Fabio Lima
*
* 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
{"schemaVersion":1,"label":"coverage","message":"100%","color":"green","namedLogo":"mocha","logoColor":"white"}
@muturgan
muturgan / nginx.txt
Last active May 18, 2022 10:17
Сборка nginx с поддержкой brotli и свежей версией openssl
01) устанавливаем nginx обычным образом, чтобы создались дефолтные конфиги
02) скачиваем исходники nginx со страницы https://nginx.org/en/download.html; распаковываем (tar -xvf)
03) скачиваем исходники openssl со страницы https://www.openssl.org/source; распаковываем (tar -xvf)
note: обычно исходники скачивают в /usr/local/src/
04) клонируем репозиторий https://github.com/google/ngx_brotli
05) в папке ngx_brotli инициализируем субмодули командой (git submodule update --init)
node: позже обновить субмодули можно командой git submodule update --recursive
06) проверяем что для nginx указан репозиторий пакетов для сборки
- открываем /etc/apt/sources.list.d/nginx.list
- если нет строчки, которая начинается на deb-src, то скопируйте строчку которая начинается с deb и допишите -src
@muturgan
muturgan / fev_coverage.json
Last active November 6, 2025 14:39
Coverage Budge Gist
{"schemaVersion":1,"label":"coverage","message":"83.72%","color":"green","namedLogo":"mocha","logoColor":"white"}