This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.provider "virtualbox" do |v| | |
v.gui = false | |
v.memory = 2048 | |
end | |
# Use this image for a clean full install with no cached packages | |
# config.vm.box = "ubuntu/trusty64" | |
config.vm.box = "siris-cached" | |
# Get it from gm-accelerator.xen.prgmr.com:~will/vagrant/siris-cached.box | |
# Then run vagrant box add siris-cached.box --name siris-cached |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Watch current directory (recursively) for file changes, and execute | |
# a command when a file or directory is created, modified or deleted. | |
# | |
# Written by: Senko Rasic <senko.rasic@dobarkod.hr> | |
# | |
# Requires Linux, bash and inotifywait (from inotify-tools package). | |
# | |
# To avoid executing the command multiple times when a sequence of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import os | |
import re | |
import shutil | |
from os.path import splitext | |
SOURCE = os.getcwd() + "/www/" | |
TARGET = os.getcwd() + "/compiled/" | |
if not os.path.exists(TARGET): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You should be able to visit chrome-extension://<extension id>/meter.html and run the tests manually. Don't forget to add the extension ID to the top of meter.js. | |
The timer could be better with some sort of profiling extension; as it stands, it just uses Date().getTime() when it starts and stops and takes the difference. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80 ipv6only=on; # This last flag can fix some issues nginx can have with binding to ports. | |
server_name www.example.com; | |
return 301 https://$server_name$request_uri; #Force SSL | |
} | |
server { |