Install logwatch
yum install logwatch
send logwatch email
logwatch --detail Low --mailto [email protected] --service http --range today
Logwatch configuration file
vim /usr/share/logwatch/default.conf/logwatch.conf
yum install logwatch
logwatch --detail Low --mailto [email protected] --service http --range today
vim /usr/share/logwatch/default.conf/logwatch.conf
Install mod security24 very important
yum install mod24_security
Then add the following right after it and restart apache to activate. # Second, we configure the "default" Location to restrict the methods allowed # to stop CONNECT method attacks. #
<VirtualHost *:80> ServerName default.only <Location /> Order allow,deny Deny from all </Location> </VirtualHost>
tar -zxvf yourfile.tar.gz
redis-cli -h 127.0.0.1 -p 6379
keys *
mget "nameOfYourKey"
$ redis-cli KEYS '*'
redis-cli FLUSHALL
Laravel Socialite makes the experience painless and fast to implement. I highly recommend this package for quick development ! Here
sudo yum install epel-release
)sudo yum install git
curl -s https://setup.ius.io/ | sudo bash
or here
sudo yum install git2u
rpm -i --nodeps git-lfs*.rpm
, or just use the Other
instructions. The only other advanced way to fool yum is to create and
install a fake/real git rpm to satisfy the git >= 1.8.2 requirement.
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash
from here
sudo yum install git-lfs
git lfs install
brew install git-lfs
git lfs track "*.psd" git add .gitattributes
git add file.psd git commit -m "Add design file" git push origin master
//All certificates Route::post('/search-certificates', '[email protected]' ); Route::get('/search-certificates', '[email protected]' ); or Route::any('/search-certificates', '[email protected]' );
public function search(Request $request){ $searchString = $request->input('searchString'); $searchCertificates = DB::table('NAMEOFYOURBABLE') ->where('BOROUGH', 'like', "%$searchString%" ) ->orwhere('STREET', 'like', "%$searchString%" ) ->orwhere('POSTCODE', 'like', "%$searchString%" ) ->orderBy('POSTCODE', 'asc') ->orderBy('NUMBER', 'asc') ->orderBy('JOB_NUMBER', 'asc') ->paginate(20); $searchCertificates->appends(['searchString' => $searchString]); return view('search-certificates', ['searchCertificates' => $searchCertificates]); }
Most important line on the code above is the one below because it will allow search pagination
$searchCertificates->appends(['searchString' => $searchString]);
<form action="/search-certificates" method="POST" role="search"> {{ csrf_field() }} <div class="input-group"> <input type="text" class="form-control" name="searchString" placeholder="Search by Street or Postal Code " /> <button type="submit" class="btn btn-primary">Submit</button> </div> </form>
<div class="row justify-content-center">
<table class="table table-striped">
<thead>
<tr>
<th>POSTCODE</th>
<th>ISSUE_TYPE</th>
<th>C_O_ISSUE_DATE</th>
<th>BOROUGH</th>
<th>NUMBER</th>
<th>STREET</th>
<th>Number of Units</th>
<th>NTA</th>
</tr>
</thead>
<tbody>
@foreach ($searchCertificates as $oneCertificate)
<tr>
<td>{{ $oneCertificate->POSTCODE }}</td>
<td>{{ $oneCertificate->ISSUE_TYPE }}</td>
<td>{{ $oneCertificate->C_O_ISSUE_DATE }}</td>
<td> {{ $oneCertificate->BOROUGH }}</td>
<td>{{ $oneCertificate->NUMBER }}</td>
<td>{{ $oneCertificate->STREET }}</td>
<td>{{ $oneCertificate->PR_DWELLING_UNIT }}</td>
<td>{{ $oneCertificate->NTA }}</td>
</tr>
@endforeach
</tbody>
{{ $searchCertificates->links( "pagination::bootstrap-4") }}