Skip to content

Instantly share code, notes, and snippets.

View bmwant's full-sized avatar
🇺🇦
Hold strong Ukraine

Misha Behersky bmwant

🇺🇦
Hold strong Ukraine
View GitHub Profile
@bmwant
bmwant / nginx.conf
Last active August 29, 2015 14:26
php-cgi with nginx on windows
# in block server
location / {
root D:/project/www;
try_files $uri $uri/ /index.php;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
root D:/project/www;
fastcgi_pass 127.0.0.1:9000;
@bmwant
bmwant / watch.py
Created May 14, 2015 11:22
Watchdog monitoring on editing python-scripts
import time
from watchdog.observers import Observer
from watchdog.events import PatternMatchingEventHandler
class ScriptModifiedHandler(PatternMatchingEventHandler):
patterns = ['*.py']
def __init__(self):
super(ScriptModifiedHandler, self).__init__()