Skip to content

Instantly share code, notes, and snippets.

View bhaskar-nair2's full-sized avatar
🏠
Working from home

Bhaskar Nair bhaskar-nair2

🏠
Working from home
View GitHub Profile
@bhaskar-nair2
bhaskar-nair2 / flask-uwsgi-nginx-primer.md
Created June 25, 2018 09:55 — forked from mplewis/flask-uwsgi-nginx-primer.md
Flask + uWSGI + nginx Primer. I've been having trouble with serving a Flask app via uWSGI and nginx, so I thought I'd put together some of the basics to help out others.

Flask + uWSGI + nginx Primer

I've been having trouble with serving a Flask app via uWSGI and nginx, so I thought I'd put together some of the basics to help out others.

How this shit works

  • Flask is managed by uWSGI.
  • uWSGI talks to nginx.
@bhaskar-nair2
bhaskar-nair2 / bash-cheatsheet.sh
Last active June 14, 2018 05:49 — forked from ashish192/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@bhaskar-nair2
bhaskar-nair2 / scrframe.py
Created June 13, 2018 10:40
TKinter scrollable frame
from tkinter import * # from x import * is bad practice
from tkinter import ttk
# http://tkinter.unpythonic.net/wiki/VerticalScrolledFrame
class VerticalScrolledFrame(Frame):
"""A pure Tkinter scrollable frame that actually works!
* Use the 'interior' attribute to place widgets inside the scrollable frame
* Construct and pack/place/grid normally
* This frame only allows vertical scrolling