Installing Fail2Ban on your (home)server

May 16, 2023 β€” Conrad Maaijen

At some point you have the idea of installing a server at home becuase you want to store backups or want to share fotos eg. Great idea! Why would you order a vps if you have a space computer and have a internet connection. But as soon as you put the portforwarding rule in your router and you take a look at your log files, it looks like the whole evil world is trying to login at your server at the same time!

Read more...

Comments? Tweet  

Parameters in bash script

May 15, 2023 β€” Conrad Maaijen

Positional Parameters

Arguments passed to a script are processed in the same order in which they’re sent. The indexing of the arguments starts at one, and the first argument can be accessed inside the script using $1. Similarly, the second argument can be accessed using $2, and so on. The positional parameter refers to this representation of the arguments using their position.

Read more...

Comments? Tweet  

How to generate BarCode in Laravel

May 12, 2023 β€” Conrad Maaijen

In this post, we will use a laravel barcode generator example. You will learn how to save generate bar code in laravel. Here, i will create a very basic example of picqer/php-barcode-generator laravel php.

So you can easily generate any barcode by using laravel 8, 9, any version easily. picqer/php-barcode-generator is a very composer package for generate barcode in our laravel 8 application. I can simply generate any svg, png, jpg and html image of barcode.

Read more...

Comments? Tweet  

Better deletion of files with Trash

May 12, 2023 β€” Conrad Maaijen

Ever got to the point when you did a rm delete-me.txt and then realized you made a mistake by deleting this file. Luckily we have a Recycle bin right? Well we have, but the delete-me.txt file is not in it obviously, rm completely removes the file from your computer.

Better would be installing Trash on your machine. Trash moves you file to the Recycle bin like it does when you remove a file using the Finder on a Mac. So let install Trash.

Read more...

Comments? Tweet  

Create a directory and go into it.

May 12, 2023 β€” Conrad Maaijen

Sometime the smallest bash scripts will help you stopping from doing the same thing over and over again. E.g. typing mkdir sample and then cd sample.

Read more...

Comments? Tweet  

How to Push an Existing Project to Github

May 12, 2023 β€” Conrad Maaijen

From your terminal, run the following commands after navigating to the folder you would like to add.

Initialize the Git Repo

Make sure you are in the root directory of the project you want to push to GitHub and run: Note: If you already have an initialized Git repository, you can skip this command.

Read more...

Comments? Tweet  

My first blog post

May 11, 2023 β€” Conrad Maaijen

Read more...

Comments? Tweet