Skip to content

Instantly share code, notes, and snippets.

Avatar

Yaser Alraddadi gam-phon

View GitHub Profile
View 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 / nginx_server.conf
Last active Dec 15, 2015
Sample Nginx configuration.
View nginx_server.conf
upstream app_servers {
server 127.0.0.1:8008;
}
server {
listen 80;
server_name www.yr.sa;
index index.html;
location = /favicon.ico {
@gam-phon
gam-phon / supervisor.conf
Last active Dec 15, 2015
Sample Supervisor configuration.
View supervisor.conf
[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 / apache2.conf
Last active Dec 15, 2015
Sample Apache2 configuration.
View apache2.conf
<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 / pelicanconf.py
Last active Dec 15, 2015
Pelican configuration.
View pelicanconf.py
#!/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 / .gitconfig
Last active Dec 15, 2015
Global git configuration.
View .gitconfig
[user]
name = Name
email = Email
[color]
ui = true
[github]
user = Username
View backend-architectures.md
@gam-phon
gam-phon / iptables_rules.sh
Created Mar 20, 2017 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
View iptables_rules.sh
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
@gam-phon
gam-phon / kubedingdong.md
Created Jul 17, 2018 — forked from herpiko/kubedingdong.md
Kubernetes notes for CKA exam preparation 💪
View kubedingdong.md

This notes applied to Kubernetes version 1.9.1-00 on Ubuntu Xenial.

Basic concept

TO BE WRITTEN

Installation and starting up 🏁

Installation

  • Swap should be disabled (see /etc/fstab)
@gam-phon
gam-phon / .gitignore
Last active Oct 15, 2018 — forked from x3rAx/.gitignore
Gitignore with .gitkeep
View .gitignore
# +----------------------------+
# | IDE files |
# +----------------------------+
/.idea
# +----------------------------+
# | Vagrant |
# +----------------------------+
/.vagrant