Skip to content

Instantly share code, notes, and snippets.

@mmyjona
mmyjona / uwsgi_nginx_on_centos6.7.txt
Created April 23, 2016 05:15 — forked from ckandoth/uwsgi_nginx_on_centos6.7.txt
Set up nginx and uwsgi emperor on a CentOS 6.7 box
# 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:
@mmyjona
mmyjona / install-graphite-centos-6.5.sh
Created April 6, 2016 03:04 — forked from xluffy/install-graphite-centos-6.5.sh
install-graphite-centos-6.5.sh
#!/bin/bash
## Update system
cd
yum update -y
## Install base package
#!/bin/sh
# btsync service
# Replace with linux users you want to run BTSync clients for
BTSYNC_USERS="mendel"
DAEMON=/usr/bin/btsync
start() {
for btsuser in $BTSYNC_USERS; do
HOMEDIR=`getent passwd $btsuser | cut -d: -f6`
config=$HOMEDIR/.sync/config.json