Website:
http://prediction.io
Install Guide:
http://docs.prediction.io/installation/install-predictionio-on-linux.html
<?php | |
// in ZF2 project, place this in ./bin directory | |
chdir(dirname(__DIR__)); | |
$zf2Path = (getenv('ZF2_PATH') ?: 'vendor/ZendFramework/library'); | |
require_once $zf2Path . '/Zend/Loader/AutoloaderFactory.php'; | |
require_once $zf2Path . '/Zend/Loader/StandardAutoloader.php'; | |
use Zend\Loader\AutoloaderFactory; | |
use Zend\Loader\StandardAutoloader; |
<?php | |
// in ZF2 project, place this in ./bin directory | |
chdir(dirname(__DIR__)); | |
$zf2Path = (getenv('ZF2_PATH') ?: 'vendor/ZendFramework/library'); | |
require_once $zf2Path . '/Zend/Loader/AutoloaderFactory.php'; | |
require_once $zf2Path . '/Zend/Loader/StandardAutoloader.php'; | |
use Zend\Loader\AutoloaderFactory; | |
use Zend\Loader\StandardAutoloader; |
ssh_options[:keys] = [File.join(Dir.pwd, "config", "ubuntu.pem")] | |
set :application, "MyAPPNAME" | |
set :repository, "git@github.com:necromant2005/MYAPPName.git" | |
# If you aren't deploying to /u/apps/#{application} on the target | |
# servers (which is the default), you can specify the actual location | |
# via the :deploy_to variable: | |
set :deploy_to, "/var/www/#{application}" |
Website:
http://prediction.io
Install Guide:
http://docs.prediction.io/installation/install-predictionio-on-linux.html
var page = require('webpage').create(); | |
page.open('http://www.website.com/', function (status) { | |
if (status === 'success') { | |
captureAjaxResponsesToConsole(); | |
} | |
}); | |
function captureAjaxResponsesToConsole() { | |
// logs ajax response contents to console so sublime's onConsoleMessage can use the contents |
#!/bin/bash | |
# NB: First install nscd with sudo apt-get install nscd | |
# run this command to flush dns cache: | |
sudo /etc/init.d/dns-clean restart | |
# or use: | |
sudo /etc/init.d/networking force-reload | |
# Flush nscd dns cache: | |
sudo /etc/init.d/nscd restart |
[Unit] | |
Description=consul agent | |
Requires=network-online.target | |
After=network-online.target | |
[Service] | |
EnvironmentFile=-/etc/sysconfig/consul | |
Environment=GOMAXPROCS=2 | |
Restart=on-failure | |
ExecStart=/usr/local/sbin/consul agent $OPTIONS -config-dir=/etc/consul.d |
<?php declare(strict_types=1); | |
require_once "✨.🐘"; | |
✨($_)->strlen("foo")->var_dump($_); |
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications
like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html