Category Archives: Programming

Running a bitcoin lightning node on a VPS

I’ve been playing with owning some bitcoin for a while. Like long enough to own some but not long enough to have made any money. Like… I didn’t buy it when it was cheap before 2017. But that isn’t the … Continue reading

Posted in Programming | Tagged , , , | Comments Off on Running a bitcoin lightning node on a VPS

Writing binary data with Verilator

So you are simulating a verilog design with Verilator and you want to output part of your design data to a file in binary format. (Example you’re outputting an image.) Continue reading

Posted in Programming | Tagged , , | Comments Off on Writing binary data with Verilator

Printing on one line with Python

You might be used to using sys.stdout when you want to print multiple items on one line with Python. Did you know you can do the same thing with the print statement? Continue reading

Posted in Programming | Tagged | Comments Off on Printing on one line with Python

Fun with C++11 Lambdas

Basic lambda syntax and usage in c++11. Illustrate the difference between context parameters passed by reference and value. Continue reading

Posted in Programming | Tagged , | Comments Off on Fun with C++11 Lambdas

git diff with color words

I had these files with very very long lines of text on each line. It was paragraphs worth of words but not word wrapped. These files were stored in a git repository. Now and then, someone would change a word. … Continue reading

Posted in Programming | Tagged , , , | Comments Off on git diff with color words

Quick convert raw g711 uLaw audio to a .au file

I had reason to playback some raw g.711 audio data. I made the following script to convert the data to a .au file that is playable. From the AU file spec.. which is way simple by the way: You just … Continue reading

Posted in Programming | Tagged , , , , | 1 Comment