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
cf a| awk '{print $1}{system("cf env " $1)}' | grep postgres | grep uri |
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
cf apps | grep stopped | awk '{print $1}{system("cf start " $1)}' |
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
cf apps | grep started | awk '{print $1}{system("cf stop " $1)}' |
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
master: | |
image: rancher/server | |
container_name: master | |
volumes_from: | |
- mysql | |
ports: | |
- "8080:8080" | |
links: | |
- mysql | |
environment: |
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
# download the iop docker image and pdf if you don't have them already | |
curl -LOk http://ibm-open-platform.ibm.com/repos/images/docker/IOP_v4100_201508.zip | |
curl -LOk http://ibm-open-platform.ibm.com/repos/images/docker/IOP_v4100_readme.pdf | |
# unzip the file using "The Unarchiver" https://itunes.apple.com/gb/app/the-unarchiver/id425424353?mt=12 | |
# create a new vm with 8gb of ram named sparkiop (name doesnt matter if you want to change it) | |
docker-machine create --driver virtualbox --virtualbox-disk-size 20480 --virtualbox-memory 8192 sparkiop | |
# check the ip address of the sparkiop machine |
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
// a simple server that accepts connections on 1337 and then dumps and incoming data to standard out | |
// useful for debugging | |
var net = require('net'); | |
var server = net.createServer(function (socket) { | |
socket.write('Echo server\r\n'); | |
console.log('client connected'); | |
socket.on('data',function(buffy){ |
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
<?php | |
/* | |
* Created on 05-Jul-2006 | |
* [email protected] | |
* Translator class calls external machine translation component | |
*/ | |
class Phonetics | |
{ |
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
<?php | |
/** | |
* | |
* The MQTTClient class allows you to connect to an MQTT message broker and publish messages | |
* @author [email protected] | |
* | |
* Example use | |
* $client = new MQTTClient("robphptest","realtime.ngi.ibm.com",1883); | |
* $client->connect(); |