Skip to content

Instantly share code, notes, and snippets.

Learning continuously

Hasanul Islam mhihasan

Learning continuously
View GitHub Profile

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.

Effective Engineer - Notes

What's an Effective Engineer?

ckandoth / uwsgi_nginx_on_centos6.7.txt
Last active Aug 10, 2019
Set up nginx and uwsgi emperor on a CentOS 6.7 box
View uwsgi_nginx_on_centos6.7.txt
# GOAL: On a CentOS 6.7 minimal install, set up nginx as a reverse proxy to uWSGI Emperor with python 2.7.11 as a plugin to run Flask apps
# ::NOTE:: All instructions below are run as a sudoer, not as root. Talk to your sysadmins if you're not a sudoer.
# Install bare essentials:
sudo yum install -y epel-release
sudo yum groupinstall 'Development Tools'
sudo yum install -y vim openssl unzip nginx openssl-devel zlib-devel sqlite-devel bzip2-devel libffi-devel lapack-devel blas-devel libpng-devel freetype-devel
# Set SELINUX=disabled in the file below, and reboot, or this tutorial will get unnecessarily complicated:
joseluisq /
Last active Nov 15, 2018
window.FB extended class


window.FB extended class


// Initialize Facebook JSDK
var fb = new FBXnd({
  appId: 100000000000000,
caseydunham / uwsgi
Created Apr 1, 2015
Simple uWSGI CentOS 6 Init Script
View uwsgi
# uwsgi - This script starts and stops all configured uwsgi applications
# chkconfig: - 85 15
# description: uWSGI is a program to run applications adhering to the
# Web Server Gateway Interface.
# processname: uwsgi
# config: /etc/sysconfig/uwsgi
# pidfile: /var/run/
View pg_hba.conf
host all postgrex_md5_pw md5
host all postgrex_cleartext_pw password
# PostgreSQL Client Authentication Configuration File
# ===================================================
# Refer to the "Client Authentication" section in the PostgreSQL
# documentation for a complete description of this file. A short
# synopsis follows.
View gist:2597326

Moving from jQuery


// jQuery
$(document).ready(function() {
  // code
suda / gunicorn
Created Dec 20, 2010
Gunicorn init.d script (debian/ubuntu)
View gunicorn
# Provides: gunicorn
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the gunicorn server
# Description: starts gunicorn using start-stop-daemon