nginx: useful basic authbasic auth doesn't get the love it deserves. sure, it's not as fancy as other authentication models out there, it's basic auth, after all. but if you want to stand up some fast authentication to limit your staging site to the dev team or restrict api...13 min read·gbhorwood.hashnode.devAug 13, 2025
php: manipulating file pointers with fseek and ftellphp developers generally don't put a lot of thought into reading files from disk. we usually just call file or file_get_contents or similar, shovel the whole thing into ram, and then fight with the resulting array or string. if we want to do simple t...10 min read·gbhorwood.hashnode.devJul 23, 2025
php: writing command-line applications with macrame. pt 2in this series, we've been looking at how to write command line applications in php using macrame. in the previous installment, we covered the basic structure of macrame scripts, getting user input both as text and from interactive menus, parsing com...13 min read·gbhorwood.hashnode.devFeb 20, 2025
php: writing command-line applications with macrame. pt 1php doesn't get a lot of attention as a command line scripting language. which is a shame, since php has a lot of features that make it a good choice for writing terminal apps. in this series, we'll be going over writing interactive command line scri...12 min read·gbhorwood.hashnode.devFeb 20, 2025
vim: five tips to become a more mediocre vim useri am a mediocre vim user. sure, i've been using vim for over twenty years, have handcrafted a custom vimrc, and even written a syntax file, but for my day-to-day usage, my skills are resoundingly and undeniably mediocre. this is a good place to be. p...7 min read·gbhorwood.hashnode.devSep 30, 2024