Skip to content

Instantly share code, notes, and snippets.

View nmdra's full-sized avatar
🎯
Focusing

NIMENDRA nmdra

🎯
Focusing
View GitHub Profile
-- Global variable to store the initial state of night color
local night_color_was_enabled = false
local was_paused = false
-- Function to execute shell commands and capture output
local function execute_command(cmd)
local handle = io.popen(cmd)
local result = handle:read("*a")
handle:close()
return result:match("^%s*(.-)%s*$") -- Trim whitespace
@IanColdwater
IanColdwater / twittermute.txt
Last active October 13, 2024 04:40
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 November 13, 2024 05:31
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 November 15, 2024 16:02
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