Skip to content

Instantly share code, notes, and snippets.

View sciamp's full-sized avatar

Alessandro Campagni sciamp

View GitHub Profile
@sciamp
sciamp / alacritty-tmux-vim_truecolor.md
Created March 9, 2024 12:17 — 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
@sciamp
sciamp / keybase.md
Created October 5, 2020 15:43
keybase github proof

Keybase proof

I hereby claim:

  • I am sciamp on github.
  • I am sciamp (https://keybase.io/sciamp) on keybase.
  • I have a public key ASAEGW1o04PQ_7CmU3b5zVtVGz1ZduQm73Uv-Ne7b0vSego

To claim this, I am signing this object:

@sciamp
sciamp / build_pa_ldac.sh
Created May 1, 2020 11:26 — forked from notpushkin/build_pa_ldac.sh
pulseaudio-module-bluetooth with LDAC support for Ubuntu and (untested) Debian · https://files.catbox.moe/i1tsk1.deb
PULSE_VERSION="$(pkg-config libpulse --modversion)"
PACKAGE_DIR="$(mktemp -d)"
SRC_DIR="$(mktemp -d)"
if [[ "x${PULSE_VERSION}x" == "x11.1x" ]]; then
git clone --depth=1 --branch=pulseaudio_v11.x https://github.com/EHfive/pulseaudio-modules-bt.git "${SRC_DIR}"
else
git clone --depth=1 https://github.com/EHfive/pulseaudio-modules-bt.git "${SRC_DIR}"
fi
@sciamp
sciamp / pre-commit
Last active April 26, 2017 06:51 — forked from mileszs/pre-commit
Git pre-commit hook for prompting to remove binding.pry and debugger line.
#!/usr/bin/env ruby
hits = []
checks = {
#'_spec\.rb$' => ['focus:[:space:]*true'],
'\.(rb|erb)$' => ['binding\.pry', 'debugger']
}
# Find the names of all the filenames that have been (A)dded (C)opied or (M)odified
filenames = `git diff --cached --name-only --diff-filter=ACM`.split("\n")
@sciamp
sciamp / gist:6346724
Created August 26, 2013 21:12
this should work but it doesn't :(
#!/usr/bin/gjs
const Lang = imports.lang;
const Gtk = imports.gi.Gtk;
const Gio = imports.gi.Gio;
const Application = new Lang.Class({
Name: 'Demo async file write',
_init: function() {