Skip to content

Instantly share code, notes, and snippets.

View set firefox instead of palemoon for i3 manjaro
sed -i 's/userapp-Pale Moon\.desktop/firefox\.desktop/g' ~/.config/mimeapps.list
sed -i 's/palemoon/firefox/g' ~/.profile
View keybase.md

Keybase proof

I hereby claim:

  • I am nnungest on github.
  • I am nnungest (https://keybase.io/nnungest) on keybase.
  • I have a public key ASCieq1boPj_bRW5Zga9_dCj9-PswI-fC2uVtiiLLknJnAo

To claim this, I am signing this object:

@nnungest
nnungest / kbd-swap.sh
Created Jan 5, 2019
linux keyboard mapping for 60% , emacs / vim friendly
View kbd-swap.sh
#!/bin/bash
# 60% keyboard setup
# the most crucial part is running an empty -option which clears the config. enjoy!
# remap caps key as escape
# remap escape key to give you your backticks again
function code_keys () {
setxkbmap -option
setxkbmap -option ",caps:escape"
@nnungest
nnungest / cheat
Created Sep 20, 2018
Cheat.sh wrapper
View cheat
#!/bin/bash
# see https://github.com/chubin info on his http service
# -----
# this allows you to: `cheat lolcat`
# which pipes it to less for you to read
cheat (){
curl -s cheat.sh/$1 2>&1 | less -R
}
@nnungest
nnungest / gist:b27432c073051b516244f704fdf0f802
Created Mar 5, 2018
Install Vim 8 with Python, Python 3, Ruby and Lua support on Ubuntu 16.04
View gist:b27432c073051b516244f704fdf0f802
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
#Optional: so vim can be uninstalled again via `dpkg -r vim`
sudo apt-get install checkinstall
sudo rm -rf /usr/local/share/vim /usr/bin/vim
cd ~