Skip to content

Instantly share code, notes, and snippets.

@reyman
reyman / constants.py
Created October 5, 2013 09:56
roguelike game example with problem of fitting
cBlack = 0,0,0
cWhite = 255,255,255
cGrey = 150,150,0
cGreen = 0,128,0
cDark = 0,120,200
cRed = 255,0,0
cEmpty = 0
cWall = -1
@reyman
reyman / example.python
Created October 25, 2013 09:58
hello world
print "hello world"
from __future__ import absolute_import
# Django settings for zulip project.
########################################################################
# Here's how settings for the Zulip project work:
#
# * settings.py contains non-site-specific and settings configuration
# for the Zulip Django app.
# * settings.py imports local_settings.py, and any site-specific configuration
# belongs there. The template for local_settings.py is local_settings_template.py
########################################################################
# Settings for Zulip Voyager
### MANDATORY SETTINGS
#
# These settings MUST be set in production. In a development environment,
# sensible default values will be used.
# The user-accessible Zulip hostname for this installation, e.g.
# zulip.example.com
EXTERNAL_HOST = 'zulip.example.com'
from __future__ import absolute_import
# Django settings for zulip project.
########################################################################
# Here's how settings for the Zulip project work:
#
# * settings.py contains non-site-specific and settings configuration
# for the Zulip Django app.
# * settings.py imports local_settings.py, and any site-specific configuration
# belongs there. The template for local_settings.py is local_settings_template.py
########################################################################
# Settings for Zulip Voyager
### MANDATORY SETTINGS
#
# These settings MUST be set in production. In a development environment,
# sensible default values will be used.
# The user-accessible Zulip hostname for this installation, e.g.
# zulip.example.com
EXTERNAL_HOST = 'zulip.example.com'
# Settings for Zulip Voyager
### MANDATORY SETTINGS
#
# These settings MUST be set in production. In a development environment,
# sensible default values will be used.
# The user-accessible Zulip hostname for this installation, e.g.
# zulip.example.com
EXTERNAL_HOST = 'zulip.example.com'
from __future__ import absolute_import
# Django settings for zulip project.
########################################################################
# Here's how settings for the Zulip project work:
#
# * settings.py contains non-site-specific and settings configuration
# for the Zulip Django app.
# * settings.py imports local_settings.py, and any site-specific configuration
# belongs there. The template for local_settings.py is local_settings_template.py
########################################################################
➜ zulip ls -ahl
total 24K
drwxr-xr-x 6 root root 4,0K mars 26 19:55 .
drwxr-xr-x 5 root root 4,0K mars 26 19:55 ..
drwxr-xr-x 2 root root 4,0K mars 26 19:55 backups
drwxr-xr-x 2 root root 4,0K mars 26 19:55 certs
drwxr-xr-x 2 root root 4,0K mars 26 19:55 settings
drwxr-xr-x 2 reyman reyman 4,0K mars 26 19:55 uploads
➜ zulip tree --noreport -fp
database:
image: "quay.io/galexrt/zulip-postgresql-tsearchextras:latest"
environment:
DB_NAME: zulip
DB_USER: zulip
DB_PASS: zulip
volumes:
- "/opt/docker/zulip/postgresql/data:/var/lib/postgresql:rw"
memcached:
image: "quay.io/sameersbn/memcached:latest"