Skip to content

Instantly share code, notes, and snippets.

View serverok's full-sized avatar
🎯
Focusing

Yujin Boby serverok

🎯
Focusing
View GitHub Profile
@serverok
serverok / nomachine.sh
Created April 8, 2024 16:33
install nomachine on ubuntu
#!/bin/bash
sudo apt update
sudo apt install xfce4 -y
wget https://download.nomachine.com/download/8.11/Linux/nomachine_8.11.3_4_amd64.deb
sudo dpkg -i nomachine_8.11.3_4_amd64.deb
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt update
sudo apt install google-chrome-stable
atl*CLI> core show help
! -- Execute a shell command
acl show -- Show a named ACL or list all named ACLs
ael reload -- Reload AEL configuration
ael set debug {read|tokens|macros|contexts|off} -- Enable AEL debugging flags
agi dump html -- Dumps a list of AGI commands in HTML format
agi exec -- Add AGI command to a channel in Async AGI
agi set debug [on|off] -- Enable/Disable AGI debugging
agi show commands [topic] -- List AGI commands or specific help
aoc set debug -- enable cli debugging of AOC messages
root@ok-pc-01:~# dpkg -l | grep amdgpu
ii amdgpu 18.30-641594 amd64 Meta package to install amdgpu components.
ii amdgpu-core 18.30-641594 all Core meta package for unified amdgpu driver.
ii amdgpu-dkms 18.30-641594 all amdgpu driver in DKMS format.
ii amdgpu-lib32 18.30-641594 amd64 Meta package to support i386 runtime on amd64 architecture
ii glamor-amdgpu:amd64 1.19.0-641594 amd64 X.Org X server -- graphics acceleration module based on OpenGL
ii gst-omx-amdgpu 1.0.0.1-641594 amd64 GStreamer OpenMAX plugins
ii libdrm-amdgpu-amdgpu1:amd64 1:2.4.92-641594 amd64 Userspace interface to amdgpu-specific k
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"' \
#!/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
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
<!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; }
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;
ssh into server as user root
To make attachment size 100 MB (104857600 bytes)
run following 3 commands.
postconf -e message_size_limit=104857600
postconf -e mailbox_size_limit=104857600
systemctl restart postfix
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