I use Unison to sync code between my local machine and my dev servers. To sync between two servers, it requires that the same version of Unison be installed on both servers.
Now, this isn’t usually a big deal, because once you get Unison set up, it’s set up. But, I usually get a bit frustrated when setting up a new development machine and ensuring that it has the same Unison version as my remote server.
Most recently, I needed to get Unison 2.48.4 on my local Mac so that it matched my remote server. BUT, homebrew didn’t support Unison 2.48.4.
So, after getting some feedback from one of my coworkers, we came up with the following. Maybe you’ll find it helpful.
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core git checkout 05460e0bf3ae5f1a15ae40315940b2d39dd6ac52 Formula/unison.rb brew install --force-bottle unison git checkout master
Recently, when I was trying to download a gif file from Giphy, I noticed that when I went directly to the file, https://media.giphy.com/media/14kdiJUblbWBXy/giphy.gif for example, that it was actually loading a web page instead of the gif file. 😞
I figured that they were probably detecting that based on who/where the request was coming from, so I tried downloading the gif file by running a cURL command:
curl https://media.giphy.com/media/KXgJsSeOfvSgg/giphy.gif --output ~/Desktop/download.gif
This resulted in the actual gif file that I wanted being placed on my Desktop as
If you landed here, then hopefully you’ll find this little workaround helpful. 😄