bash She Bang Bin Bash Apparently, Apple is being a big baby and not installing a modern version of bash on macOs any longer. macOs is currently shipping with bash version 3. This is fine in most cases but what if you want to use some of the modern conveniences that come with bash >
astrophotography Burn exif meta data to photos People always ask me "what were your camera settings for that photo", so I wrote some bash functions to burn the relevant data to the bottom of the image. The following bash functions assume a few things: you are on a Mac or Linux systemYou know how to modify your
astrophotography Strawberry Super Moon Best shot I could get of the strawberry super moon with a foreground object. The humidity was definitely a factor in the focus here.
astrophotography Shoot the Moon Unfortunately, it was raining for the lunar eclipse where I live so I got out a couple days before, and a day after to get some photos of the moon. Canon EOS 80D + 150-600mm F5-6.3 DG OS HSM | Contemporary 015 @ 600.0 mm, ISO 800, 1/800 seconds, f/
coding Netcat Tar Pipe Lets face it, sometimes we need to move massive amounts of data between servers. wouldn't it be great if it wasn't so darn slow? In some cases rsync would do the job just fine, but it gets slowed down when it has to do checksum checks before and after a
GitLab SSL certificate error Modify the letsencrypt rb file to disable the staging cert section sudo vi /opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb comment out the following block acme_certificate 'staging' do alt_names new_resource.alt_names unless new_resource.alt_names.empty? key_size new_resource.key_size
git Lint Typescript Before pushing with Pre Push Hooks If you aren't linting your Typescript before pushing your code, you are probably pushing bugs.
linux Useful Linux Commands Here are some useful linux commands for the terminal that are not as widely known or used. Many of them can also be used on MacOs as well.
git Add branch name to commit messages Let's face it. we have to do some "paper pushing" as a developer sometimes so that all the company's tools work together. USE CASE: As a developer, we are required to add the JIRA ticket number to our commit messages so that the Product Owner and Stakeholders can see what
big sur Case Sensitive Git on a Mac like a Boss (APFS) By default, MacOs uses a filesystem format that is not case sensitive APFS. That means that the directories a and A are essentially the same. This is a problem when working collaboratively with people using Linux or another case sensitive file system
big sur VS Code Big Sur Terminal Lag If you are dealing with terminal lag with the integrated terminal in vs code since upgrading MacOs to Big Sur, you're not alone. Drop the following command into your terminal. codesign --remove-signature /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Code\ Helper\ \(Renderer\).app Then restart vs code
spotify Deac's Periodic Rotator This playlist rotates periodically, check back or subscribe to it for the latest tunes.
Downgrade Homebrew Cask installed version of package The techniques herein have been ported from the fantastic blog post located here Cask file You can modify a cask file so it will force brew to install an older version of a package # List installed packages brew cask list # Edit Cask file brew cask edit <PackageName> # e.
ubuntu Ubuntu No space left on device with plenty of space left When attempting to use tab completion on my ubuntu 16.04 box running on an AWS EC2 instance I was greeted with the following error in the terminal. cannot create temp file for here-document: No space left on device with plenty of space left I ran the following command to
apache Apache Multi Instance & Simultaneous PHP Versions There are plenty of reasons you might want to use multiple versions of PHP on a server. In my case I needed to set up a staging server that will be used to demo various websites and web apps that have different PHP requirements. The following diagram shows the flow
coding Omnibus GitLab and additional Nginx virtual hosts So you have a beast of a machine running GitLab and your like, "Man I feel like this thing could probably host some static websites too". Well, you're in luck. The following procedures will have you running additional virtual hosts with the nginx server that is installed with
git Case Sensitive Git on a Mac like a Boss The Problem By default, MacOs uses a filesystem format that is not case sensitive Mac OS Extended (Journaled). That means that the directories a and A are essentially the same. This is a problem when working collaboratively with people using Linux or another case sensitive file system. Real world Example