Skip to content

Instantly share code, notes, and snippets.

View awidegreen's full-sized avatar

Armin Widegreen awidegreen

View GitHub Profile
@awidegreen
awidegreen / vim_cheatsheet.md
Last active April 12, 2024 02:26
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@awidegreen
awidegreen / bash_template.sh
Created April 22, 2012 13:41
bash template
#!/bin/bash
scriptname="script_template"
### functions
function usage
{
echo -e "usage: $scriptname MANDATORY [OPTION]\n"
echo -e "MANDATORY mandatory parameter:"
echo -e " -m, --mandatory VAL The desc of the mandatory parameter\n"