November 2022

2022-11-27 15:03 (3 years ago)
Shell Script to Rotate Backup Files Every Few Days

I recently realized that I can rotate backup files (by deleting old files) every few days by sharding the sequential day numbers, which increase by one each day, using modulo 10. Here's the method I've been using lately.

nuxt
2022-11-20 03:29 (3 years ago)
How to Set Up API Proxy to Other Services in Nuxt3

Set up an HTTP proxy to another service's API in Nuxt 3 (Nitro) — the simple `routeRules.proxy` pattern.

Django
2022-11-18 10:16 (3 years ago)
Reading DB Settings from Django Configuration and Copying Data from Production to Staging with mysqldump

I usually write data copy scripts in bash, but I tried writing one in Python this time and decided to document it.

2022-11-16 00:19 (3 years ago)
Exclude Users with is_active = False in Django Admin (Replacing the User Admin)

Python script to copy AWS RDS MySQL data from production to a dev environment fast — table-level `mysqldump` + `mysql` piping.

2022-11-04 08:25 (3 years ago)
Obtaining N Months Ago in Python's datetime Without Using dateutil

Here's an overview of the blog post in English: --- This blog post introduces a function to obtain a datetime N months ago, without using the `dateutil` library. The function was created because `dateutil` was not available in the Python Data Source for Re:dash. ---

Django
2022-11-02 12:34 (3 years ago)
Code to Display the Number of URLs in Django

During an IT audit, it was necessary to represent the scale of the application. To achieve this, I decided to consider the total number of URLs in Django as an indicator of the application's scale.

Categories

Archive