Author Archives: itdoctor - Page 27
Linux : Delete files older than number of days
We first need to list files that are older than number of days (5) find /Data/foldername -name *.mp4 -type f -mtime +5 -exec ls -lh {} \; If that...
Find the kerberos server for your domain
The service record for ldap and kerberos are used to identify LDAP and Kerberos server for a domain in Active Directory. When you configure some authentication method, it might...
Splunk – Custom Alert – Input Validation
I built a customize alert, and there are some required fields on the form. User must provide data for these fields. When we build the alert with Addon Builder,...
Ubuntu: How to execute a command at start up?
There will come a time when you need to start some scripts at startup, but you don’t want to to create it as a service. This is to help...
php 7 – session_set_save_handler
session_set_save_handler(“open”, “close”, “read”, “write”, “destroy”, “gc”); function read($id) { //if we can’t find the data for this session, we must return ” (empty string) , can’t return false return...
Apache: too many sending reply (W) – server is busy
This is mostly because the script is hang at some point , the server still keeps the connection, this will end up where server can’t accept new connection. This...
How to see a list of available php7 package to install
You can run this command:
PHP7.2: How to install mcrypt extension
mcrypt extension is an interface to the mcrypt cryptography library. mcrypt is included in php5 to , but it’s removed from . The instructions below help you...
git ignore certificate error
git clone -c
