Skip to content

Instantly share code, notes, and snippets.

View taidos's full-sized avatar
🎯
Focusing

Carlos Faustino taidos

🎯
Focusing
View GitHub Profile
@taidos
taidos / install-varnish.sh
Created January 6, 2022 19:49 — forked from haisum/install-varnish.sh
Varnish Installation on Cpanel or Whm
#!/bin/bash
# This script installs VARNISH Cache along side Apache on cPanel servers.
#This script installs VARNISH, changes the Apache port to 82, writes
# some config files, starts VARNISH, and terminates.
### Made by Shubham Mathur (itseasy21)
#-Colors :D
RED='\033[01;31m'
#Check for cPanel
if [[ -d "/scripts" ]];then
echo "cpanel detected"
echo "Update cPanel? [y|n]"
read CPAN
if [ `echo $CPAN | egrep '(y|yes)'` ]; then
/scripts/upcp --force
fi
else
echo "No cPanel detected!"
@taidos
taidos / domlogs.sh
Created January 6, 2022 19:44 — forked from inetbiz/domlogs.sh
Preserve cpanel domain logs to a secondary hard drive.
#!/bin/sh
# Log rotate script created by Denver Prophit Jr.
# https://www.google.com/+DenverprophitJr
# Version 0.2-beta
# Are we already runnig? Twice runs is bad thing
if [ -f /tmp/domlogs.flag ]; then echo "Already running!"; exit 2; fi
# Flag is indicating, that we running
@taidos
taidos / cpanel-customise.sh
Created January 6, 2022 19:41 — forked from brendanbbbb/cpanel-customise.sh
Cpanel custom settings
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
HOSTNAME=$(hostname -f)
PASSV_PORT="50000:50100"
SSH_PORT=2022
PASSV_MIN=$(echo $PASSV_PORT | cut -d':' -f1)
PASSV_MAX=$(echo $PASSV_PORT | cut -d':' -f2)
ISVPS=$(((dmidecode -t system 2>/dev/null | grep "Manufacturer" | grep -i 'VMware\|KVM\|Bochs\|Virtual\|HVM' > /dev/null) || [ -f /proc/vz/veinfo ]) && echo "SI" || echo "NO")
@taidos
taidos / auto_plesk_trial.php
Created December 23, 2021 11:12 — forked from likecyber/auto_plesk_trial.php
Auto Plesk Trial Renewal (using Anti-Captcha to solve ReCaptcha)
<?php
/*
Make sure to enter $anticaptcha_key before upload to server.
Upload "auto_plesk_trial.php" file to "/home/centos/auto_plesk_trial.php"
Then create Schedule Task in Root account of Plesk.
Task Type: Run a PHP script
Script path: /home/centos/auto_plesk_trial.php
@taidos
taidos / host
Created December 23, 2021 10:49 — forked from piticu81/host
host
A00G00-KZGW08-7J9Z67-S4A380-NFEF54
#!/bin/bash
# Set edition type for activation as host / pro / admin
edition=pro
#
# *************** do not change below this line ***************
#
key=$(/usr/bin/wget url/${edition} -q -O -)
key_id=$(/usr/sbin/plesk bin keyinfo --list | grep plesk_key_id | grep -Eo '[[:alpha:]]{4}[[:digit:]]{12}')
lim_date=$(/usr/sbin/plesk bin keyinfo --list | grep lim_date | grep -Eo '[[:digit:]]{8}')
# plesk_key_id: plsk000000000000 | lim_date: -1
@taidos
taidos / Create-PleskLicense.ps1
Created December 23, 2021 10:33 — forked from daniloalsilva/Create-PleskLicense.ps1
Script used to create and retrieve a plesk license contents
<#
.Synopsis
Plesk Licensing script
.DESCRIPTION
Plesk Licensing script
This script intend to create a new license key in Plesk via API and
retrieve the XML content of created key in a plesk node.
@taidos
taidos / backup-providers.md
Created October 31, 2021 07:06 — forked from weakish/backup-providers.md
reviews of vps, storage, mail forward
#New host
#Create a bank LV the same size as the source
lvcreate -L 400G -n kvm133_img vm_vg
#Old Host
#Creat a snapshot to stop any new data being written to the 400G LV, All changes get written to the snap lv now
lvcreate --snapshot -L10G -n kvm133-snap /dev/4tb_raid_vg/kvm133_img