Skip to content

Instantly share code, notes, and snippets.

View cipherself's full-sized avatar

Mohamed Attia cipherself

View GitHub Profile
FROM pgvector/pgvector:pg17
RUN apt-get update && apt-get install -y libicu72 curl
RUN curl -L "https://github.com/paradedb/paradedb/releases/download/v0.20.3/postgresql-17-pg-search_0.20.3-1PARADEDB-bookworm_amd64.deb" -o /tmp/pg_search.deb
RUN apt-get -y remove curl
RUN dpkg -i /tmp/pg_search.deb
#!/usr/bin/env bash
set -e
service ssh start
exec "$@"

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))))))