Skip to content

Instantly share code, notes, and snippets.

View shackra's full-sized avatar

Jorge Araya Navarro shackra

View GitHub Profile
@shackra
shackra / .dir-locals.el
Last active April 20, 2026 23:17
My favorite dir-locals.el
;;; Directory Local Variables -*- no-byte-compile: t -*-
;;; For more information see (info "(emacs) Directory Variables")
((yaml-ts-mode . ((tab-width . 2)
(eglot-workspace-configuration
. (:yaml
(:format (:enable t)
:hover t
:completion t
:validate t
@shackra
shackra / gh-mentions.sh
Created March 12, 2026 22:44
List all comments mentioning you in any PR comment, within the last 3 days
gh api graphql -f query='
query {
search(query: "is:pr mentions:@me", type: ISSUE, first: 50) {
nodes {
... on PullRequest {
number
title
url
repository { nameWithOwner }
comments(last: 100) {
@shackra
shackra / flake.nix
Created March 12, 2026 02:33
go-sdl3 flake.nix without errors
# This flake was initially generated by fh, the CLI for FlakeHub (version 0.1.27)
{
# Flake inputs
inputs = {
flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/*";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
@shackra
shackra / 365 days of Bible Reading, one day per line.csv
Last active March 11, 2026 04:38
New Saint Thomas Institute’s Read the Bible in a Year For Catholics
Day First Reading Second Reading Third Reading
Jan 1 Gn 1-2 Ps 1 Mt 1
Jan 2 Gn 3-4 Ps 2 Mt 2
Jan 3 Gn 5-6 Ps 3 Mt 3
Jan 4 Gn 7-8 Ps 4 Mt 4
Jan 5 Gn 9-10 Ps 5 Mt 5:1-26
Jan 6 Gn 11-12 Ps 6 Mt 5:27-48
Jan 7 Gn 13-14 Ps 7 Mt 6:1-18
Jan 8 Gn 15-16 Ps 8 Mt 6:19-34
Jan 9 Gn 17-18 Ps 9 Mt 7
@shackra
shackra / genres.json
Created April 21, 2018 01:58
Video game genres
{
"__comment": "Took from http://tvtropes.org/pmwiki/pmwiki.php/Main/VideogameGenres you need to do the grouping in your script to combine the incompatible genres!",
"genres":
{
"Action-Adventure": "A game that combines parts from Adventure Games and Action Games together.",
"Metroidvania": "A game that combines parts from Adventure Action Games and Platform Games together. Features emphasis on exploring an interconnected environment and obtaining skills necessary to reach new areas of said environment.",
"Stealth-Based Game": "A game in which the player character must hide and sneak through the level while avoiding notice from much more powerful enemies that the player character cannot take head-on.",
"Survival Sandbox": "A game where the primary objective is to survive for as long as possible in a hostile environment. Also known as Survival Game.",
"Survival Horror": "A game that features overwhelmed protagonist(s), oppressive atmosphere based on Horror conventions and a need for c
@shackra
shackra / shell.nix
Created October 27, 2023 03:46
Flake for compiling Rust crates with dependencies on clang
let
nixpkgs-src = builtins.fetchTarball {
# 23.05
url = "https://github.com/NixOS/nixpkgs/archive/nixos-23.05.tar.gz";
};
pkgs = import nixpkgs-src {
config = {
# allowUnfree may be necessary for some packages, but in general you should not need it.
allowUnfree = false;
@shackra
shackra / Mail Archive - Dark Theme.js
Created August 6, 2025 08:52
GNU Mail Archive - Dark Theme
// ==UserScript==
// @name Mail Archive - Dark Theme
// @namespace https://chat.openai.com/
// @version 1.1
// @description Dark mode + better navigation for list.nongnu.org (MHonArc archives)
// @match https://lists.nongnu.org/archive/html/*
// @grant none
// ==/UserScript==
(function () {
@shackra
shackra / .clang-tidy
Created July 16, 2025 08:18
My fav clang-tidy config
Checks: >
-*,
bugprone-*,
cert-*,
concurrency-*,
cppcoreguidelines-*,
hicpp-*,
misc-*,
modernize-*,
performance-*,
@shackra
shackra / devenv.nix
Created June 7, 2025 03:02
ejemplo para proyecto frontend/backend
{
pkgs,
lib,
config,
inputs,
...
}:
{
# https://devenv.sh/basics/
@shackra
shackra / historico.csv
Created May 30, 2025 04:22
Historico del juego Lotto de la Junta de Protección Social
Sorteo Fecha Nº 1 Nº 2 Nº 3 Nº 4 Nº 5 Tipo Lotería Acumulado
1690 19/04/2022 12 27 26 25 20 Lotto 46000000.00
1691 19/04/2022 13 25 34 31 17 Lotto 25000000.00
1692 19/04/2022 26 24 13 21 0 Lotto 52700000.00
1693 25/04/2020 32 23 27 20 3 Lotto 25000000.00
1694 25/04/2020 4 13 26 19 20 Lotto 25000000.00
1695 25/04/2020 28 23 17 26 3 Lotto 55200000.00
1696 26/04/2020 32 14 2 5 31 Lotto 86300000.00
1697 26/04/2020 1 20 11 3 9 Lotto 25000000.00
1698 26/04/2020 24 26 1 20 11 Lotto 53200000.00