This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * go to whm -> exim configuration manager | |
| * choose advanced editor | |
| * search spamd & replace with this: | |
| spamd_address = 127.0.0.1 11333 variant=rspamd | |
| set smtputf8_advertise_hosts = * | |
| * find and disable greylisting block | |
| * find and disable acl_smtp_data:default_check_message_pre |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use client"; | |
| /* eslint-disable @next/next/no-img-element */ | |
| import Link from "next/link"; | |
| import { useState, useEffect } from 'react'; | |
| import { | |
| AppBskyFeedDefs, | |
| AppBskyFeedPost, | |
| type AppBskyFeedGetPostThread, | |
| } from "@atproto/api"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80 default_server; | |
| server_name readydedis.com www.readydedis.com; | |
| return 301 https://readydedis.com$request_uri; | |
| } | |
| # HTTPS server | |
| # | |
| server { | |
| listen 443; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location ~ /clients/admin/(client!\.php|client/(.*)|table/(.*)|search!\.php|search/(.*)|apps|billing|setup|user|services|addons|domains|utilitiesemailmarketer!\.php|utilities/(.*)|logs|help!\.php|help/license|modules|image/(recent|upload)|validation_com/(.*))/?(.*)$ { | |
| rewrite ^/(.*)$ /clients/admin/index.php?rp=/admin/$1/$2; | |
| } | |
| location ~ /clients/(images/em|invoice|domain|login|invite|password|account|store|download|knowledgebase|announcements|clientarea/ssl-certificates|user/(verification|accounts|profile|password|security|verify)|cart/(domain/renew)|domain/pricing|cart/order|images/kb)/?(.*)$ { | |
| rewrite ^/(.*)$ /clients/index.php?rp=/$1/$2; | |
| } | |
| location ~ /clients/auth/manage/client/links/?(.*)$ { | |
| rewrite ^/(.*)$ /clients/index.php?rp=/auth/manage/client/links$1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Clean WHMCS Logs | |
| * | |
| * Based on the script by @linux4me at: | |
| * https://whmcs.community/topic/289637-database-cleanup-operations-tbllog_register-and-tblactivitylog/ | |
| * | |
| * This script deletes records from the WHMCS `tbllog_register` table that are older than the specified date. | |
| * This is useful for keeping the database size down because WHMCS adds records every 5 minutes when the cron runs. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if [ -f /var/run/rebooting-for-updates ]; then | |
| # start from where we left off on reboot | |
| sed -i '/bash/d' ~/.zshrc | |
| sudo rm -f /var/run/rebooting-for-updates | |
| echo "continuing after shell reload.." | |
| else | |
| echo "running script for the first time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Server-sent events demo (Centrifugo)</title> | |
| <!-- style the indicators: -isonline, -islive, isrequest, progress bar --> | |
| <style> | |
| .label { border-radius: 0.1rem; padding: .1rem .2rem; background: #f0f1f4; color: #5b657a; display: inline-block; } | |
| .label.label-success { background: #32b643; color: #fff; } |
NewerOlder