Tuesday, August 23, 2016

git commands

There are some useful git commands:

Setup a repository:

     git init --bare

Copy an existing repository:

     git clone drive:

Add file to repository:

     git add file
     git commit
     git push

Get updated files from repository:

     git fetch

Merge updated files to my workspace:

     git merge



Tuesday, August 9, 2016

Web Application Firewall (WAF)

By definition, WAF is going to filter out web request containing SQL injection, cross-site scripting, etc.

Ref: https://www.owasp.org/index.php/Web_Application_Firewall

CSP on Apache

To add CSP to root if sort of funny. The following will NOT work for most cases !!     <LocationMatch "^/$">        Header s...