Linux

Linux is a family of open-source Unix-like operating systems based on the Linux kernel. Some of the most popular Linux distributions include Debian, Fedora, and Ubuntu.

www.linux.org

chrome fv2MgTNCAE - Backup WordPress files and database via SSH

Backup WordPress files and database via SSH

This one-liner will backup your WordPress files and database into a directory name with today’s date. mkdir -p ../backup/$(date +%Y-%m-%d) ; mysqldump $(grep DB_NAME wp-config.php | grep -v WP_CACHE_KEY_SALT | cut -d \' -f 4) | gzip > ...

image 12 - Find and truncate all files in the oldest subdirectory

Find and truncate all files in the oldest subdirectory

This command will search for directories in the current directory and its subdirectories, find the oldest subdirectory in each directory, and display them on to screen: find . -maxdepth 1 -type d -exec sh -c 'oldest_folder=$(ls -ltr "$1" | awk "/^d/...

image 8 - iOS Universal Links not working behind Cloudflare

iOS Universal Links not working behind Cloudflare

Support universal links are used for iOS developers so that users can tap a link to the website and get seamlessly redirected to their installed app without going through Safari. Apple has pretty well-explained documentation on how to setup...

chrome DZMflbXKid - Use AbuseIPDB API to block bad IP's on ConfigServer Firewall

Use AbuseIPDB API to block bad IP’s on ConfigServer Firewall

AbuseIPDB has a free API plan that will allow you to get a list of up to 10.000 blacklisted IP addresses that are currently reported for malicious activity. On a Linux server, we can use this data to automatically block that bad IP traffic from our...

chrome 5diVZc2Qed - Block Free Proxy and Tor IP Addresses with CSF Firewall

Block Free Proxy and Tor IP Addresses with CSF Firewall

To block Block Free Proxy and Tor IP Addresses with CSF Firewall edit: nano /etc/csf/csf.blocklists and add: # Name: PROXYSPY # Information: Open proxies (updated hourly) PROXYSPY|86400|0| # Name: XROXY # Information: Open proxies (this list is...

image 8 - 2 ways to Install SSL in VestaCP

2 ways to Install SSL in VestaCP

Installing an SSL via Vesta Control Panel Installing a free Let’s Encrypt SSL via terminal Installing SSL via Vesta Control Panel To add a SSL to a website in Vesta, you must first complete the following: Add the domain name Change DNS to the...

chrome n4SE3pYocj - BASH Scripting – Conditional Statements (if-then, else, elif)

BASH Scripting – Conditional Statements (if-then, else, elif)

In this tutorial, we will be discussing some of the conditional statements (aka structured commands). Firstly, what are Conditional statements ? In a BASH scripts, commands run sequentially that means first line will be executed first, then next one...

nginx nodejs configuration - Nginx Configuration file example for NodeJS App

Nginx Configuration file example for NodeJS App

Nginx Configuration file example for NodeJS App: server { listen 80; server_name domain.com; # redirect everything to https return 301 ; } server { listen 443 ssl; ssl on; ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;...