Skip to content

Instantly share code, notes, and snippets.

@sakthivelsekar33
sakthivelsekar33 / init.lua
Created February 3, 2022 14:32
hammerspoon_config
hs.loadSpoon("ShiftIt")
spoon.ShiftIt:bindHotkeys({})
hs.hotkey.bind({"fn"}, "`", function()
hs.application.launchOrFocus('Alacritty')
end)
@sakthivelsekar33
sakthivelsekar33 / tmux.conf
Last active October 10, 2022 16:34
tmux configuration
unbind-key C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
@sakthivelsekar33
sakthivelsekar33 / mysql_dump
Last active October 13, 2015 01:28
Database dump and restore command
backup:
mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
restore:
mysql -u root -p[root_password] [database_name] < dumpfilename.sql
Fastest way to restore: