Skip to content

Instantly share code, notes, and snippets.

View rodmoioliveira's full-sized avatar

Rodolfo Mói rodmoioliveira

View GitHub Profile
@jauderho
jauderho / gist:5f73f16cac28669e56608be14c41006c
Last active March 13, 2026 11:31
HOWTO: Upgrade Raspberry Pi OS from Bookworm to Trixie
### WARNING: READ CAREFULLY BEFORE ATTEMPTING ###
#
# Officially, this is not recommended. YMMV
# https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/
#
# This mostly works if you are on 64bit. You are on your own if you are on 32bit or mixed 64/32bit
#
# Credit to anfractuosity and fgimenezm for figuring out additional details for kernels
#
@thesamesam
thesamesam / xz-backdoor.md
Last active March 9, 2026 22:51
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@rodmoioliveira
rodmoioliveira / performance_overview.md
Last active April 5, 2023 02:39
Performance Overview
 # generate index
bat performance_overview.md |
  rg '^#' |
  sd '#' '  -' |
  sd -- '-  ' '   ' |
  sd '(\w+.)' '[$1]' |
  sd '\]\[' '' |
  sd '(\w) (\w)' '$1-$2' |
 tr '[:upper:]' '[:lower:]' |
@bilalozdemir
bilalozdemir / main.rs
Created January 16, 2022 13:29
Binary Search Tree - Rust
#![allow(unused_variables, dead_code)]
use std::fmt::{Display, Formatter};
#[derive(Clone, PartialEq, Eq)]
struct BST {
key: String,
value: u64,
left: Box<Option<BST>>,
right: Box<Option<BST>>
@yokawasa
yokawasa / ghcr.md
Last active February 26, 2026 08:54
ghcr (GitHub Container Registry)

ghcr (GitHub Container Registry) quickstart

CLI

To push container images to ghcr, you need peronal access token (PAT) - see how to create PAT

  1. Get PAT (personal access token)

Personal Settings > Developer settings > Personal access tokens

@maratori
maratori / .golangci.yml
Last active February 10, 2026 18:11
Golden config for golangci-lint
# ==================================================================================================
#
# NOTICE
#
# This gist is no longer maintained. It was moved to repo:
#
# https://github.com/maratori/golangci-lint-config
#
# Full history and all v2 releases are preserved in the repo.
#
@zobayer1
zobayer1 / cron_job_checklist.md
Created November 22, 2020 15:43
WTF! My cron job doesn't run?!$#%

WTF??? My cron job doesn't run?!$#%

Source: This SO Answer

Here's a checklist guide to debug not running cronjobs:

  • Is the Cron daemon running?
    • Run ps ax | grep cron and look for cron.
  • Debian: service cron status, if not running, service cron start or service cron restart
@hansbugge
hansbugge / lint.clj
Created September 26, 2020 10:34
Code Quality report for Clojure projects in Gitlab using babashka and clj-kondo.
#!/usr/bin/env bb
(ns script
"Make a 'Code Quality' report from clj-kondo for use in GitLab CI.
JSON issue format:
https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html#implementing-a-custom-tool
Usage:
Add the following job in .gitlab-ci.yml:
@kevinmoran
kevinmoran / Programming Wisdom.md
Last active May 20, 2024 11:45
List of useful programming resources I've found
@dudochkin-victor
dudochkin-victor / fssse.go
Last active May 5, 2023 13:33
fasthttp sse
package main
import (
"bufio"
"fmt"
"log"
"time"
"github.com/valyala/fasthttp"
)