Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Max Maintz Netznarkose

🎯
Focusing
  • 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
View vim-cheat-sheet.md

Modes

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.

Quitting

  • :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
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)/nvm.sh
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
Netznarkose / open_vims_command_history.md
Last active Mar 10, 2018
open command history #vim
View open_vims_command_history.md

Type q: from Normal-Mode

View escape_backticks_in_markdown.md

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

sudo usermod -a -G rvm `whoami`

stackoverflow_answer

@Netznarkose
Netznarkose / the_jorney.md
Created Mar 7, 2018
the whole journey #DevOps
View the_jorney.md
@Netznarkose
Netznarkose / create_a_deploy_user.md
Last active Mar 10, 2018
Create a deploy-user on unix #DevOps #edit
View create_a_deploy_user.md

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 https://gist.github.com/Netznarkose/098295c54b8b8bf402564fc7491e3eab

execute the shell-script

@Netznarkose
Netznarkose / rails_new_plus_version.md
Last active Mar 10, 2018
Create a new Rails App with specific Version #Rails #DevOps
View rails_new_plus_version.md

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.