Skip to content

Instantly share code, notes, and snippets.

View thiagozs's full-sized avatar
:octocat:
Have a nice day

Thiago Zilli Sarmento thiagozs

:octocat:
Have a nice day
View GitHub Profile
@tomassibek
tomassibek / boost_gmail.user.js
Created September 17, 2025 11:40
Boost for Gmail
// ==UserScript==
// @name GMAIL Boost
// @version 2025-09-17
// @description some GMAIL stuff i need (auto pop3 refresh on page load, unread mail badge icon support, dark header for pwa, css ui enhancements)
// @author Natrim / tomassibek
// @match https://mail.google.com/*
// @icon https://t3.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://mail.google.com&size=64
// @grant GM_addStyle
// ==/UserScript==
@nfrigus
nfrigus / README.md
Last active November 7, 2025 13:42
Userscripts

Userscripts Collection

This repository contains a collection of userscripts – small pieces of JavaScript that extend or modify the behavior of websites.
They can add missing features, improve usability, or automate repetitive tasks right in your browser.


What Are Userscripts?

Userscripts are custom scripts that run in your browser when you visit specific websites.

@fabiolimace
fabiolimace / hash-uniqueness.sh
Last active October 27, 2025 19:48
Hash Function Uniqueness and Collision
#!/bin/bash
# Calculates hash uniqueness.
#
# Usage:
#
# hash-uniqueness.sh PROGRAM LENGTH WINDOW
#
# hash-uniqueness.sh md5sum
#
@fabiolimace
fabiolimace / SHA-256 UUIDv8 and Tag URI.md
Last active October 27, 2025 19:48
SHA-256 UUIDv8 and Tag URI

SHA-256 UUIDv8 and Tag URI

SHA-256 UUIDv8

UUIDv8 is a UUID type defined by RFC 9562 that allows for customization.

Our custom UUIDs are generated by UUIDv8.generate() using SHA-256 hash algorithm.

@leandronsp
leandronsp / Dockerfile
Last active May 19, 2025 04:12
A multi-threaded web server in Assembly x86
FROM --platform=linux/amd64 ubuntu
RUN apt-get update
RUN apt-get install make binutils build-essential -y
RUN apt-get install nasm gdb strace -y
WORKDIR /app
@fabiolimace
fabiolimace / UUIDv7_SQLITE_VIEW.sql
Last active October 24, 2025 14:33
UUIDv7 for SQLite using view and triggers
DROP VIEW IF EXISTS uuid7;
CREATE VIEW uuid7 AS
WITH unixtime AS (
SELECT CAST((STRFTIME('%s') * 1000) + ((STRFTIME('%f') * 1000) % 1000) AS INTEGER) AS time
-- SELECT CAST((UNIXEPOCH('subsec') * 1000) AS INTEGER) AS time -- for SQLite v3.38.0 (2022)
)
SELECT PRINTF('%08x-%04x-%04x-%04x-%012x',
(select time from unixtime) >> 16,
(select time from unixtime) & 0xffff,
ABS(RANDOM()) % 0x0fff + 0x7000,
@nmvuong92
nmvuong92 / golang s3 download with progressbar.go
Last active September 26, 2024 12:09
golang s3 download with progressbar
package awss3
import (
"context"
"crypto/tls"
"fmt"
"io"
"net/http"
"os"
"path/filepath"
#!/bin/bash
PROXY=""
RELEASE_API="https://api.github.com/repos/librespeed/speedtest-go/releases/latest"
BIN_DST_DIR=/usr/local/bin
RESOURCE_DST_DIR=/usr/local/etc/speedtest-backend
function getReleaseInfo() {
response=$(curl ${RELEASE_API})
if [ $? == 0 ]; then
echo $response
@AndBondStyle
AndBondStyle / bluetooth-reconnect
Last active May 2, 2025 21:44
Simple linux service for brute-force bluetooth auto-connection
#!/bin/bash
# Miminum delay between iterations, in seconds
delay=10
# Pairs of [bluetooth MAC, test expression]
targets=(
"98:B6:E9:47:F0:4F" "test ! -e /dev/input/js0"
"98:B6:E9:72:6C:31" "test -z \"\$(bluetoothctl info 98:B6:E9:72:6C:31 | grep 'Connected: yes')\""
)