Skip to content

Instantly share code, notes, and snippets.

Avatar
🛠️
I may be slow to respond.

Mohamed Attia muattiyah

🛠️
I may be slow to respond.
View GitHub Profile
View Fibonacci.scm
(define (fib n)
(cond ((= n 0) 0)
((= n 1) 1)
(else (+ (fib (- n 1))
(fib (- n 2))))))
@muattiyah
muattiyah / vim_plugins.md
Created Jul 21, 2014
Cheatsheet of my commonly used vim plugins
View vim_plugins.md

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:
View south_cheatsheet.md

South

Initial app migration

./manage.py schemamigration myapp --initial

Common migrations

View Docker.md

Docker

Build image from dockerfile

docker build PATH

List images

docker images

List running containers

docker ps