/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

third-bit.com
| | brandont.dev
4.2 parsecs away

Travel
| | [AI summary] This post explains how to use Git hooks to create an automated CI/CD pipeline for deploying static websites to a remote VPS.
| | osc.garden
4.1 parsecs away

Travel
| | In order to keep the 'Last updated' field of posts always accurate, I automated its modification with a custom Git pre-commit hook.
| | vlad.website
4.0 parsecs away

Travel
| | Sometimes, you want to add some code to test something out, but you definitely want to make sure you don't git commit it. Of course, you should always check the output of git diff before you make a commit (you do, right?), but if you have a lot of changes things can slip through the cracks. A solution is to write a comment containing a string such as "nocheckin": function do_stuff() { printf("hello!!! testing!!!\n"); // nocheckin call_important_thing(); call_other_thing(); } Then, you need to set git up such that it refuses to make a commit if it detects the "nocheckin" string anywhere in your changed files. Here's how to do it.
| | wittchen.io
18.4 parsecs away

Travel
| Introduction I have my own tiny Python project called spotify-cli-linux, which is (surprise!) command line interface for Spotify desktop app on Linux. Python is not my primary programming language and I work more with Java. Nevertheless, I find this language enjoyable and useful in many cases, so I try to learn something new about it from time to time. In the beginning, I've provided instructions how to install my Python script in the system via curl and wget, which is fine, but it's not recommended and ...