Get a VPS that offers 2 or more IP addresses.
From the WHM cPanel, find the menu item Service Configuration, select Apache Configuration and then click on Reserved IPs Editor.
| #!/usr/bin/env node | |
| /* Info that is likely to be different for you */ | |
| var ARDUINO_PORT = "/dev/tty.usbserial-A1004c6U", | |
| URL = 'http://www.cotizacion-dolar.com.ar/', | |
| FETCH_CICLE = 30 * 60 * 1000; | |
| /* Probably it's not a good idea to modify the following lines */ | |
| var jsdom = require("jsdom"), | |
| sp = require("serialport"), |
| var cluster = require('cluster'); | |
| var PORT = +process.env.PORT || 1337; | |
| if (cluster.isMaster) { | |
| // In real life, you'd probably use more than just 2 workers, | |
| // and perhaps not put the master and worker in the same file. | |
| cluster.fork(); | |
| cluster.fork(); | |
| cluster.on('disconnect', function(worker) { |
| # # PubSub | |
| # | |
| # Is a small helper to simply realize a pub/sub pattern to a coffee class. | |
| # | |
| # A namespaceing of the topics is also included. | |
| # This means you can subscribe to `a` and also get the `a.b`. But if you subscribe to `a.b` you will not get a `a`. | |
| # | |
| # **required module**: `underscore` | |
| # | |
| class PubSub |
| function parse_message( &$tweet ) { | |
| if ( !empty($tweet['entities']) ) { | |
| $replace_index = array(); | |
| $append = array(); | |
| $text = $tweet['text']; | |
| foreach ($tweet['entities'] as $area => $items) { | |
| $prefix = false; | |
| $display = false; | |
| switch ( $area ) { | |
| case 'hashtags': |
| Subject: Thanks for signing up! | |
| Date: {{date}} | |
| To: {{recipient}} | |
| From: {{sender}} | |
| MIME-Version: 1.0 | |
| Content-Type: text/plain | |
| Thanks for signing up for the Foobar service! | |
| Your email address is: {{recipient}} |
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
| "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>Simple Raphael Maps Using D3 Projections</title> | |
| <script type="text/javascript" charset="utf-8" src="raphael-min.js"></script> | |
| <script type="text/javascript" charset="utf-8" src="geo-projection.js"></script> | |
| <script type="text/javascript" charset="utf-8" src="us.svg.js"></script> |
| > var a = ["a", "b"] | |
| > a.indexOf("a") | |
| 0 | |
| > a.indexOf("b") | |
| 1 | |
| > a.indexOf("c") | |
| -1 | |
| > ~a.indexOf("a") | |
| -1 | |
| > ~a.indexOf("c") |
| <?PHP | |
| /* | |
| * PHP upload for Gyazo - v1.2 - 02/16/2011 | |
| * http://benalman.com/news/2009/10/gyazo-on-your-own-server/ | |
| * | |
| * Copyright (c) 2009 "Cowboy" Ben Alman | |
| * Licensed under the MIT license | |
| * http://benalman.com/about/license/ | |
| */ |
| #!/bin/sh | |
| #################################### | |
| # Output file for HTML5 video # | |
| # Requirements: # | |
| # - handbrakecli # | |
| # - ffmpeg # | |
| # - ffmpeg2theora # | |
| # # | |
| # usage: # |