Skip to content

Instantly share code, notes, and snippets.

View gam-phon's full-sized avatar

Yaser Alraddadi gam-phon

View GitHub Profile
@gam-phon
gam-phon / openerp-server.conf
Created August 25, 2014 10:11
openerp-server.conf
[options]
; This is the password that allows database operations:
admin_passwd = admin
db_host = localhost
db_port = 5432
db_user = username
db_password = password
addons_path = /opt/openerp/odoo/addons,/home/yaser/odoo/addons
;Log settings
logfile = /var/log/openerp/openerp-server.log
@gam-phon
gam-phon / .gitconfig
Last active December 15, 2015 14:39
Global git configuration.
[user]
name = Name
email = Email
[color]
ui = true
[github]
user = Username
@gam-phon
gam-phon / pelicanconf.py
Last active December 15, 2015 11:59
Pelican configuration.
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Yaser Alraddadi'
SITENAME = u"Yaser Alraddadi's Blog"
SITEURL = 'www.yr.sa'
TIMEZONE = 'Asia/Riyadh'
@gam-phon
gam-phon / apache2.conf
Last active December 15, 2015 11:38
Sample Apache2 configuration.
<VirtualHost *:80>
ServerName www.yr.com
ServerAdmin webmaster@yr.com
DocumentRoot /home/yaser/site-name/www
RewriteEngine on
ProxyPreserveHost On
RewriteCond $1 !^/(img|css|js|robots\.txt|media|static|s)/
RewriteRule ^(.*) http://localhost:8008$1 [P]
@gam-phon
gam-phon / supervisor.conf
Last active December 15, 2015 11:38
Sample Supervisor configuration.
[program:site_name]
directory=/home/yaser/django/site_name/site_name/
command=/home/yaser/env/bin/gunicorn apps.wsgi:application -b 127.0.0.1:8008
user=yaser
autostart=true
autorestart=true
redirect_stderr=True
environment=VAR1='', VAR2=''
@gam-phon
gam-phon / nginx_server.conf
Last active December 15, 2015 11:38
Sample Nginx configuration.
upstream app_servers {
server 127.0.0.1:8008;
}
server {
listen 80;
server_name www.yr.sa;
index index.html;
location = /favicon.ico {