About
π¦ Hi there
Installing Fail2Ban on your (home)server
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!
Parameters in bash script
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.
How to generate BarCode in Laravel
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.
Better deletion of files with Trash
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.
Create a directory and go into it.
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.
How to Push an Existing Project to Github
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.