Tag: bash
Installing gcloud on ubuntu – 2026
A short guide on installing and authorising gcloud on ubuntu 26.04 LTS. gcloud is a command line tool that allows you to interact with Google Cloud Platform services such as …
String replacement across multiple files in current directory using `sed`
The following bash code will replace any occurance of old text with some new text in all yaml files in the current directory when run on a mac. This is …
Pre commit hooks in git YouTube resources
A collection of YouTube videos I have found useful in learning about hooks in Git. In no particular order:
Archive (tar + gzip) a folder using bash
The following command will create a gzipped (compressed) tar file (many files into one file) for a folder called “Downloads”. In other words all the files and folders in the …
Copy a BigQuery model into another dataset using bq command line tool
When creating or building a BigQuery Machine Learning model, the model itself is stored inside a BigQuery dataset. The code snippet below shows how to move a model from one …
Trigger an Airflow DAG in Google Cloud Composer using gcloud command line tool
A code snippet showing how to trigger a DAG in Cloud Composer (managed Airflow) using the gcloud command line tool.
Loading data into SQLite
Different approaches to load data into a SQLite database using the following Python libraries: Pandas Using the pandas library (alongside click, and uv) to load a csv file into a …
A command line tool to get csv summaries using Sweetviz
Working with data involves handling a lot of data files, most commonly CSV files. It can be very helpful to do some exploratory data analysis on the CSV file to …