start new:
tmux
start new with session name:
tmux new -s myname
| """ | |
| Create a Plex Playlist with what was aired on this today's month-day, sort by oldest first. | |
| If Playlist from yesterday exists delete and create today's. | |
| If today's Playlist exists exit. | |
| """ | |
| import operator, time | |
| from plexapi.server import PlexServer | |
| import requests |
| #This is the "site config" for nginx | |
| upstream django { | |
| # Distribute requests to servers based on client IP. This keeps load | |
| # balancing fair but consistent per-client. In this instance we're | |
| # only using one uWGSI worker anyway. | |
| ip_hash; | |
| server unix:/tmp/uwsgi.sock; | |
| } | |
| server { |