photography 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/
rsync 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
ubuntu Free SSL Encryption using Certbot and LetsEncrypt Lets be honest folks. If SSL encryption is available free of charge and was easy to implement, wouldn't it be foolish not to use it? Here are some snippets to get you started using letsencrypt on your Ubuntu 16 LTS machine running Apache2. 1. Remove Letsencrypt (If previously installed)###### sudo
ubuntu Ubuntu - Preload Answers to Apt Install Whenever I install a package on a server I always create a bash provisioning script of the process so I can easily reproduce the installation in the future. One of the roadblocks you may run into while attempting to script an install is answering prompted questions for the install. Luckily
osx OS X Sceenshot Directory Tired of a cluttered desktop? Yeah me too. Execute the following command in your terminal and your screenshots will be stored out of the way in your Documents/Screenshots directory. mkdir -p ~/Documents/Screenshots && defaults write com.apple.screencapture location ~/Documents/Screenshots && killall SystemUIServer Command Breakdown
coding Delete LetsEncrypt Certificate from chain Ok, so LetsEncrypt is awesome but it has one MAJOR pitfall as of version 0.4.1-1 on Ubuntu, there is no delete option for the cli. There is however a workaround that will allow you to remove the domain from the cert renewal process and the chain. sudo rm
coding jQuery animated skill bars for your web resume To see a working example of the skill bars. Go to Example The HTML Use the following html where you would like to have a skill bar section added. <!-- Use a heading to reveal the skills section --> <a href="javascript:void(0)" class=
coding Search for files using google Searching the Internet for downloadable content is pretty easy since there are a lot of people out there hosting "files" for their personal use. What they don't know/don't care about is that google is indexing their public apache or nginx webroot. We can easily search for the
coding Help me \Rhonda Let's face it. We can all use a little help sometimes. Rhonda Helper was born out of a desire to write less code when developing with PHP. It addresses some common issues and tasks that need to be accomplished when developing in PHP. Check out the Rhonda Helper documentation for
coding Google places jQuery plugin Getting reviews onto your website shouldn't be difficult. I made the Google places jQuery plugin to give a quick path to showing some reviews on a website based on the google place ID. Install it with bower $ bower install google-places Check out the documentation for more details google places plugin
coding Website benchmarking with ApacheBench I was recently introduced to a tool to help with my web development by giving me some benchmark results. This will allow you to emulate multiple users accessing your site and to verify that the load times are acceptable. ApacheBench, which is bundled with the standard distribution of Apache will
PHP geocode an address using Google In order to calculate distance between two points on a map you first need to have the Latitude and Longitude of your two locations. This snippet of code is one that I am using when a user registers their address in the sign up process. It seemed much more efficient