Skip to content

Instantly share code, notes, and snippets.

Avatar

Aleksandr Sobolev s0b0lev

View GitHub Profile
View gist:0733a36e597c7c9b7b06668746a8fdd5
### Keybase proof
I hereby claim:
* I am s0b0lev on github.
* I am s0b0lev (https://keybase.io/s0b0lev) on keybase.
* I have a public key ASCwDOGma2aKpfI1b7dPO8XRWl5M0KdeFSqgcwl_-pXFigo
To claim this, I am signing this object:
View keybase.md

Keybase proof

I hereby claim:

  • I am s0b0lev on github.
  • I am as0b0lev (https://keybase.io/as0b0lev) on keybase.
  • I have a public key ASAWXe5PhMxV5oB6hXQ3QuHmO8kjo-6VPKdkFwVHQVPnWQo

To claim this, I am signing this object:

@s0b0lev
s0b0lev / postgres-cheatsheet.md
Created Feb 27, 2017 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet
View postgres-cheatsheet.md

PSQL

Magic words:

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*

@s0b0lev
s0b0lev / xvfb
Last active Aug 29, 2015 — forked from jterrace/xvfb
View xvfb
XVFB=/usr/bin/Xvfb
XVFBARGS=":1 -screen 0 1024x768x24 -ac +extension GLX +render -noreset"
PIDFILE=/var/run/xvfb.pid
case "$1" in
start)
echo -n "Starting virtual X frame buffer: Xvfb"
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $XVFB -- $XVFBARGS
echo "."
;;
stop)
View djanog-celery-and-redis-on-osx-lion.md

Django-celery + Redis notes

Installation and Setup

  1. Install redis on OSX (10.7) Lion I used:

     $ brew install redis
    
  2. In the project and virtualenv I wanted to use django-celery in I installed the following.

View frontendDevlopmentBookmarks.md