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
check process nginx with pidfile /opt/nginx/logs/nginx.pid | |
start program = "/etc/init.d/nginx start" with timeout 10 seconds | |
stop program = "/etc/init.d/nginx stop" | |
if cpu > 60% for 2 cycles then alert | |
if cpu > 80% for 5 cycles then restart | |
if totalmem > 200.0 MB for 5 cycles then restart | |
if loadavg(5min) greater than 10 for 8 cycles then stop | |
if failed host rly.gd port 80 protocol http | |
and request "/" | |
then restart |
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
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'json' | |
require 'cgi' | |
require 'find' | |
require 'net/http' | |
require 'progressbar' | |
class Movie |
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 { | |
server_name www.georgebashi.com; | |
rewrite ^(.*) http://georgebashi.com$1 permanent; | |
} |
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
.SUFFIXES: .html .haml .css .sass | |
.haml.html: | |
haml $< > $@ | |
.css.sass: | |
sass $< > $@ |
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
<settings> | |
<profiles> | |
<profile> | |
<id>flex-mojos</id> | |
<repositories> | |
<repository> | |
<id>flex-mojos-repository</id> | |
<url>http://repository.sonatype.org/content/groups/flexgroup/</url> | |
<releases> <enabled>true</enabled> </releases> |
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/sh | |
cmd="$1" | |
if [ $# -gt 1 ]; then | |
shift 1 | |
files=$@ | |
else | |
files=`find . -depth 1 -type d -not -name '.*' | cut -c 3-` | |
fi |
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
perl -p -i -e 's/xmlns:tei/xmlns/ if 1..5' gdlc/0/EC-abelles-1.xml |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<book xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"> | |
<chapter> | |
<title /> | |
<para>test</para> | |
</chapter> | |
</book> |
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
/* | |
* GLOW.Compiler | |
* @author: Mikael Emtinger, gomo.se | |
* Compiles vertex- and fragementshader, uniforms, attributes and elements into a GLOW.CompiledData | |
*/ | |
GLOW.Compiler = (function() { | |
"use strict"; | |
"use restrict"; |
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
Array.prototype.forEachG = function(f) { | |
for (var i = 0; i < this.length; i++) { | |
f(this[i], i, this); | |
} | |
} |