Skip to content

Instantly share code, notes, and snippets.

View silpol's full-sized avatar
🏠
Email is best comm tool.

Andriy Tymchenko silpol

🏠
Email is best comm tool.
View GitHub Profile
@silpol
silpol / uwsgi.conf
Last active August 28, 2015 09:29 — forked from woodb/uwsgi.conf
Configuration file for uWSGI
description "uWSGI"
start on runlevel [2345]
stop on runlevel [06]
respawn
env UWSGI=/usr/bin/uwsgi
env LOGTO=/var/log/uwsgi/emperor.log
exec $UWSGI --master --emperor /etc/uwsgi/apps-enabled --die-on-term --uid nginx --gid nginx --logto $LOGTO
@silpol
silpol / setup_flask_and_friends.sh
Last active August 28, 2015 09:35 — forked from woodb/setup_flask_and_friends.sh
Shell script to get setup with Flask, nginx and uWSGI on an Amazon EC2 Linux image
#!/bin/bash
#
# Shell script to automatically configure a new Flask, nginx and uWSGI based blog
# on an Amazon EC2 instance.
#
# See http://bit.ly/MeGwjD for more information!
#
# If you are forking this for your own custom configuration script, see the following other gists:
# https://gist.github.com/3071737
# https://gist.github.com/3071739
@silpol
silpol / tree.md
Last active August 28, 2015 09:28 — forked from hrldcpr/tree.md
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!

Keybase proof

I hereby claim:

  • I am silpol on github.
  • I am silpol (https://keybase.io/silpol) on keybase.
  • I have a public key whose fingerprint is 5532 AD83 DBCB 6E8C 531B 3EA4 0AA9 D1D5 A5F0 7F83

To claim this, I am signing this object: