nodemon – Internal watch failed: watch ENOSPC

Recently I have faced issue:
[nodemon] Internal watch failed: ENOSPC: no space left on device

To solve it: I just run the following command:
echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

And its resolve the […] Continue Reading…

Posted in NodeJS | Tagged , | Leave a comment

Useful Git Commands

Override local
Sometime, we need to discard local changes, and need to download the repository from server. General git command git pull failed in this occasion.

By this way, any of your local changes will be lost, […] Continue Reading…

Posted in Uncategorized | Leave a comment

Osclass admin listing page – Change number of Listings

Locate File:
Locate the lines:

<select name=”iDisplayLength” class=”select-box-extra select-box-medium float-left” onchange=”this.form.submit();” >
<option value=”10″><?php printf(__(‘%d Listings’), 10); ?></option>
<option value=”25″ <?php if( Params::getParam(‘iDisplayLength’) == 25 ) echo ‘selected’; ?> ><?php printf(__(‘%d Listings’), 25); ?></option>
<option value=”50″ <?php if( […] Continue Reading…

Posted in OSClass, PHP | Tagged , | Leave a comment

Backend app with AdminLte, yii2-admin user and some extended classes

Today, I am not going to give any DOC or installation guideline.
You can check the demo at

Surely you can give a look at the code. Code is available at GitHub Repo
Installation Issue [init: missing runlevel […] Continue Reading…

Posted in PHP, Yii2 | Tagged , | Leave a comment

Yii2 – adding icon in menu with yii2-simpleapp class

I have worked to enhance the yii2 core Nav class for adding extra parameter that will get icon class for the menu items. You can find it at: SimpleNav –
Its also part of Yii2-simpleapp package. […] Continue Reading…

Posted in PHP, Yii2 | Tagged , | Leave a comment