Senior Dev & Project Lead.
🔬 12+ years in Python, Go, Javascript, Sql, Swift
🧮 Devops
- New Delhi
-
21:54
(UTC +05:30)
Pinned Loading
-
Postgres Daily Backup Bash Script + ...
Postgres Daily Backup Bash Script + Get Credentials from .env 1# This script is used to backup postgresql database to a file
2# 1. Keep the backup file for 30 days
3# 2. Intended to be run from cron
4# 3. Read DB credentials from .env file next to the script
5# 4. Restore the backup with the following command in psql
-
This bash script automates the proce...
This bash script automates the process of daily backups for all MySQL/MariaDB databases on a Linux server. It stores each database backup in a dedicated directory under /var/backups/mysql/ and names the backup files using the format <database_name>_<date_time>.sql. Additionally, the script includes a cleanup function that deletes backups older than 30 days, ensuring efficient disk space management. 1#!/bin/bash
23# backup_mysql_db.sh
4# This script backs up each MySQL/MariaDB database into its own file daily.
5# The backups are stored in /var/backups/mysql/<database_name>/<database_name>_<date_time>.sql
-
razorpay/razorpay-woocommerce
razorpay/razorpay-woocommerce PublicRazorpay Payment Extension for Woocommerce
-
Wordpress Automated Themes, Plugins ...
Wordpress Automated Themes, Plugins & Core Updates - Bash Script - Run as Cron Job 1#!/bin/bash
23# This script is designed to update WordPress core, plugins, and themes,
4# set correct file permissions, and restart Nginx and PHP-FPM services.
5# Update www-data user to the filesystem user of WP.
-
Wordpress/PHP DDOS Protection + Hard...
Wordpress/PHP DDOS Protection + Harden PHP on Nginx (2024) 1# PHP DDOS Protection + Harden PHP on Nginx (2022)
2# Created as per latest security standards
3# includes protection against DDOS, SQL injections, Comment spam, Php code injection and more
4# 444 is returned in most places as it's the most appropriate response code for hackers.
5# Some wordpress url's are also blocked as most bots often hit those urls no matter the site is running on wordpress or not
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.