Skip to content

Instantly share code, notes, and snippets.

View sc0tt's full-sized avatar
🍦
grinding

Scott Adie sc0tt

🍦
grinding
View GitHub Profile
@sc0tt
sc0tt / picker.py
Created July 12, 2014 12:49
Player picker
import random
name_list = None
with open("names.txt") as name_file:
name_list = [n.strip() for n in name_file.readlines()]
if len(name_list) % 2:
exit("Number of Players is not Even")
with open("out_names.txt", "w") as out:
<?php
$this->log($data);
Cakelog::write('error', $data);
// If $data is an array
Cakelog::write('error', print_r($data, true));
?>
@sc0tt
sc0tt / domain.net
Created March 1, 2014 02:11
nginx config for a site under gunicorn
server {
listen 80;
server_name subdomain.domain.net;
access_log /path/to/access.log;
error_log /path/to/error.log;
location / {
proxy_pass http://127.0.0.1:8001/;
proxy_redirect off;