TIL

Some New Unix/Linux Tools

#bash#bashrc#atuin

Shorten your .bashrc with newer Unix programs.

Read more →

February 22, 2025

Using uv to build and install Python CLI apps

#python#uv#cli#commandline interface#Rodrigo Girao Serrao

Not the full article but a couple of new items I did not know about.

Read more →

February 22, 2025

Generate CREATE TABLE query for an existing table

#postgresql#create table

When you do not have the script that created the table.

Read more →

February 22, 2025

The Reverse of cat is tac

#cat#tac#linux

tac is the reverse of cat.

Read more →

February 16, 2025

Open Mateo Weather API

#open_mateo#python#weather#api

Open Mateo can be an alternative to Open Weather Map.

Read more →

February 1, 2025

Great Tables and StreamLit

#python#great_tables#streamlit

The Great Tables package is all about making it simple to produce nice-looking display tables.

Read more →

February 1, 2025

How to Reinstall Python with uv

#uv#python

uv python install –reinstall 3.13

Read more →

January 11, 2025

WAT Python Inspection Tool

#til#python#wat

A powerful inspection tool to help with unknown Python objects.

Read more →

January 1, 2025

RightTyper to Generate Types

#python#types#til

Get a helper with typing.

Read more →

December 31, 2024

Count Number of Lines in a Git Repository

#git#xargs#cat#wc#til

If you were ever curious how many lines of code you have in a repo.

Read more →

September 5, 2024

Check for unused Indexes

#til#postgresql#index

Part of a larger PostgreSQL management article.

Read more →

December 18, 2023

Powershell Remoting

#til#powershell#remote

A couple of different ways to connect to a remote PC.

Read more →

December 4, 2023

View Code of Stored Procedure

#til#ms sql server#ms sql server management studio#mssms

I needed to see the code of a stored procedure in MS SQL Server at work so that I could create a modified query. I normally don’t use Stack Overflow much anymore but this was actually useful and well described. Using SQL Server Management Studio do the following: Go to Database -> Programmmability -> Stored Procedure. Right click on the procedure you want to view and click Modify. Be careful not to modify it when you only want to view it.

Read more →

November 28, 2023

How to List Active Connections on PostgreSQL

#til#pg_stat_activity#postgresql

How to check using a query what is actively running.

Read more →

October 17, 2023

Check for Unvalidated Database Constraints

#til#postgresql#constraints#pg_constraint#mastodon

Verify that you don’t have a constraint created without validation.

Read more →

October 10, 2023

Deprecated

#til#python#deprecated

I neat way to deprecate parts of a Python program.

Read more →

September 19, 2023

How to Read a Vim Swapfile

#til#swapfile#vim

How to read a swapfile, especially where there isn’t an reference file.

Read more →

September 12, 2023

Get Battery Status in CLI

#til#linux#battery#cat#find

How to get the battery status using standard CLI tools in Linux.

Read more →

September 12, 2023

Delete Files Older Than x Days on Linux

#til#linux#find#rm#mtime

Quickly delete files older than a certain number of days.

Read more →

September 5, 2023

How to Use a match case Statement

#til#python 3.10#match case#python

Some examples of how to use match case statement in Python.

Read more →

August 29, 2023

Vim Tips

#til#vim#pybites

Notes from the VIM Workshop from pybites

Read more →

August 22, 2023

Create Git Branch and Checkout

#til#git#branch#checkout

Create a git branch and checkout at once.

Read more →

August 15, 2023

Set Statement Timeout

#til#timeout#statement_timeout#postgresql#idle_in_transaction

Set a timeout in case you want to terminate a long running query.

Read more →

August 1, 2023

Escape Keys using psycopg2

#til#psycopg2#python#postgresql

Making sure that using % in PostgreSQL works with psycopg2.

Read more →

June 2, 2023

Setup Python Package to use with Pipx

#til#python#pipx#pyproject#flit

Setting up your Python project to work with pipx and pyproject.toml

Read more →

May 26, 2023

Prune Docker Images

#til#docker#prune#images

Remove images that are not in use.

Read more →

April 21, 2023

Clear Highlighting in Vim

#til#vim#highlighting

Clearing highlighting after performing a search for an example.

Read more →

April 14, 2023

Find and Replace in Vim

#til#vim#find#replace#substitute

Different ways to find and replace items using vim.

Read more →

March 24, 2023

Include Schema in psycopg2 Connection String

#til#postgresql#psycopg2#sqlalchemy

Include schema in PostgreSQL connection string.

Read more →

December 19, 2022

Using Rich Inspect to Interrogate Python Objects

#til#python#rich#inspect

Using Rich can help format an object in the REPL.

Read more →

November 13, 2022