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
#!/bin/sh | |
java -Dapple.laf.useScreenMenuBar=true -Dswing.defaultlaf=com.apple.laf.AquaLookAndFeel -Xdock:name="WMQTT Utility" -Xdock:icon=mqtticon-vlarge.png -jar wmqttSample.jar |
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 | |
$cnn = new AMQPConnection(); | |
$cnn->setLogin("guest"); | |
$cnn->setPassword("guest"); | |
$cnn->setHost("localhost"); | |
if ($cnn->connect()) { | |
echo "Established a connection to the broker\n"; | |
} |
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
#compdef vmc | |
#autoload | |
# vmc autocompletion for oh-my-zsh | |
# requires: the vmc gem (gem install vmc) | |
# author: Andy Piper (http://andypiper.co.uk) | |
_list_apps() { | |
for APP in `vmc apps | grep -oE '^\| [[:alnum:]-]+ . ' | grep -oE '[[:alnum:]-]+'`; do | |
compadd "$@" $APP |
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
require 'sched' | |
require 'shell.telnet' | |
-- Start a telnet server on port 1234 | |
-- Once this program is started , you can start a Lua VM through telnet | |
-- using the following command: telnet localhost 1234 | |
local function run_server() | |
shell.telnet.init { | |
address = '0.0.0.0', | |
port = 1234, |
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
#!/usr/bin/python | |
from pylcdsysinfo import BackgroundColours, TextColours, TextAlignment, TextLines, LCDSysInfo | |
import mosquitto | |
import textwrap | |
import sys | |
from time import sleep | |
def on_message(mosq, obj, msg): | |
lines = textwrap.wrap(msg.payload, width=20) |
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
➜ Tiny-Tiny-RSS-1.8 cf logs tinytiny | |
Using manifest file manifest.yml | |
Getting logs for tinytiny #0... OK | |
Reading logs/env.log... OK | |
TMPDIR=/home/vcap/tmp | |
VCAP_APP_PORT=64299 | |
VCAP_CONSOLE_IP=0.0.0.0 | |
USER=vcap |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'mqtt' | |
MQTT::Client.connect('localhost',1883) do |client| | |
client.get('#') do |topic,message| | |
puts "#{topic}: #{message}" | |
end | |
end |
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
test make -C broker 07 | |
./07-will-qos0.py | |
./07-will-null.py | |
./07-will-acl-denied.py | |
./07-will-null-topic.py | |
➜ test make -C broker 08 | |
./08-ssl-connect-no-auth.py | |
./08-ssl-connect-no-auth-wrong-ca.py | |
1375717037: mosquitto version 1.1.90 (build date 2013-08-05 16:24:24+0100) starting | |
1375717037: Config loaded from 08-ssl-connect-no-auth-wrong-ca.conf. |
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
mosquitto make | |
Scanning dependencies of target libmosquitto | |
[ 2%] Building C object lib/CMakeFiles/libmosquitto.dir/logging_mosq.c.o | |
[ 4%] Building C object lib/CMakeFiles/libmosquitto.dir/memory_mosq.c.o | |
[ 6%] Building C object lib/CMakeFiles/libmosquitto.dir/messages_mosq.c.o | |
[ 8%] Building C object lib/CMakeFiles/libmosquitto.dir/mosquitto.c.o | |
[ 11%] Building C object lib/CMakeFiles/libmosquitto.dir/net_mosq.c.o | |
[ 13%] Building C object lib/CMakeFiles/libmosquitto.dir/read_handle.c.o | |
[ 15%] Building C object lib/CMakeFiles/libmosquitto.dir/read_handle_client.c.o | |
[ 17%] Building C object lib/CMakeFiles/libmosquitto.dir/read_handle_shared.c.o |
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
# we can safely ignore all of this content | |
# use the nginx buildpack | |
# cf push --buildpack https://github.com/cloudfoundry-community/nginx-buildpack.git | |
.git | |
.gitignore | |
.sass-cache | |
.travis.yml | |
LICENSE | |
README.md | |
Gruntfile.js |