Skip to content

Instantly share code, notes, and snippets.

@subuk
subuk / nginx.conf
Last active August 27, 2015 12:53 — forked from dctrwatson/nginx.conf
Caching PyPi packages locally with nginx
user www-data;
worker_processes 4;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@subuk
subuk / chat.go
Last active August 29, 2015 14:27
Simple go chat
package main
import (
"net"
)
type Chat struct {
clients []*Client
joins chan net.Conn
}
@subuk
subuk / example.sh
Created July 15, 2015 17:29
Nginx pypi cache
#!/bin/sh
pip install -t /tmp/test_install -i http://localhost:5555/simple/ django
@subuk
subuk / gist:72740e021cb16c54a3bb
Last active August 29, 2015 14:22
Распределение элементов по группам без пересечений.
#!/usr/bin/env python
from __future__ import print_function
import collections
GROUPS_COUNT = 7
cleaned_words = set()
#