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

Three steps to document Solididty in SPHINX

Posted on Tue 27 September 2022 in tech • Tagged with solidity, programming, ethereum, crypto, sphinx, tutorial

I was able to get solidity docgen working by implementing a series of three different stages all automated in our build process.

  1. Parse the solc output into actual json.
  2. Load the json file into the documentation system
  3. Use a Jinja template to convert the api document

There is shockingly poor …


Continue reading

History: praetorian guard

Posted on Sun 25 September 2022 in dictionary

The praetorian guard was an elite infantry created by Augustus and charged with the task of guarding the princeps. The princeps was a person without strict legal right to rule, however they possessed great imperium, along with extraordinary political influence. The praetorian guard consisted of 9,000 troops and signified …


Continue reading

How to Configure git editor in a codespace

Posted on Fri 23 September 2022 in tech • Tagged with programming, github, codespaces

How to configure git to use vscode as the default editor from your codespace:

git config --global core.editor "code --wait"


History: Livy

Posted on Sun 18 September 2022 in dictionary • Tagged with person

59 BCE- 17 CE - Livy was an important Roman historian. His crowning work, History of Rome, encompassed 142 books and chronicled the history of the city from its inception to 9 BCE. Livy was originally from northern Italy, but came to reside in Rome for his later life. It is …


Continue reading

History: Ovid

Posted on Sun 11 September 2022 in dictionary • Tagged with person

43 BCE- 18 CE - Ovid is said to be the last of the great poets of the Roman golden age. Ovid's work takes a carefree approach to traditional Roman values, and often lampooned them. His famous works include Amores, a series of love poems, Metamorphoses, and The Art of Love …


Continue reading