Skip to content

Shvek's Blog

My developments and life's work documented.

  • Home
  • About Shvek

Sort MYSQL Query Result Randomly

Technical

To sort a table results randomly use the ORDER by RAND(); option. eg. Select * from table_name ORDER by RAND();

October 5, 2023 / 1 Comment
read more

Introduction

The Relentless Pursuit of Truth

I have decided to publicly document my beliefs, thoughts and observations. These posts will range numerous topics on life, the universe, human interaction, philosophy, morality and whatever else I find the need to share when I feel necessary. The purpose of making these posts public is not to invite discussions or questions. I simply want […]

January 16, 2023 / 0 Comments
read more

Add Custom PHP handler for PLESK

Technical

https://support.plesk.com/hc/en-us/articles/115000497853–How-to-add-a-custom-PHP-version-in-Plesk-for-Linux- Sample command : plesk bin php_handler –add -displayname 5.6.4 -path /usr/local/php564/bin/php-cgi -phpini /usr/local/lib/php.ini -type fastcgi -id 5.6.4-custom -clipath /usr/local/php564/bin/php

September 27, 2022 / 0 Comments
read more

Add Gzip Compression to Nginx

Technical

use the following directives on Nginx config to enable Gzip compresssion. gzip on;gzip_disable “MSIE [1-6]\\.(?!.*SV1)”;gzip_proxied any;gzip_comp_level 5;gzip_types text/plain text/css application/javascript application/x-javascript text/xml application/xml application/rss+xml text/javascript image/x-icon image/bmp image/svg+xml;gzip_vary on;

August 20, 2021 / 0 Comments
read more

Disable Right Click on Web Site

Technical
March 9, 2021 / 0 Comments
read more

MariaDB Upgrade from 5.5 to 10.5 breaks Sites with SQL error – Column No Default Value.

Technical

Added the below to my.ini sql-mode=”NO_ENGINE_SUBSTITUTION” Source of fix: https://www.farbeyondcode.com/Solution-for-MariaDB-Field–xxx–doesn-t-have-a-default-value-5-2720.html

March 4, 2021 / 0 Comments
read more

Enable Antivirus on All Mailboxes on Plesk Server

Technical

To enable antivirus scanning for all mailboxes on a Plesk server run the following command as root.

January 12, 2021 / 0 Comments
read more

Repair AD DNS

Technical

So I just installed a clients new AD DC Server and then tried to add a machine to the domain with no success. DNS SRV records were missing. After searching I found this command to repair an re-add the DNS records to the server. dcdiag /fix I then reloaded the DNS Zone and restarted the […]

May 17, 2020 / 0 Comments
read more

Data Recovery Software for Linux Software Mirrors

Uncategorised

We recently needed to recover data for a client from a failed NAS raid. We tried everything in our arsenal and nothing worked. After a few google searches I came across Reclaime Data recovery software and it did the Job effortlessly. I can unreservedly recommend this Software to anyone that needs to do the same […]

May 16, 2019 / 0 Comments
read more

Search and Remove/Delete File by Pattern/ Name or Wildcard on Linux

Technical

find . -name ‘\*_log’ -type f -delete

October 19, 2016 / 0 Comments
read more

Posts pagination

1 2 … 5 Next
Royal Elementor Kit Theme by WP Royal.