lazy-result.js ReferenceError: Promise is not defined

[code lang="javascript"] node_modules/postcss/lib/lazy-result.js:157 this.processing = new Promise(function (resolve, reject) { ^ ReferenceError: Promise is not defined [/code] 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 [code lang="shell"] vim node_modules/postcss/lib/lazy-result.js [/code] Put this to the

lazy-result.js ReferenceError: Promise is not defined Read More »

How to Install MongoDB 3.2 on CentOS 7

[code lang="shell"] vim /etc/yum.repos.d/mongodb.repo [/code] Paste this to the file and save using :wq [code lang="shell"] [MongoDB] name=MongoDB Repository baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ gpgcheck=0 enabled=1 [/code] Download and install mongodb using yum [code lang="shell"] yum install mongodb-org -y [/code] Start mongod and configure auto start while system boot [code lang="shell"] /etc/init.d/mongod restart chkconfig mongod on [/code] Check all

How to Install MongoDB 3.2 on CentOS 7 Read More »

WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe “/sys/devices/system/node/node1”: Permission denied

[code lang="shell"] [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

WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe “/sys/devices/system/node/node1”: Permission denied Read More »

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 [code lang="shell"] [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

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. Read More »

Remove WordPress Malware using Linux Shell Console

I’ve a lot of wordpress sites, recently few of my old sites infected malware, and those spammer using few of my sites to spam email. I would like to share the way I fix this. Most of the spammer look for the 777 path, most properly in /wp-content/uploads/ So I try to scan all the php files that they upload there with date. find ./public_html/wp-content/uploads/ -type f -name ‘*.php’ -printf ‘%TY-%Tm-%Td %TT %p\n’ | sort Then I found these 2015-10-16 12:25:01 ./wp-content/uploads/2013/05/blog84.p[…]

Remove WordPress Malware using Linux Shell Console Read More »