View gist:c5d7666062e2b9b108112de928706eb8
This file contains 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
curl 'https://www.fastcartapp.com/sitemap.xml' \ | |
-H 'authority: www.fastcartapp.com' \ | |
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \ | |
-H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8,it;q=0.7' \ | |
-H 'cache-control: no-cache' \ | |
-H 'cookie: secure_customer_sig=; localization=US; cart_currency=USD; _y=fd18e78d-a7a3-4d81-ace9-39e698a4a91c; _s=6fab5005-349f-4347-be62-63ca8f3503f3; _shopify_y=fd18e78d-a7a3-4d81-ace9-39e698a4a91c; _shopify_s=6fab5005-349f-4347-be62-63ca8f3503f3' \ | |
-H 'pragma: no-cache' \ | |
-H 'sec-ch-ua: "Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"' \ | |
-H 'sec-ch-ua-mobile: ?1' \ | |
-H 'sec-ch-ua-platform: "Android"' \ |
View Plesk MySQL Backup
This file contains 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
#!/bin/bash | |
# Author: admin@serverok.in | |
# Web: https://serverok.in/plesk-mysql-daily-backup-script | |
BACKUP_DATE="$(date +%Y%m%d-%H%M%S)" | |
if [ ! -d "/mysql-backup/" ] | |
then | |
mkdir /mysql-backup/ | |
fi |
View Benchmark Cpanel Server
This file contains 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
whmapi1 configureservice service=cpsrvd enabled=1 monitored=0 | |
whmapi1 configureservice service=mysql enabled=1 monitored=0 | |
whmapi1 configureservice service=httpd enabled=1 monitored=0 | |
/scripts/restartsrv_cpsrvd --stop | |
/scripts/restartsrv_mysql --stop | |
/scripts/restartsrv_httpd --stop | |
wget https://raw.githubusercontent.com/serverok/server-setup/master/benchmark/geekbench-5.sh | |
bash ./geekbench-5.sh |
View under maintenance page template
This file contains 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> | |
<head> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } |
View Nginx Serve html PHP
This file contains 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 167.114.61.116:80; | |
listen 443 ssl; | |
ssl_certificate /etc/ssl/scriptinstallation.in.crt; | |
ssl_certificate_key /etc/ssl/scriptinstallation.in.key; | |
server_name www.scriptinstallation.in; | |
access_log /var/log/nginx/scriptinstallation.in.log; | |
root /home/scriptinstallation.in/public_html; | |
index index.php; |
View HTML Website Maintenance page template
This file contains 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-US"> | |
<head> | |
<meta charset="UTF-8" name="viewport" content="width=device-width", intial-scale="1.0"> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | |
<link rel="stylesheet" type="text/css" href="https://bluehost-cdn.com/media/user/bluerock/_bh/wp_dropins.css"> | |
<title>Maintenance</title> | |
</head> | |
<body class="wp-dropin maintenance"> | |
<main class="message"> |
View Letsencrypt renewal file
This file contains 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
# renew_before_expiry = 30 days | |
version = 1.21.0 | |
archive_dir = /etc/letsencrypt/archive/serverok.in | |
cert = /etc/letsencrypt/live/serverok.in/cert.pem | |
privkey = /etc/letsencrypt/live/serverok.in/privkey.pem | |
chain = /etc/letsencrypt/live/serverok.in/chain.pem | |
fullchain = /etc/letsencrypt/live/serverok.in/fullchain.pem | |
# Options used in the renewal process | |
[renewalparams] |
View ODOO init script
This file contains 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
root@sok-1:~# cat /etc/init.d/odoo-server | |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: odoo-server | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Should-Start: $network | |
# Should-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
View Magento 2 modified htaccess with out mod_version
This file contains 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
############################################ | |
## Optional override of deployment mode. We recommend you use the | |
## command bin/magento deploy:mode:set to switch modes instead | |
# Options are default, production, or developer | |
# SetEnv MAGE_MODE default | |
############################################ | |
## Uncomment these lines for CGI mode. | |
## Make sure to specify the correct cgi php binary file name |
View git pull php script
This file contains 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 | |
# Author: Yujin Boby | |
# Web: https://serverok.in/php-script-to-pull-changes-from-git-repository | |
# Email: admin@serverOk.in | |
# This script pull latest code from git. | |
$pw = isset($_GET["pw"]) ? $_GET["pw"] : ''; | |
if ($pw != 'YOUR_PASSWORD_HERE') { | |
die("Invalid password"); |
NewerOlder