Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View fbraem's full-sized avatar

Franky Braem fbraem

View GitHub Profile
fbraem / UTF8Escape.cpp
Last active August 29, 2015 14:02
UTF8Escape class for POCO
#include "Poco/UTF8Escape.h"
#include "Poco/UTF8Encoding.h"
#include "Poco/NumberFormatter.h"
#include "Poco/Ascii.h"
namespace Poco {
std::string UTF8Escape::escape(const std::string &s)
return escape(s.begin(), s.end());
fbraem / MongoDBMT.cpp
Created December 12, 2015 21:15
MongoDB Multithread Test
#include "Poco/MongoDB/MongoDB.h"
#include "Poco/MongoDB/Connection.h"
#include "Poco/MongoDB/Database.h"
#include "Poco/MongoDB/Cursor.h"
#include "Poco/MongoDB/Array.h"
#include "Poco/Mutex.h"
#include <Poco/MongoDB/PoolableConnectionFactory.h>
fbraem /
Last active January 25, 2019 07:17
Collect MQ statistics with MQWeb and MQ triggering
Get/browse all queue statistic messages from a queue (default is SYSTEM.ADMIN.STATISTICS.QUEUE).
MQWeb ( is used to translate the MQADMIN message to JSON.
It is assumed that MQWeb is running on localhost.
import json
import httplib
import socket
import argparse
fbraem / clusview.html
Created February 28, 2019 08:46
MQ Clusterdiagram using MQWeb and vis.js
<link rel="stylesheet" href="/node_modules/vis/dist/vis.min.css"></link>
<script type="text/javascript" src="/node_modules/vis/dist/vis.min.js"></script>
<script type="text/javascript" src="/node_modules/axios/dist/axios.min.js"></script>
<title>CLuster View</title>
<h1>Cluster View</h1>
<div id="clusterView"></div>
fbraem / mqstandards.js
Created March 15, 2019 14:30
Check MQ attributes meet standards using JavaScript and MQWeb
// Doing the same as
// But using JavaScript and MQWeb (
var http = require('http');
var options = {
hostname : '',
port : 8081,
path : '/api/queue/inquire/PIGEON',
method : 'GET',
headers : {
<?php declare(strict_types = 1);
namespace App\PHPStan;
use PHPStan\Reflection\ClassReflection;
use PHPStan\Reflection\MethodReflection;
use PHPStan\Reflection\MethodsClassReflectionExtension;
use PHPStan\Analyser\OutOfClassScope;
use PHPStan\Type\ObjectType;