Skip to content

Instantly share code, notes, and snippets.

View nlgthuan's full-sized avatar

thuan.ngo nlgthuan

View GitHub Profile
@nlgthuan
nlgthuan / .tmux.conf
Last active January 14, 2024 08:11
Add sessionizer and last session config
set -g mouse on
set -g history-limit 10000
setw -g mode-keys vi
unbind -T copy-mode-vi Space; #Default for begin-selection
unbind -T copy-mode-vi Enter; #Default for copy-selection
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
@nlgthuan
nlgthuan / .zshrc
Last active January 14, 2024 08:27
My minimal .zshrc file
export ZSH="/Users/thuanngo/.oh-my-zsh"
plugins=(
git
fzf-tab
zsh-autosuggestions
fast-syntax-highlighting
)
# Add z.sh
@nlgthuan
nlgthuan / bluetooth_toggle.sh
Created October 1, 2023 01:05
Script to toggle bluetooth off and on in MacOS using bluutil
#!/bin/bash
# Turn off Bluetooth
echo "🔄 Turning off Bluetooth..."
blueutil --power 0
if [ $? -eq 0 ]; then
echo "✅ Bluetooth has been turned off."
else
echo "❌ Failed to turn off Bluetooth."
exit 1
@nlgthuan
nlgthuan / .zshrc
Created January 17, 2023 12:24 — forked from bashbunni/.zshrc
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"