Skip to content

Instantly share code, notes, and snippets.

@simoncoulton
simoncoulton / nginx-uwsgi-python3
Created May 7, 2012 04:39
Setting up Nginx, uWSGI & Python3
======================================
Setting up Nginx, uWSGI and Python3
======================================
First off, I'm traditionally a PHP developer, but am looking at moving across to Python. I really struggled to find decent documentation on how to get a server up and running for deploying Python web applications from the point of view of someone coming from PHP. The main problems I came across with documentation were:
1) Only showed you how to run the server for a single web application.
2) Only showed you how to configure the app, not the server it was running on.
My preferred workflow for development is by setting up a new VM in VMware Fusion and then forwarding through all requests to that VM via /etc/hosts. This might not be the optimal way to get things up and running, but it works for me.
@cirrusUK
cirrusUK / arena.sh
Last active April 27, 2024 06:25
Simple dialouge box for choosing streams, requires sopcast-launcher, acestream-launcher, zenity & mpv
#! /bin/bash
#dialouge box for playing acestream streams, requires acestream launcher & mpv
action=$(zenity --window-icon "/usr/share/zenity/zenity.png" --list \
--column=" 📺 Stream Listing 📺" --text=" 🐧 Pick a stream: ⏬↓📺📺📺📺📺↓⏬ 🐧 " \
"acetv" "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" "31" "32" "33" "34" "35" "36" "37" "38" "39" "40" "41" "42" "43" "44")
ret=$?
[[ $ret -eq 1 ]] && exit 0
case $action in
@Brainiarc7
Brainiarc7 / ffmpeg-howto-localfiles-manipulation.md
Created July 25, 2016 13:43
This is a standard how-to for FFmpeg's usage with local files and streams. Small hand-book detailing common encode scenarios in a standard workflow.

Standard FFmpeg How-to

Table of Contents

* Generic Syntax

* Main Options

* Encoding :
@steven2358
steven2358 / ffmpeg.md
Last active July 4, 2024 19:48
FFmpeg cheat sheet
@p2or
p2or / Blender_Basic-UI-Template.py
Last active January 24, 2024 14:34
Basic-UI-Template (Blender 3+) for https://blender.stackexchange.com/a/57332 #Blender
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the