Implementing end-to-end HTTPS encryption with CloudFlare for Google App Engine applications.
Register the root domain with Google Cloud Platform at the following:
some helpful instructions when I have to change my laptop | |
clone solr 4 image from https://github.com/fhdalikhan/docker-solr4 | |
on windows don't use git bash, use windows terminal with ubuntu using WSL 2, otherwise will get erros due to line endings being CRLF, which should be LF instead. | |
build using: | |
docker build -t solr4 . | |
run using: |
# cron example | |
* * * * * /usr/bin/sudo chown -R GROUP_NAME:USER_NAME /home/fahad/upload_testing/ | |
# php example, needs the user password and user has to have root permissons | |
system('echo THE_USER_PASSWORD | /usr/bin/sudo -S chown -R GROUP_NAME:USER_NAME /home/fahad/upload_testing/'); |
<?php | |
// DQL example, however the result has to be mapped | |
$entityManager = $this->getEntityManager(); | |
$query = $entityManager->createQuery( | |
'SELECT nm.id AS nm_id, n FROM \App\Entity\Negotiation n | |
INNER JOIN n.messages nm WITH nm.id = (SELECT MAX(id) FROM \App\Entity\NegotiationMessage WHERE negotiation_id = n.id) | |
ORDER BY nm.id DESC' | |
)->setParameter('direction', EnumMessageDirectionType::TYPE_INBOUND); |
history.pushState(null, null, '<?php echo $_SERVER["REQUEST_URI"]; ?>'); | |
window.addEventListener('popstate', function(event) { | |
window.location.assign("http://www.yoururl.com/"); | |
}); |
solr 4 | |
https://hub.docker.com/r/bxggs/solr4 | |
https://github.com/b-ggs/docker-solr4 | |
https://github.com/docker-solr/docker-solr4 |
# via curl | |
curl "http://localhost:8983/solr/replaceCoreNameHere/update?commit=true" -H "Content-Type: text/xml" --data-binary '<delete><query>*:*</query></delete>' | |
# via browser | |
http://localhost:8983/solr/locationsdirect-products/update?commit=true&stream.body=<delete><query>*:*</query></delete> |
#!/bin/bash | |
ARGS="${@}" | |
clear; | |
while(true); do | |
clear | |
OUTPUT=`$ARGS` | |
echo -e "${OUTPUT[@]}" | |
sleep 1 | |
done |
https://www.tutorialspoint.com/svn/svn_review_changes.htm |
LoadModule deflate_module modules/mod_deflate.so | |
LoadModule expires_module modules/mod_expires.so | |
LoadModule ext_filter_module modules/mod_ext_filter.so | |
LoadModule filter_module modules/mod_filter.so | |
LoadModule version_module modules/mod_version.so |