Skip to content

Instantly share code, notes, and snippets.

sed -i 's/userapp-Pale Moon\.desktop/firefox\.desktop/g' ~/.config/mimeapps.list
sed -i 's/palemoon/firefox/g' ~/.profile
@nnungest
nnungest / keybase.md
Created January 10, 2019 19:05
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 January 5, 2019 20:14
linux keyboard mapping for 60% , emacs / vim friendly
#!/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 September 20, 2018 14:14
Cheat.sh wrapper
#!/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 March 5, 2018 16:38
Install Vim 8 with Python, Python 3, Ruby and Lua support on Ubuntu 16.04
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 ~