Ramblings from a startup addict and Techpreneur!

Category Archives

Archive of posts published in the category: Programming

Automatically provision new nginx sites on Arch Linux or Ubuntu (Script with tutorial)

Easily create, setup, enable and disable nginx VHOSTS

So one thing I hate as a developer is re-configuring everything a hundred times every time I decide I want to launch a new side project or test app. So to make life easy I developed a bash script that does everything for…

FreeCodeCamp Bonfire Challenge Solutions

In order to help land that coding job I’ve been dreaming of, and since I’m currently unemployed, I thought I’d use spare time where I’m not coding on something cool, or applying for dev jobs to work on my craft. Beginner Algorithm Scripting…

How to keep tables uncluttered by using profiles for each user type in Ruby on Rails

This is a continuation of my STI / Single Table Inheritance article: “How to use multiple User types with the same model in Rails aka STI or Single Table Inheritance“ To keep your tables less cluttered and better normalized, I do recommend creating…

How to Use Multiple User Types (STI or Single Table Inheritance) with the Same Model in Ruby on Rails

Ruby on Rails

Lately, I’ve been building a complex CRM for music teachers to manage students, invoicing, etc… It’s gotten a bit complicated, and I myself have learned a lot from this side project. One important thing I’ve learned is STI, or Single Table Inheritance. Basically,…

How to Use Local Environment as Default in Laravel Artisan CLI

I have to say, I absolutely LOVE Laravel – everything about it. One of my favorite features is the ability to separate your app into local/production versions. I use a lot of packages for development, that I just don’t need on my production…

How to setup Local and Production environments on Laravel

One great feature of Laravel is how easy it is to setup local and dev environments. Why would you want separate environments? Require separate packages for dev, and production. Less bloat / potential for errors on production. Turn off debug on production. Special…