Tag: Dev Env

WSL1 became unusable – I finally switched to WSL2

When WSL1 first appeared I was pretty excited, a lot of people claim today that because WSL, Windows is the best platform for developers, personally these days I think any OS from the big three can act as a perfect developing platform since many of us use docker anyway.

But back to WSL1, what I really liked was the WSL1 was Cygwin on steroids a kind of “Linux Wine”, and that meant a lot from the perspective of OS development, because it really was a step in the direction of merging OSes rather than have yet another virtual machine.

I mostly switched to WSL2 because I grew tired of my applications crashing because WSL1 was missing some implementations, and I thought I wasted enough time on workarounds like setting Nginx buffering to off, replacing libc libraries, replace system binaries with custom scripts, replacing apt repos with custom ones, adding custom apt repos, changing network IP version preference, avoid using Unix sockets and so on and on(but even TCP wasn’t fully implemented, constantly you could bumble into TCP_INFO error), so basically WSL1 is not extremely stable. View full article

Set of commands for a quick Laravel install on RedHat 7.3

If you want to install Laravel on a RedHat 7.3 OS, you will have to use PHP 7.0.* as this is a Laravel minimum requirement, so this is the set of commands that I used in order to configure the needed software for Laravel. ( you can also download the set of commands as a text file below).

Also, I would like to mention that I generally prefer Nginx over Apache, and HTTPS obviously, but this is just a quick setup.

Commands:

#--- AutoStart network interface
nmtui
 
#--- Open FireWall 80
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
 
#--- Check the updated rules with:(optional)
firewall-cmd --list-all
 
#--- Delete PHP 5.4
yum list php
yum remove php.x86_64
View full article

Set up a quick local web developer station through HTTPS only

From that start, I should be more precise, since otherwise, the title length will make most of the people be confused. So in fact, the story is like this, you usually have a bunch of VPSs or Linux machines but you like to have also a web server on your local machine that happens to run windows. And for that even though when you deploy a web app you might use another type of server, we all know that currently if you use a Windows-based machine you better go with apache. Only that in some recent windows ports(around the time of the first php7 official releases) of apache either from ApacheLonge or Apache Haus, I got some problems with running them under HTTP protocol. View full article

Personal GitLab on a home bare metal through Reverse proxy

If you don’t want all your repositories on GitHub or other project hosting platforms, you can choose Gitlab. I guess you already know what GitLab is. It is very similar to the Gitlab platform and the best thing is that hosting is on your server, you can have private/internal/public repositories. You have some kind of open source security software that you can be used for nefarious uses, you want to make the source public but some big companies consider that this kind of code is not “open source”.Simple use your server and do what you want. I’ll show my configuration for a GitLab, I use SSL for the proxy that accesses a local server on non-SSL. View full article