Skip to content

Instantly share code, notes, and snippets.

View nmdra's full-sized avatar
🎯
Focusing

NIMENDRA nmdra

🎯
Focusing
View GitHub Profile
-- mpv script to manage the state of night color
-- Global variable to store the initial state of night color
local night_color_was_enabled = false
-- Function to execute shell commands and capture output
function execute_command(cmd)
local handle = io.popen(cmd)
local result = handle:read("*a")
handle:close()
@IanColdwater
IanColdwater / twittermute.txt
Last active July 2, 2024 02:25
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active July 19, 2024 17:36
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
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 22, 2024 06:03
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example