Wow, some of my dotfiles will live forever!

Posted on Wed 07 December 2022 in tech • Tagged with dotfiles, unix, linux, oldschool

Part of my .emacs

    ;; LOL LOL - WOW mid '90s config returns from the grave
    ;; Load ladebug mode on OSF4
    (if (file-exists-p '"/usr/lib/emacs/lisp/ladebug.el")
      (load-file '"/usr/lib/emacs/lisp/ladebug.el"))

Shoutout to all those who used the C++ debugger on OSF with Digital hardware in mid-anthropocene …


Continue reading

remove the ./ from find -print

Posted on Wed 28 September 2022 in tech • Tagged with linux, programming, bash

If you want to apply a script to each file in a folder recursively you may not want the full relative path. Here is how to remove it.

$ find . -type f -print | sed -e "s|^\./||g"

For example to combine it with xargs and invoke a script on each name …


Continue reading

Complete working example of Protocol Buffers in C++ with CMake and a Dockerfile

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

Protocol Buffers complete working example with CMake and Docker for C++

Protobuf


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