Skip to content

Instantly share code, notes, and snippets.

View cipherself's full-sized avatar
🛠️

Mohamed Attia cipherself

🛠️
View GitHub Profile

Docker

Build image from dockerfile

docker build PATH

List images

docker images

List running containers

docker ps

@cipherself
cipherself / south_cheatsheet.md
Last active August 29, 2015 14:04
South cheatsheet

South

Initial app migration

./manage.py schemamigration myapp --initial

Common migrations

@cipherself
cipherself / vim_plugins.md
Created July 21, 2014 08:31
Cheatsheet of my commonly used vim plugins

CtrlP

Basic Usage

  • Run :CtrlP or :CtrlP [starting-directory] to invoke CtrlP in find file mode.
  • Run :CtrlPBuffer or :CtrlPMRU to invoke CtrlP in find buffer or find MRU file mode.
  • Run :CtrlPMixed to search in Files, Buffers and MRU files at the same time.

Check :help ctrlp-commands and :help ctrlp-extensions for other commands.

Once CtrlP is open:
(define (fib n)
(cond ((= n 0) 0)
((= n 1) 1)
(else (+ (fib (- n 1))
(fib (- n 2))))))