Skip to content

Instantly share code, notes, and snippets.

View aswathkk's full-sized avatar

Aswath K aswathkk

View GitHub Profile
@aswathkk
aswathkk / setup.sh
Last active March 4, 2020 12:26
Setup my configs in CentOS
# For my own reference !!!
# Not for public use :p
sudo yum install -y zsh htop git
git clone https://github.com/aswathkk/dotfiles ~/.aswathkk_dotfile
cd ~/.aswathkk_dotfiles
git clone https://github.com/robbyrussell/oh-my-zsh.git .oh-my-zsh
echo -e "fpath+=(\"\$HOME/.zsh/pure\")\nsource ~/.aswathkk_dotfile/sourceme.sh" > ~/.zshrc
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.aswathkk_dotfile/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

Keybase proof

I hereby claim:

  • I am aswathkk on github.
  • I am aswathkk (https://keybase.io/aswathkk) on keybase.
  • I have a public key ASAC_UHZuWJvblTnLFbUihgTDYhcJkH4n1ZlZ7swxBCbOwo

To claim this, I am signing this object:

@aswathkk
aswathkk / macos_remap.sh
Created August 17, 2019 15:34
Remap CapsLock to ESC and ESC to CapsLock
# For MacOS > Sierra
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000029,"HIDKeyboardModifierMappingDst":0x700000039}]}'
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x700000029}]}'
@aswathkk
aswathkk / install-mosh
Last active March 4, 2020 11:08
True-color support in remote shell (CentOS 7 + mosh + tmux)
# Install Dependencies
sudo yum -y install autoconf automake make rpm-build rpmdevtools protobuf-compiler protobuf-devel libutempter-devel zlib-devel ncurses-devel openssh-clients perl-IO-Tty openssl-devel gcc gcc-c++
# Clone Mosh
git clone https://github.com/mobile-shell/mosh
cd mosh
./autogen.sh
./configure
make
sudo make install