Archives for General - Page 26
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
bash – check if a string in a variable
if you use#! /bin/zsh $MYVAR=”Hello world” if [[ $MYVAR == *”hello”*]] thenecho “FOUND”fi If we don’t use #! /bin/zsh $MYVAR=”Hello world”if [[ $MYVAR == *”hello”*]]; thenecho “FOUND”fi
Virtualbox: can’t remove / attach new hard disk
When i try to remove a disk in Virtualbox with this command: I got the following error And the fix is:
DNS: Why i can’t create txt record for sub domain?
Please check if your subdomain is a CNAME , the DNS rule does not allow CNAME record to have other record. The fix is to use A record for...
cricket – rrdcached: some info in mind
rrdcached is a daemon that receives updates to existing RRD files, accumulates them and, if enough have been received or a defined time has passed, writes the updates to...
