I’m going to resize 100G SSD to 150GB SSD in Public Cloud First I check the current mounted disk [root@db1 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 40G 2.4G 36G 7% / devtmpfs 3.8G 0 3.8G 0% /dev tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 3.9G 17M 3.8G 1% /run tmpfs Continue reading “How to resize OVH Public Cloud disk in CentOS 7 linux”
lazy-result.js ReferenceError: Promise is not defined
node_modules/postcss/lib/lazy-result.js:157 this.processing = new Promise(function (resolve, reject) { ^ ReferenceError: Promise is not defined When I install the FoundationPress, after I run gulp build I saw this message, this is because the node version problem. the have mention in this post https://github.com/postcss/postcss-nested/issues/30 Solution vim node_modules/postcss/lib/lazy-result.js Put this to the first line of the file lazy-result.js Continue reading “lazy-result.js ReferenceError: Promise is not defined”
How to Install MongoDB 3.2 on CentOS 7
vim /etc/yum.repos.d/mongodb.repo Paste this to the file and save using :wq [MongoDB] name=MongoDB Repository baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ gpgcheck=0 enabled=1 Download and install mongodb using yum yum install mongodb-org -y Start mongod and configure auto start while system boot /etc/init.d/mongod restart chkconfig mongod on Check all the versions [root@juzhax ~]# mongo –version MongoDB shell version: 3.2.3 [root@juzhax ~]# Continue reading “How to Install MongoDB 3.2 on CentOS 7”
WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always’.
After I install MongoDB 3.2.3 in Centos 7, I received this error when I start mongo in shell. Solution Create the init.d script. Create the following file at /etc/init.d/disable-transparent-hugepages: Make it executable. Run the following command to ensure that the init script can be used:
WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe “/sys/devices/system/node/node1”: Permission denied
[root@master ~]# mongo MongoDB shell version: 3.2.3 connecting to: test Server has startup warnings: 2016-02-29T23:11:36.666+0700 I CONTROL [initandlisten] 2016-02-29T23:11:36.667+0700 I CONTROL [initandlisten] ** WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe “/sys/devices/system/node/node1”: Permission denied 2016-02-29T23:11:36.667+0700 W CONTROL [initandlisten] 2016-02-29T23:11:36.667+0700 W CONTROL [initandlisten] Failed to probe “/sys/kernel/mm/transparent_hugepage”: Permission denied 2016-02-29T23:11:36.667+0700 W CONTROL [initandlisten] Continue reading “WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe “/sys/devices/system/node/node1”: Permission denied”
WARNING: soft rlimits too low. rlimits set to 4096 processes, 64000 files. Number of processes should be at least 32000 : 0.5 times number of files.
I’ve received this error while starting mongo in shell while installing on [root@master ~]# mongod –version db version v3.2.3 git version: b326ba837cf6f49d65c2f85e1b70f6f31ece7937 OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013 allocator: tcmalloc modules: none build environment: distmod: rhel70 distarch: x86_64 target_arch: x86_64 [root@master ~]# mongo –version MongoDB shell version: 3.2.3 CentOS Linux release 7.2.1511 (Core) WARNING: Continue reading “WARNING: soft rlimits too low. rlimits set to 4096 processes, 64000 files. Number of processes should be at least 32000 : 0.5 times number of files.”
Remove exim queue mail in console
After stopped the spam, I need to clear the spam queue in exim exim -bp | awk ‘/^ *[0-9]+[mhd]/{print “exim -Mrm ” $3}’ | bash
Remove WordPress Malware using Linux Shell Console
Optimize MySQL order by RAND()
It is not recommended to use ORDER BY RAND() only, it will slow for query large database like over 50,000 rows. The easiest way to optimize existing code, just add RAND()< (SELECT ((1/COUNT(*))*10) FROM Table_name) after the WHERE before the ORDER, this sub query will speed up the select random from the table. Using this Continue reading “Optimize MySQL order by RAND()”
ERROR: IITC failed to extract the required parameters from the intel site
I’ve got the error by using IITC for Ingress today IITC failed to extract the required parameters from the intel site This can happen after Niantic update the standard intel site. A fix will be needed from the IITC developers. – var reVersion = new RegExp(‘[a-z]=[a-z].getData\\(\\);[a-z].v=”([a-f0-9]{40})”;’); + var reVersion = new RegExp(‘[a-z].v=”([a-f0-9]{40})”;’); – var minified Continue reading “ERROR: IITC failed to extract the required parameters from the intel site”
