This file contains hidden or 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
<!DOCTYPE HTML PUBLIC> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>BackgroundClipText - Modernizr Test</title> | |
<script src="modernizr.js"></script> | |
<script> | |
function getBgClipValue(elem){ | |
return ( |
This file contains hidden or 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
<!DOCTYPE HTML> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>BackgroundClipText - Modernizr Test</title> | |
<script src="modernizr.js"></script> | |
<script> | |
function getBgClipValue(elem){ | |
return ( |
This file contains hidden or 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
function determineDate(date, refDate, defaultDate) { | |
var getDaysInMonth = function (year, month) { | |
var date = new Date(year, month, 32); | |
date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0); | |
return 32 - date.getDate(); | |
}, | |
offsetNumeric = function (offset, date) { | |
date.setDate(date.getDate() + offset); | |
return date; | |
}, |
This file contains hidden or 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
// OUTPUT: | |
// Executing: DROP TABLE IF EXISTS `Persons`; | |
// Executing: CREATE TABLE IF NOT EXISTS `Persons` (`name` VARCHAR(255), `id` INTEGER NOT NULL auto_increment , `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL, PRIMARY KEY (`id`)) ENGINE=InnoDB; | |
// Executing: DROP TABLE IF EXISTS `Pets`; | |
// Executing: CREATE TABLE IF NOT EXISTS `Pets` (`name` VARCHAR(255), `id` INTEGER NOT NULL auto_increment , `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL, `PersonId` INTEGER, PRIMARY KEY (`id`)) ENGINE=InnoDB; | |
// Executing: INSERT INTO `Persons` (`name`,`id`,`createdAt`,`updatedAt`) VALUES ('Luke',NULL,'2013-05-29 11:00:37','2013-05-29 11:00:40'); | |
// Executing: INSERT INTO `Pets` (`name`,`id`,`createdAt`,`updatedAt`,`PersonId`) VALUES ('Bob',NULL,'2013-05-29 11:00:37','2013-05-29 11:00:40',NULL); | |
// Executing: SELECT * FROM `Pets` WHERE `Pets`.`PersonId`=1; |
This file contains hidden or 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
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
}).listen(1337, '127.0.0.1'); | |
console.log('Server running at http://127.0.0.1:1337/'); |

This file contains hidden or 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 coldfusion10 with pidfile /var/run/coldfusion10.pid | |
start program = "/etc/monit-wrapper /etc/init.d/coldfusion restart" with timeout 60 seconds | |
stop program = "/etc/monit-wrapper /etc/init.d/coldfusion stop" | |
if failed host localhost port 80 | |
protocol HTTP request "/CFIDE/administrator/index.cfm" | |
with timeout 45 seconds | |
then restart | |
This file contains hidden or 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1397825720000", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:*" | |
], | |
"Resource": [ |
This file contains hidden or 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
/opt/coldfusion10/cfusion/logs/*.log { | |
# Log files are rotated every day. | |
daily | |
# If the log file is missing, go on to the next one without issuing an error | |
# message. | |
missingok | |
# Log files are rotated count times before being removed or mailed to the | |
# address specified in a mail directive. |
This file contains hidden or 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
curl https://gist.githubusercontent.com/LoicMahieu/077317910cf9e78a18d3/raw/b99605d8a55970328f84f87127414bf3529cae3c/log4j.properties > /opt/coldfusion10/cfusion/lib/log4j.properties |
OlderNewer