Skip to content

Instantly share code, notes, and snippets.

View jaumecapdevila's full-sized avatar
:octocat:
Wubba Lubba Dub-Dub

Jaume Capdevila jaumecapdevila

:octocat:
Wubba Lubba Dub-Dub
View GitHub Profile
@ellisonleao
ellisonleao / alacritty-tmux-vim_truecolor.md
Created November 4, 2021 23:13 — forked from andersevenrud/alacritty-tmux-vim_truecolor.md
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 when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Tested successfully in bash and zsh with latest packages from Arch Linux (with exception of neovim built from source):

  • 2019-07-07
  • 2021-08-07

Notes

  1. Don't use &t_8f, &t_8b and t_Co in your vim config
  2. Don't set $TERM in your zshrc, bashrc, etc. Configure this in your terminal (alacritty).
@bbqtd
bbqtd / macos-tmux-256color.md
Last active October 8, 2025 02:13
Installing tmux-256color for macOS

Installing tmux-256color for macOS

  • macOS 10.15.5
  • tmux 3.1b

macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.

The Fast Blazing Solution

Instead of tmux-256color, use screen-256color which comes with system. Place this command into ~/.tmux.conf or ~/.config/tmux/tmux.conf(for version 3.1 and later):

@gaearon
gaearon / modern_js.md
Last active September 27, 2025 02:50
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@wakumaku
wakumaku / docker_remove_containers_images.sh
Last active September 27, 2017 14:36
delete all docker containers and images
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# docker rm $(docker ps --filter=status=exited --filter=status=created -q)
# Delete all images
docker rmi $(docker images -q)
# Delete untagged images
# docker rmi $(docker images -f "dangling=true" -q)
# Delete all volumes
docker volume rm $(docker volume ls -f dangling=true -q)
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@XVilka
XVilka / TrueColour.md
Last active October 9, 2025 17:55
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!