ipcs give misleading output Running ipcs -m on a box running postgres will show a tiny shared memory segment of 56 bytes. We expect to see 1GB shared memory segment based on the shared_buffers value. The reason ipcs -m does not show the shared memory segment in postgres is that postgres uses POSIX shared memory via mmap (mmap(…, MAP_SHARED | MAP_ANONYMOUS, …)) . – so […]
TIL – which is actually really rubbish and we should all be using command -v instead. It turns out that command -v knows about aliases because it is an internal shell command – and not an external binary (as which is). Cursor definitely prefers command -v over which when you ask it to assist with […]
echo -e “\U0001F600” 😀 and why not. Requires bash >4 which may not be on your OSX laptop.
many how-tos fail to mention that there is an additional ENV var that needs to be set in order to make fzf the default tab completer in bash. If this is not set, then the user has to do ** <TAB> in order to get fzf completions. export FZF_COMPLETION_TRIGGER=” put this in .bashrc before calling […]
scp user@remote:/homedir/<tab> will show auto-complet-able list just like on a local machine.
gron is a brew installable tool that works on json data. Particularly useful to extract key:value from large json documents. Essentially gron flattens the json. This is surprisingly useful when creating shell tools that have to deal with json. gron basic use pipe that json into gron Extract fields from an API call with gron […]
Welcome to WordPress. This is your first post. Edit or delete it, then start writing!