How to safely store credentials in GitHub

It is actually pretty convenient to have credentials and keys stored in the same repository as your codebase. Of course this is unsafe, as anyone (if you're using public repos) can use those credentials to access your infrastructure (databases, servers, 3rd party APIs). So firstly if your code is not for public use, a private [...]

By |2018-04-03T18:58:39+00:00April 3rd, 2018|blog|0 Comments

How to add a subdomain to an existing certificate using certbot

You're probably reading this because you already have a Let's Encrypt certificate issued using certbot for a domain, and now want to add-on subdomains. If you want to create a new certificate, have a look at the end of this article. In my case I already had a certificate which covered golightlyplus.com www.golightlyplus.com I have [...]

By |2018-02-28T06:07:20+00:00February 28th, 2018|blog|3 Comments

How to automatically and permanently delete unwanted emails

Gmail provides the option to filter unwanted emails to your Bin. Click here for the instructions on how to do that. The emails though only get automatically permanently deleted after 30 days. So if you are trying to block someone from emailing you, and you have weak moments and end up checking the trash, you [...]

By |2018-01-23T10:31:04+00:00January 23rd, 2018|blog|0 Comments

How to setup a Node.js server on DigitalOcean

Once your droplet is created and you've ssh'd in, it's time to set some things up.. I start off by installing nvm. You can find the command for the install script here. At the time of writing, I used curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash I needed to exit my terminal, and then ssh back in. [...]

By |2018-01-11T03:26:06+00:00January 10th, 2018|blog|0 Comments

How to setup Nginx for WordPress on DigitalOcean

I decided to switch from Apache to Nginx. I have a couple of WordPress sites on a DigitalOcean droplet, so I needed to reconfigure them to be used with Nginx. I basically followed this guide which was great for most of it, but I was still not getting the sites loading properly (404 errors, forbidden). [...]

By |2018-06-05T19:25:28+00:00January 4th, 2018|blog|1 Comment

How to add encryption (https) to your JavaScript application

I hadn't given too much thought to encrypting the traffic to my applications, until developing for 3rd party services like Facebook Messenger or using service workers require your server to use https. For a full stack JavaScript application we need to setup encrypt on both the front-end and the back-end. Front-End Encryption I'm serving my files (fonts, [...]

By |2016-12-15T04:50:16+00:00December 15th, 2016|blog|0 Comments

How to reduce bank fees as a traveller

As a traveller, using banks can become a headache with all the fees they add to withdraw money from an overseas ATM or when buying things online in another country with our debit or credit cards. After being charged AU$30 for doing a cash withdrawal and buying something online, I started researching exactly how much I [...]

By |2016-11-22T03:39:36+00:00September 3rd, 2015|blog|0 Comments

Frontend Developer’s Support Group

I'm looking at starting a support group for frontend devs. You know who you are.. you live and breathe HTML5, CSS3 and JS. A lot of us work on our own (I think) particularly if we're freelancers. There are already some great resources for tech support like stackoverflow.com But these can be a cold/impersonal even though they [...]

By |2016-11-22T03:39:36+00:00June 12th, 2015|blog|2 Comments

How to display a WordPress feed in an AngularJS app

I have a landing page where I wanted to show my latest articles from a WordPress blog I have. It turns out it's not that hard to do. First I created a factory to get my WordPress feeds https://gist.github.com/magician11/829370d6c02662b159bf Then use this factory from some controller https://gist.github.com/magician11/35569312c39181ebcea2 Then use this data in a view like this [...]

By |2016-11-22T03:39:36+00:00June 8th, 2015|blog|1 Comment