Things I've learned, collected in jamesmstone/til. You may also enjoy my website. Inspired by simonw/til.
Browse by topic: IKEA 1 · awk 1 · decision-making 2 · github-actions 2 · human 1 · javascript 1 · postgres 2 · sh 3 · swimming 1 · terminal 1 · typescript 1 · wisdom 2
Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program. …
if you're unsure what to do, always choose the option that makes the better story. …
In postgres you may find yourself repeating common operations on all your tables. For example adding an audit log, created times, modified user etc. …
IKEA is the 6th largest restaurant in the world by number of customers. In 2017 there were 700 million people who ate an IKEA. Roughly 10 percent of the world. …
I wanted to have a GitHub Action step push back to the repo it is running in. …
Lots of applications use sqlite dbs. It can be useful to try and find them all. For this you can use the following command …
in bash code completions are setup using the complete
command …
if you're unsure what to do, always choose the option that makes the better story. …
if you're unsure what to do, always choose the option that makes the better story. …
From: Yahoo Sports …
I use Alacritty as my terminal emulator. To be honest I am not sure why... it gets out of my way and seems to be fast enough …
I was aware humans have different blood types. A
B
AB
O
and you can be positive or negative. …
My common (ba)sh script setup is a bit like this: …
when using awk to parse a file I was aware it uses this basic structure: …
When using all modern versions of JS you can use esm modules. …
When using TS with React you may want to get the types of another component. …
Inside plpgsql function you can often get naming conflicts between input parameters and column / table names …
I wanted to have a GitHub Action step run that might fail, but if it failed the rest of the steps should still execute and the overall run should be treated as a success. …