You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notes on adding low-bandwidth mode detection to Homebrew
Low-bandwidth mode
Goal: Find a way to make Homebrew conscious of when a user is on a low-bandwidth mode WiFi
when running brew commands that may download large files.
Inspiration: I burned ~25% of my monthly LTE plan bandwidth in one day in May 2024 on installing a package that
unbeknownst to me had multiple gigabytes of dependencies.
This is a fun Gantt chart showing when I was exposed to various programming languages or domain-specific languages.
It is of course no indicator of my ability to be productive in them, only when I can remember an approximation of the first time I used them for any purpose.
This was a fun exercise in remembering when I picked up various things for various reasons.
You can see some patterns, like when I was first learning in high school, then college, then my first jobs, then my second, etc.
How to expand an Linux Logical Volume Management (LVM) volume to use a resized virtual disk
How to expand an Linux Logical Volume Management (LVM) volume to use a resized virtual disk
Backstory
A Linux virtual machine I use for hosting containerized services in my home lab recently ran out of disk space.
I decided to allocate more disk space to it since I had plenty to spare.
It turns out that when I'd created the VM, I'd given the virtual hard drive only 200 GB but sometime between then and now,
I'd increased the allocation to 1 TB.
Strangely, I never checked to see if the VM was using the full terabyte!
Frustrated that it wasn't, I set about rectifying the situation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You're running a pool of servers where the servers are numbered sequentially starting from 1. Over time, any given server might explode, in which case its server number is made available for reuse. When a new server is launched, it should be given the lowest available number.
# Write a function which, given the list of currently allocated server numbers, returns the number of the next server to allocate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters