Category: cpanel

Ignore files from git without .gitingore

We can remove tracking of git for some file using below comment .

git update-index --assume-unchanged <file full path>

To track the file again we can use below comment

git update-index --no-assume-unchanged <file  full path>

Now let us look How we can list all the files who is included in no-assume

We can type below comment in terminal

git ls-files -v

It will list like

H file 1
H file 2
h file 3
h file 4

Here we can see first character as capital or lower for some file.

If the first character is lowercase, it is marked as “assume unchanged”, else it is marked as “assume changed”

We can simply list all the “assume unchanged”files using below comment.

git ls-files -v | egrep -r "^h .*"

it will list only “assume unchanged” file list

Example

h file 3
h file 4

 5,531 total views

How to use crone jobs from Cpanel


Hello gays,

Here i am writing how we can runcrone job on cpanel.

1. First go to cpanl->cron job tab.

cronjob1

2. Then we can see a screen like below .

cronjob2

3. We can set the time either from Common Settings or set each and every fields as we want.

4. Finaly we want to write command to run as below.

/usr/bin/curl --user-agent cPanel-Cronn http://domainname.com/page.php/parameters

That is it
😉

 2,594 total views,  1 views today