Skip to content

Instantly share code, notes, and snippets.

@austgate
austgate / scyther-gui.sh
Last active August 29, 2015 14:27
Scyther-GUI run shell script
#!/bin/bash
SPDL=$1
python scyther-gui.py ${SPDL}
@austgate
austgate / monitor.js
Created December 1, 2013 17:56
Quick Node.js script to look at the XML feed on ActiveMQ to demonstrate a way of doing this if not hooked into something like Nagios or antoehr monitoring service
var http = require('http'),
util = require('util'),
url = require('url'),
fs = require('fs'),
xml2js = require('xml2js');
try {
var amq_client = http.request(8161, 'localhost');
var parser = new xml2js.Parser();
@austgate
austgate / Sugar
Last active November 28, 2016 14:05
Using SugarCRM's Sugar Application to show error messages and redirects.
SugarApplication::appendErrorMessage('Enter your message string');
$params = array(
'module'=> 'Accounts',
'action'=>'DetailView',
'id' => $bean->id
);
SugarApplication::redirect('index.php' . http_build_query($params));