Skip to content

Instantly share code, notes, and snippets.

View matejk's full-sized avatar

Matej Kenda matejk

  • Tolmin, Slovenia
View GitHub Profile
@matejk
matejk / svg2icns.sh
Created August 21, 2019 12:54 — forked from adriansr/svg2icns.sh
Convert SVG file to macOS icon (icns) format
#!/bin/sh -x
set -e
SIZES="
16,16x16
32,16x16@2x
32,32x32
64,32x32@2x
128,128x128
@matejk
matejk / poco-mongodb-mt.cpp
Created June 9, 2015 08:17
Poco::MongoDB connection pool and multithreading
#include <iostream>
#include <memory>
#include <thread>
#include <mutex>
#include <Poco/UUIDGenerator.h>
#include <Poco/MongoDB/PoolableConnectionFactory.h>
#include <Poco/MongoDB/Connection.h>
#include <Poco/MongoDB/Database.h>