Bash
Ubuntu – restore large file from trash
If you are trying to restore really large file from the ubuntu trash, you could experience some nautilus freeze. You can do easily using shell in a few seconds
If you are trying to restore really large file from the ubuntu trash, you could experience some nautilus freeze. You can do easily using shell in a few seconds
How to capture loopback traffic using wireshark and rawcap. Windows quick tutorial. If you are trying to capture traffic from a machine to itself, that traffic will not be sent over a real network interface, even if it’s being sent to an address on one of the machine’s network adapters. Read more…
Just a list of the common commands that I use on cmd console Copy a file Robust copy – file and folders Delete file Delete recursive a folder Netstat – Connections check Process kill using PID number Tail
Simple rule to rewrite the traffic from index.html to index.php. Useful quick fix for wordpress websites. If you’re using apache httpd server You can deploy this rule inside the .htaccess file, the one inside the root folder, or inside the httpd.conf in the proper section More info: https://httpd.apache.org/docs/2.4/rewrite/flags.html Other webserver Read more…
If you are using a system with dual boot (windows + ubuntu) you can experience a painful bug. Ubuntu, and other unix system, uses a different way to display the time to the user. A quick fix could be install the service timesyncd that provide an internet sync with the Read more…
Ifconfig Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning is needed. Netstat Netstat prints information about the Linux networking subsystem Ps ps displays information Read more…
Simple firewall management tool that uses firewalld deamon Install List all zones Rule management
Certbot it’s an cool tool that automatically enable HTTPS on your website deploying Let’s Encrypt certificates. How to Centos not snap – not anymore supported Snap install See the official guide https://certbot.eff.org/lets-encrypt/centosrhel7-apache To create the certificates Your certificates are deployed (usually) under /etc/letsencrypt/live/domain.tld/ cert.pem is the certificate privkey.pem is the Read more…
A virtual private server (VPS) is a virtual machine sold as a service by an Internet hosting service. To start having fun you need at least: 1vCpu, 2GB RAM e 20GB SSD with 100 mbps bandwidth Then Make sure that you have a root access to the VPS Secure SSH Read more…
Rsync, which stands for “remote sync”, is a remote and local file synchronization tool. It uses an algorithm that minimizes the amount of data copied by only moving the portions of files that have changed. Here an example