Skip to content

Instantly share code, notes, and snippets.

@simplay
Last active April 5, 2017 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simplay/70e244c4b82afff338a972461560aa2b to your computer and use it in GitHub Desktop.
Save simplay/70e244c4b82afff338a972461560aa2b to your computer and use it in GitHub Desktop.
  • Set Caps to Ctrl:
setxkbmap -layout ch -option ctrl:nocaps
sudo vim /etc/default/keyboard and change XKBOPTIONS="ctrl:nocaps"

install shutter

sudo add-apt-repository ppa:shutter/ppa
sudo apt-get update
sudo apt-get install shutter
system-config-printer
sudo vim /etc/rc.local

Don't forget to kill pigeon every now and then... XD

ps aux | grep pigeon | awk '{print $2}' | xargs kill

Allow to index custom shell scripts:

  1. create a directory to store your scripts: mkdir ~/bin
  2. Add PATH=~/bin:$PATH to ~/.bashrc, ~/.zshrc or ~/.bash_profile files.
  3. Create ~/bin/foobar :
#!/usr/bin/env bash
/PATH/TO/A/FANCY/SCRIPT/SCRIPT_NAME OPTIONS

github ssh:

  1. Start ssh agent: eval "$(ssh-agent -s)"
  2. Add ssh key to agent: ssh-add ~/.ssh/id_rsa

Add custom host urls

edit /etc/hosts/
1.2.3.4 foobar.barbaz.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment