Global Git Ignore

Recently I was trying to add some folders to my global .gitignore file on windows. Unfortunately I ran into some issues. After some searching, I couldn’t come across a solution that worked for me. Here are the steps that worked for me.

Add to Global Git ignore Windows

  1. git config –global core.excludesfile ~/.gitignore_global (Add .gitignore_global as the global gitignore file in your global git config)
  2. touch ~/.gitignore_global (Create .gitignore_global in your home directory)
  3. Now just edit your ~/.gitignore_global file and add any files or folder you would like to ignore

Add to Global Git ignore Mac

  1. git config –global core.excludesfile ~/.gitignore_global (Add .gitignore_global as the global gitignore file in your global git config)
  2. sudo nano ~/.gitignore_global (can edit your .gitignore_global file and add any files or folder you would like to ignore. Use ctrl + y to save and exit)

Leave a comment if these steps helped in any way!

Stress Test with Loader.io

Ever wonder how many requests your $5 a month Digital Ocean server can handle? Using Loader.io’s free load testing tool can help you do just that! It’s a good idea to know what your server can handle so you can be prepared to handle large spikes in traffic. This could mean increasing the specs on your current server, adding a load balancer or using round robin dns to distribute the request to multiple servers. (more…)

Round Robin DNS

In a previous post, I’ve covered how I used Digital Ocean’s load balancer to handle the increasing number of request my Weather Extension receives. For weeks everything was going great but about a month ago I started having issues with DO load balancer. Users were receiving 522 (timeouts) errors. DO claimed my servers were the issue. After some testing, I realized that around 1,000 requests a minute, Digital Ocean’s load balancer started failing even though they claim to not limit the number of requests. (more…)

Ways to Improve Laravel Performance

Over the past few months my Weather Extension has grown to over 118,000+ users and averages 14 req/sec. Weather uses Laravel primarily as an api and VueJs to render the html. Speed is very important. Currently Weather is hosted on a $40 a month Digital Ocean server. Since Weather is free, I’ve tried my best to keep cost low. Here are a few changes I’ve made to improve the performance of my Laravel app. (more…)

What is Flexbox

If you are a web developer you probably have heard of Flexbox. Flexbox is becoming the new way to layout web pages and solves some of the issues when using floats. When considering using new features, you should always check browser support. Luckily today most browsers support flexbox.

If you are interested in learning more about flexbox, Wes Bos has a great video series on it. He also recently release a free Javacript30 course which covers a lot of flexbox. He does a great job making things simple and using real world examples. Check out the video below. (more…)