Skip to content

Instantly share code, notes, and snippets.

View ivangabriele's full-sized avatar
🎼

Ivan Gabriele ivangabriele

🎼
View GitHub Profile
@ivangabriele
ivangabriele / OS Directories Cheat Sheet.md
Last active December 22, 2023 13:33
OS Directories Cheat Sheet

This cheat sheet covers the common directories in Linux, macOS, and Windows, highlighting their roles and differences.

Warning

This is a work in progress.


@ivangabriele
ivangabriele / README.md
Last active October 8, 2023 11:04
Full Ubuntu installation script for Kitty.

Full Ubuntu installation script for Kitty

Simply run:

curl -L https://gist.github.com/ivangabriele/5df77e2bf55352418704f45ce07323b8/raw/install_kitty.sh | bash /dev/stdin

You can see what my script does in install_kitty.sh.

@ivangabriele
ivangabriele / ivan.zsh-theme
Last active August 22, 2022 02:49
My custom Oh My Zsh Theme.
################################################################################
# Oh My Zsh Ivan Theme
# ------------------------------------------------------------------------------
# Constants
local _COLOR_BLUE="%{$fg[blue]%}"
local _COLOR_BLUE_BOLD="%{$fg_bold[blue]%}"
local _COLOR_CYAN="%{$fg[cyan]%}"
local _COLOR_CYAN_BOLD="%{$fg_bold[cyan]%}"
@ivangabriele
ivangabriele / self-signed-certificate-with-custom-ca.md
Last active June 14, 2022 08:31 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@ivangabriele
ivangabriele / isJwtValid.js
Created September 17, 2021 12:08
Verify a PS256 JWT in a browser environnent with a public RSA key.
import { parseJwk } from 'jose-browser-runtime/jwk/parse'
import { jwtVerify } from 'jose-browser-runtime/jwt/verify'
import { pem2jwk } from 'pem-jwk'
import handleError from './handleError'
/**
* Validate a JWT
*
* @param {string} token
@ivangabriele
ivangabriele / debian-raspberry-cheatsheet.md
Last active October 21, 2023 10:17
Debian Raspberry Audio, Bluetooth and MIDI (BLE MIDI) commands cheat sheet.

Audio

ALSA

Bluetooth

Debugging

Hardware

Awesome Monsieur Cuisine Connect Recipes

@ivangabriele
ivangabriele / config.yaml
Last active July 28, 2021 07:45
My custom Tabby configuration.
version: 3
terminal:
searchOptions: {}
colorScheme:
name: ayu
foreground: '#e6e1cf'
background: '#0f1419'
cursor: '#f29718'
colors:
- '#000000'
@ivangabriele
ivangabriele / .editorconfig
Last active July 4, 2020 23:09
My most common EditorConfig configuration.
# https://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 120
@ivangabriele
ivangabriele / nix-installation-and-running-on-macos-catalina.md
Last active February 4, 2020 23:17
Nix installation and running on macOS Catalina (10.15)

First Installation

Following this known issue:

  1. Run:
    echo 'nix' | sudo tee -a /etc/synthetic.conf
  2. Reboot
  3. Run: