AboutJunior backend/devops developer and student
Skillsphp, mysql, docker, ansible, docker-compose, symfony, redis caching
Joined devRant on 3/4/2019
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
School gave me 3 DigitalOcean droplets to try out Kubernetes in the cloud, awesome!
Wrote an Ansible script to not only simply install docker and add users but also add kubernetes, nice!
Oh wait, error?! Well I should've known this wasn't going to be easy... ah well no problem. Let's see... Ansible is cryptic as always, it can't connect to the API server? Is it even running?
Let's ssh to the master, ah nothing is running, great. Let's try out kubeadm init and see what happens, oh gosh, my Docker version has not been validated! No problem, let's just downgrade!
How do I do that? Oh I know, change the version in the role! Wait that version doesn't exit? Let's travel to Docker's website and see what versions exist of docker-ce, oh I see, it needs a subversion, no problem.
Oh that errors too? Wait then what... Oh I need a ~ and a ubuntu and a 0 somewhere, my mistake!
Let's run it again! Fails!
Same ssh process, oh wait...
Oh god no...
Kubernetes requires 2 cores and these things only have 1...
Welp, time to ask the teachers to resize my droplet by a small amount tomorrow, hopefully I'll get a new error!
My adventure so far with Kubernetes. I'm not installing it for any serious/prod reason, just for educational purposes. K8s seems like 'endgame' to me, like one of the 'big guys' that big enterprises use so I'm eager to throw stuff at a droplet and see what happens.
Going further down the rabbit hole tomorrow!
Wish me luck :3
(And yes, I could've figured this all out beforehand with documentation, but this is more fun in my opinion)7
This happens more often than I'd like to admit...
(repost since the other one contained sensitive information)6
This is the second month that I'll actually earn money from developing software at my job, I'm so happy to finally see all the (self-)studying and late-night coding shed its fruits 😍5
We just started a new project at work
The best part: You can't break production if it doesn't exist yet!1
"Welcome to everybody's favorite show: Did It Break!?!"
"Here's our first contestant, Alex Brooklyn!"
* Audience claps *
''Tell us Alex, what command did you use?!"
"And did it break production?!"
Not yet..., the website is still up, even checked without cache and on a different network, I haven't had any calls in half an hour and Sentry reports nothing
"Great to hear! On to round 2!"13
Bless websites that allow you to insert emoji's by using the : in the input box.
I hate it when I have to search for the thinking emoji and not being able to use :thinking:5
Screw some PHP builtin functions, why does imagecreatefrompng require a quality modifier between 0 and 9 and imagecreatefromjpeg one from 0 to 100, makes no sense!4
My first rant/rage/despair moment ever was in university during a Java course where I thought I had completely lost the plot at the first exercise.
I was misspelling system.out.println() and kept writing down system.out.print1n()
That was a long day... :/
Luckily I never make 4-hour debug typo's anymore now that I'm a real developer (I wish)3
Professor: You may use all the offline material on your computer while taking the exam
Me: Downloads 50 stack overflow and tutorials point pages as PDF just in case I get an error I can't solve or forget basic syntax
At least we don't have to do it on paper...
I hate the thought of getting stuck on something that would require 5 seconds of Googling to solve during an exam :/11
Me: * Has roughly 1.5 years of PHP experience *
LinkedIn recruiter: Hello Java expert with lots of Oracle enterprise experience, wanna call?7
Me: * Browses devRant for about 10 minutes *
Phone: 0 notifications
Me: * Puts phone in pocket *
Phone: * seizures in pocket *
Phone: 3 new Jira issues, 9 Sentry warnings about critical bugs, 2 emails from my boss, roughly 60 Whatsapp messages and 3 new notifs on Slack
Why does this happen so often :/4
I once found a bug that I couldn't figure out from the code, so I started putting log statements that would print out the variables on screen (yes I have xDebug, but old habits die hard). Then the entire website didn't load anymore and eventually the entire container crashed.
It took me an hour to realize I was trying to var_dump an object from the ORM, resulting in a memory overload since there were like 20 related objects that recursively tried to load all the data in the database.
In my defense, it was friday afternoon...
What's better in general:
#1 master merge -> production
#2 master merge -> button -> production
At work we currently use #2 because sometimes we need to make manual changes or update images on prod before we can fully update the code
Edit: This should have been a 'question' not a joke/meme, sorry about that
Had to take the bus because train people are on a a strike, almost lost public transport card, almost lost usb cable, train decides to leave right in front of my nose, I arrive late in class, grub doesn't boot unless I plug in my external ssd, headache raging...
Luckily grub works again and I had a wonderful lunch with a capacio sandwhich 😋
So how was your monday? :)6
It feels SO good to have nothing to lose on your system! Code on GitHub, pictures on an external disk, documents on Google Drive and OneDrive and bookmarks etc. on my Google Account. If my PC were to crash completely then I wouldn't be as lost as I'd normally be :D3
Is there any excuse for NOT having a HTTPS connection nowadays?
My university has so many unprotected subdomains that we're supposed to use and LOGIN ON that are not protected. Although these login forms are https protected the rest is not and seems sketchy.35
Tried installing Antergos on an external 1TB SSD to give it a try after having checkout Mint, now my laptop won't boot from it anymore after having removed and reinserted the disk and it skips to Ubuntu's grub on my HDD or windows.
Ubuntu's grub does show antegros whenever the ssd is plugged in though, and then I get this error while trying to boot it. Also changing the boot order doesn't do much and it skips to the next thing on the list.
I'm probably going to overwrite antergos and try to use portable antergos on it, perhaps it wasn't made to hoot from a removable drive. Ubuntu and windows still work fine but ubuntu is on my hdd because the internal ssd is full of windows, and super slow.
So now I have a partitioned ssd that doesn't work and a grub entry that gives an error ugh :/ (and a slow ubuntu but that's not as bad)
Anyone else have any idea of what happened? I have definitely seen antergos work before packing up and removing the drive, so the installation was succesful.7
My keychain is getting heavy.
I have my house key ofcourse, then there is a short chain for my car keys, and last but not least 3 flash drives with different linux distributions1
So during my internship I learned a lot about Linux, Docker and servers and I recently switched from a shared hosting to my own VPS. On this VPS I currently have one nginx server running that serves a static ReactJs application. This is temponarily, I SFTP-ed the build files to the server and added a config file for ssl, ciphers and dhparams. I plan to change it later to a nextjs application with a ci/di pipeline etc. I also added a 'runuser' that owns the /srv/web directory in which the webserver files are located. Ssh has passwords disabled and my private keys have passphrases.
Now that I it's been running for a few days I noticed a lot of requests from botnets that tried to access phpmyadmin and adminpanels on my server which gave me quite a scare. Luckily my website does not have a backend and I would never expose phpmyadmin like that if I did have it.
Now my question is:
Do you guys know any good articles or have tips and tricks for securing my server and future projects? Are there any good practices that I should absolutely read and follow? (Like not exposing server details etc., php version, rate limiting). I really want to move forward with my quest for knowledge and feel like I should have a good basis when it comes to managing a server, especially with the current privacy laws in place.
Thanks in advance for enduring my rant and infodump 😅7
Waiting till 2 hours after midnight to make sure I get <firstname>.dev in the auction.
Luckily I have wine and Youtube6
Anyone else currently in an auction for a .dev domain? If so, how much would you be willing to spend on it? And how much do you want it?
I'm currently in a closed auction for <firstname>.dev and there seem to be 2 bidders including me, the price is still $155
It took me an entire hour to figure out why my https gave me a Connection Refused error in my browser. Apparently I had configured port 433 to be published instead of 443, another hour wasted.1