I can’t state how many times I have an idea for a side project. Start it, and scrap it. A lot of that is my ADHD, but one thing that I hate about Laravel’s installer and boilerplate is I ALWAYS have to edit the .env.
There’s a few things though that never change from project to project.
I always run a script that creates a symlink from ~/sites/appname ~ path/to/app/public.
My default NGINX site config automatically creates all .test domains for any symlink…
We don’t need to know every intrinsic detail, who has time for that? Maybe if we worked for a company that gave us 20% off to work on self-learning. …
Imagine being able to simply create a new project (we’ll use laravel for an example), run the command:
$ laravel new testapp && cd testapp && nsc
Then automatically having testapp.test work in the browser and show your laravel site.
This is what I created and it works beautifully. Laravel is my framework of choice, but you can tweak things to work for most things if you try.
Aka how to create a dynamic catch-all nginx config. (Mostly for laravel, but should work w/ any flow if you make some mods).
I absolutely hate editing configs all the time, and I probably create new laravel installs all the freaking time.
Today I finally got sick of the old workflow:
$ sudo cp /etc/nginx/sites-available/site1.test /etc/nginx/sites-available/site2.test
$ sudo ln -s /etc/nginx/sites-available/site2.test /etc/nginx/sites-enabled/site2.test
### edit site2.test
$ sudo systemctl restart nginx
I develop on arch linux and don’t much like vagrant, docker, etc for local development. I’d rather go barebones with php-fpm and nginx.
I also develop mostly under my home…
Systemd is a system manager and “init system” that is the standard for most linux distros as of 2019. If you’re just getting started with linux or have been using older versions and wanting to get up to date with the latest & greatest practices in linux-land then you definitely need to know how to get around systemd.
This particular article will be…
Often when I’m trying out new devtools like for instance prisma or hasura, I notice that I’m constantly adding new docker images, containers, etc.. These take up valuable space on my system and can really add up fast.
I often don’t need to come back to these docker instances later on and if I do, there’s usually no foul in just starting from scratch. Till recently I’d just google how do I remove docker containers and images then go through 1 by 1 and remove everything.
It’s not that hard to do, but it gets tedious after awhile, so I…
The idea for this post comes from the recent twitter battle between YCombinator founder Paul Graham and Matthew Prince the founder of Cloudflare over how many of the startups who struggled still had safety nets.
I struggle daily as a freelancer and founder wannabe. Currently I’m working w/ a startup where I ‘sometimes’ get paid, last month I put in 200 hours, but billed for 40 because that’s all they could afford as their app was left in tatters by a shitty Indian outsourcing team.
It’s a mobile app and the backend (php/laravel) has zero code coverage or testing. Instead…
Everyone is always excited to live on the bleeding edge. Iterate fast, drive hard, go to market as soon as possible. Money is a major factor for almost all startups and time is money. To save money the CTO will often work as the solo-developer.
But what happens when that developer gets hit by a bus, or finds a better opportunity?
What happens the next day, when your server goes down and you have nobody to call to fix it?
Coding is in my blood. I was a 4.0 student in High School, but when I got to Community College in 2018, I found the computer lab. I’d spend hours and hours in there working on a shitty geocities website with snowflakes falling, and a dancing baby and the works.
Throughout the early 2000s, I mostly just knew html/css and some small bits of php, and I could install/tweak existing scripts pretty well, but I never thought to do web design as a career, mainly because my ‘design’ skills sucked… but so did everybody else’s (They still do that’s why…
I work mostly with Laravel for backend and Vue for frontend. One day I was working on an Oauth integration and it needed an api key. Sure, I could hard code that, or setup a config.js file to store that in, but that’s just one more place where configuration is needed, one more place future devs might not look when they need to make a change. That just seemed sloppy and messy to me. So I wondered if there’s a way to grab variables from laravel’s .env file and use those inside my Vue components.
Patrick is a geek, coder, developer in and Laravel Developer in Utah. He’s always looking for Freelance work, while building side projects in his spare time.