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
<?xml version="1.0"?> | |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
<service_bundle type="manifest" name="php-fpm"> | |
<service name="network/php-fpm" type="service" version="1"> | |
<create_default_instance enabled='true'/> | |
<single_instance/> | |
<dependency name="network" grouping="require_all" restart_on="error" type="service"> | |
<service_fmri value="svc:/milestone/network:default"/> | |
</dependency> | |
<dependency name="filesystem" grouping="require_all" restart_on="error" type="service"> |
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
<?xml version='1.0'?> | |
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> | |
<service_bundle type='manifest' name='export'> | |
<service name='network/nginx' type='service' version='0'> | |
<single_instance/> | |
<dependency name='network' grouping='require_all' restart_on='error' type='service'> | |
<service_fmri value='svc:/milestone/network:default'/> | |
</dependency> | |
<dependency name='filesystem' grouping='require_all' restart_on='error' type='service'> | |
<service_fmri value='svc:/system/filesystem/local'/> |
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
cd /tmp | |
curl -O http://pear.php.net/go-pear.phar | |
sudo php -d detect_unicode=0 go-pear.phar | |
# change installation directory to /usr/local | |
sudo pear update-channels |
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
/** | |
* A JavaScript singleton object to handle asynchronous jobs. | |
* Give it a callback to i.e. know when to close the database connection. | |
* @author Jacob Friis Saxberg | |
*/ | |
module.exports = new function () { | |
this.debug = true; | |
var jobs = 0; |
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 mongodb = require('mongodb'); | |
var server = new mongodb.Server('hostname', portnumber, {auto_reconnect: true}); | |
var db = new mongodb.Db('databasename', server); | |
db.open(function (err, db) { | |
if (err) { | |
console.error(err); | |
} else { | |
db.authenticate('username', 'password', function(){ |
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
$ jitsu deploy | |
info: Welcome to Nodejitsu | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing your application dependencies in server.js | |
warn: Local version appears to be old. | |
warn: Your package.json version will be incremented for you automatically. | |
warn: About to write /Users/jacob/Sites/test/package.json | |
data: | |
data: { |
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 "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Server Information</title> | |
</head> | |
<body><h1 style="text-align:center">Apache Server Information</h1> | |
<dl><dt><tt>Subpages:<br/><a href="?config">Configuration Files</a>, <a href="?server">Server Settings</a>, <a href="?list">Module List</a>, <a href="?hooks">Active Hooks</a></tt></dt></dl><hr/><dl><dt><tt>Sections:<br/><a href="#server">Server Settings</a>, <a href="#startup_hooks">Startup Hooks</a>, <a href="#request_hooks">Request Hooks</a></tt></dt></dl><hr/><dl><dt><tt>Loaded Modules: <br/><a href="#mod_ssl.c">mod_ssl.c</a>, <a href="#mod_php5.c">mod_php5.c</a>, <a href="#mod_instaweb.cc">mod_instaweb.cc</a>, <a href="#mod_version.c">mod_version.c</a>, <a href="#mod_rewrite.c">mod_rewrite.c</a>, <a href="#mod_alias.c">mod_alias.c</a>, <a href="#mod_dir.c">mod_dir.c</a>, <a href="#mod_info.c">mod_info.c</a>, <a href="#mod_mime.c |
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
require 'rubygems' | |
require 'tinder' | |
# You need to put your *.campfirenow.com cookies in a cookies.txt file | |
class CampfireUploadCleaner | |
CF_DOMAIN = '' | |
CF_ROOM = '' | |
CF_TOKEN = '' |
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
<?php | |
ignore_user_abort(true); | |
function syscall ($cmd, $cwd) { | |
$descriptorspec = array( | |
1 => array('pipe', 'w'), // stdout is a pipe that the child will write to | |
2 => array('pipe', 'w') // stderr |
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
find * -type d -name migrations -print0 | xargs -0 -I {} rm -rf "{}" |
OlderNewer