Skip to content

Instantly share code, notes, and snippets.


Max Maintz Netznarkose

  • Hamburg
Block or report user

Report or block Netznarkose

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile


Vim has two modes insertion mode and command mode. The editor begins in command mode, where the cursor movement and text deletion and pasting occur. Insertion mode begins upon entering an insertion or change command. [ESC] returns the editor to command mode (where you can quit, for example by typing :q!). Most commands execute as soon as you type them except for "colon" commands which execute when you press the ruturn key.


  • :x Exit, saving changes
  • :q Exit as long as there have been no changes
  • ZZ Exit and save changes if any have been made
  • :q! Exit and ignore any changes

Inserting Text

Netznarkose / install-nvm-zsh.txt
Created Aug 3, 2018 — forked from mike-casas/install-nvm-zsh.txt
install nvm on mac with zsh shell
View install-nvm-zsh.txt
After install zsh
- brew update
- brew install nvm
- mkdir ~/.nvm
after in your ~/.zshrc or in .bash_profile if your use bash shell:
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/
View gist:a6cae8d187d30e7cf5bd6cfb303cfffd

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
Netznarkose /
Last active Mar 10, 2018
open command history #vim

Type q: from Normal-Mode


wrap the command in double backticks, dont forget a whitespace when the escaped backtick is at the end

sudo usermod -a -G rvm `whoami`


Netznarkose /
Created Mar 7, 2018
the whole journey #DevOps
Netznarkose /
Last active Mar 10, 2018
Create a deploy-user on unix #DevOps #edit

SSH into your server with root

local: ssh root@ip

Install Git

root@ubuntu: apt-get install git

Clone this Gist

root@ubuntu: git clone

execute the shell-script

Netznarkose /
Last active Mar 10, 2018
Create a new Rails App with specific Version #Rails #DevOps

Check if Rais Version is installed

local: gem list | grep rails

if not, install it!

local: gem install rails -v 4.2.10

Create Rails App with specific Version

local: rails _4.2.10_ new myapp

You can’t perform that action at this time.