Complete working example gRPC in C++ with CMake and a Dockerfile

Posted on Thu 23 September 2021 in tech • Tagged with programming, gRPC, C++, CMake, Linux, Docker

Sometimes and example is worth a thousand words. In this installment gRPC C++ with CMake FetchContent and a Dockerfile.

gRPC


How to run Unifi controller in AWS with a small (1Gb) memory footprint

Posted on Wed 08 September 2021 in tech • Tagged with unifi, networking, unix, linux, aws, debian, ubuntu

For years, I have been hosting Unifi controller in AWS. AWS is both more convenient and reliable than hosting a local server. I am also convinced that hosting a minimalist server is about the same cost on AWS as running locally. In the past, I have purchased a one year …


Continue reading

istream_iterator

Posted on Fri 18 June 2021 in tech • Tagged with programming, chunked, iterator, c++

Although c++ is already imbued with the kitchen sink, it seems to lack a chunked character iterator for input streams.

Here is a little repository to implement that: Block Iterator

An example looks like any istream iterator idiom:

constexpr auto N = 3;
const auto example = "AAABBBCCC";
std::istringstream ss(example …

Continue reading

Twenty Spheres

Posted on Mon 17 May 2021 in tech • Tagged with programming, graphics, c++

twenty speheres

A little c++ shader toy that I wrote for rendering a light model. Twenty Spheres This program is based on a classic computer graphics problem.

Yes...15 spheres are shown here!


dnsmasq adblock fetcher using python

Posted on Wed 23 December 2020 in tech • Tagged with programming, python, adblocker

If you are using Pi Hole or Unifi Edgerouter for Ad Blocking via a host file, check out fetch_blocker. This is a straightforward python script to pull the Steven Black Hosts consolidated adblocker list and convert it to dnsmasq format.


Post an order on Binance using Python

Posted on Sat 19 December 2020 in tech • Tagged with programming, python, tech, bitcoin, tutorial, crypto

Tutorial: Post an order on Binance using Python


Continue reading