Sync your uploads
February 17, 2020
I’ve had to do this a few times recently and I had to keep looping through my bash history to find it.
If you need to pull down your prod / staging uploads directory from a server you have ssh access to:
$ rsync -a user@server:/path/to/server_uploads_directory /path/to/local_uploads_directory
Chrome bugging you about insecure connections on localhost?
Sick of clicking Trust this site on your own Localhost. Like seriously chrome 🤦🏼♂️
Exclude a folder from your git diff
Need a way to show your git diff in your terminal while excluding a folder from your results? While boy do I have a trick for you!
Get Cloudflare geolocation data client side
Cloudflare provide a very handy HTTP Header called `CF-IPCountry` which you can use to detect your users geolocation but there is another way.
What y’all thought