Skip to content

Instantly share code, notes, and snippets.

View Emille1723's full-sized avatar
🎯
Focusing

Emille Henry Emille1723

🎯
Focusing
  • Trinidad and Tobago
View GitHub Profile
@Emille1723
Emille1723 / alacritty-tmux-vim_truecolor.md
Created January 10, 2026 21:24 — forked from andersevenrud/alacritty-tmux-vim_truecolor.md
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@Emille1723
Emille1723 / reverttowsl1.md
Created January 9, 2026 23:17 — forked from plembo/reverttowsl1.md
Revert to WSL 1

Revert to WSL 1 from WSL 2

I'll spare everyone the rant. This gist will be an all business how to revert to WSL (Windows Subsystem for Linux) on Windows 10 from version 2 back to version 1.

Note that enabling Hyper-V destabilized the (highly managed) system my company provides me. This is probably unique to the image used for the machine and the updates that base has received. So I'm not surprised by the issues people are having with Hyper-V and the Virtual Machine Platform.

My personal Windows virtual machines remain on WSL 1 because I just don't have the energy to deal with all the drama when I've already put in a full shift at work.

@Emille1723
Emille1723 / ANSI.md
Created September 24, 2025 01:50 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@Emille1723
Emille1723 / copy_mode_with_line_numbers.sh
Created May 22, 2025 02:30 — forked from Nimmidev/copy_mode_with_line_numbers.sh
tmux copy mode with line numbers
#!/bin/sh
declare -r LINE_NUMBER_PANE_WIDTH=3
declare -r LINE_NUMBER_UPDATE_DELAY=0.1
declare -r COLOR_NUMBERS_RGB="101;112;161"
declare -r COLOR_ACTIVE_NUMBER_RGB="255;158;100"
open_line_number_split(){
local self_path=$(realpath $0)
local pane_id=$(tmux display-message -pF "#{pane_id}")
@Emille1723
Emille1723 / check-git-2.sh
Created May 20, 2025 13:58 — forked from brettinternet/check-git-2.sh
Check if directory is a git repo or not
# from https://stackoverflow.com/questions/2180270/check-if-current-directory-is-a-git-repository
[ -d .git ] || git rev-parse --git-dir > /dev/null 2>&1
@Emille1723
Emille1723 / git-commit-styleguide.md
Created May 8, 2025 03:04 — forked from rishavpandey43/git-commit-styleguide.md
This gist consist of the rules and best practice of good conventional git commit message

Git Commit Messages Style-Guides

  • Use the present tense ("Add feature" not "Added feature")
  • Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
  • Limit the first line to 72 characters or less
  • Reference issues and pull requests liberally after the first line
  • When only changing documentation, include [ci skip] in the commit title
  • Consider starting the commit message with an applicable emoji

Types

function git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return;
echo "("${ref#refs/heads/}") ";
}
function git_since_last_commit {
now=`date +%s`;
last_commit=$(git log --pretty=format:%at -1 2> /dev/null) || return;
seconds_since_last_commit=$((now-last_commit));
minutes_since_last_commit=$((seconds_since_last_commit/60));
@Emille1723
Emille1723 / clean-up-arch-linux.md
Created October 30, 2024 03:47 — forked from rumansaleem/clean-up-arch-linux.md
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@Emille1723
Emille1723 / encryption_files.md
Created October 21, 2024 13:30 — forked from sinarueeger/encryption_files.md
Instructions on how to encrypt your documents and share them with collaborators

Getting started with encryption of documents

What is the problem

If you work with sensitive (human) data (e.g. anything that contains an identifier of an individual), you occasionally want to share that data. The most straightforward way to do so is to send them by email (and yes - we are all guilty of that!). The problem arises, if the data get into wrong hands. Let's say you send the email accidentally to the wrong person. Or worse, without your knowledge, the email gets into the wrong hands.

The good news is, that there is a secure & handy solution for this. But let's first have a look at some other solutions.

What about dropbox and other file hosting systems? ❌

@Emille1723
Emille1723 / CMD.md
Created August 25, 2024 22:37 — forked from OXY2DEV/CMD.md

πŸ”° A beginners guide to create custom cmdline

showcase

Ever wanted to know how noice creates the cmdline or wanted your own one?

No one? Guess it's just me πŸ₯².

Anyway, this post is a simple tutorial for creating a basic cmdline in neovim.