Skip to main content
GrN.dk

Main navigation

  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Breadcrumb

  1. Home

Web

By Greg Nowak, 10 February, 2022

Protocols h2 h2c http/1.1 Tips and Tricks

HTTP/2 is the latest HTTP network protocol.

https://gist.github.com/GAS85/8dadbcb3c9a7ecbcb6705530c1252831
https://www.upwork.com/resources/what-is-http2#:~:text=Find%20Work-,Dis….
https://www.tecmint.com/enable-http2-in-apache-on-ubuntu/

Tags

  • Web
By Greg Nowak, 6 September, 2021

Nagios Check HTTP notes

Example bash on argument 1. It checks if HTTPS is up and if the domain-name is on the site. Most sites have the domain name on the front page somewhere: /usr/local/nagios/libexec/check_http -H $1 --ssl --onredirect=follow --string "$1"

If log file you can run grep on the following keywords: grep -i -e "critical" -e "invalid" -e "warning"  [LOGFILE.log]

Keywords: check_http

Tags

  • Script
  • Linux
  • Web
By Greg Nowak, 9 June, 2021

HTTRACK and wayback machine

https://www.httrack.com/

https://gist.github.com/adliwahid/8256ab77cf585a249c215e8f831efbd4

https://superuser.com/questions/532036/trouble-using-wget-or-httrack-to…

Tags

  • Script
  • Web
By Greg Nowak, 17 November, 2020

Tidy Up composer.json

Are you looking for an automatic tool to tidy up your composer.json? Look no further with normalize: https://localheinz.com/blog/2018/01/15/normalizing-composer.json/

Tags

  • Web
  • programming
By Greg Nowak, 6 November, 2020

PHP test if front page

$currentpage = $_SERVER['REQUEST_URI'];
if( $currentpage == "/" ) {

}

Tags

  • php
  • programming
  • Web
By Greg Nowak, 15 July, 2020

TTFB Tips And Tricks

Use CDN to lower Time To First Byte (TTFB).

https://searchfacts.com/reduce-ttfb/

 

Tags

  • Web
By Greg Nowak, 2 June, 2020

Recaptcha Above Send Message Button Webfrom Drupal 8

Go to Structure -> Webform -> Build -> Add element -> Capthca

Tags

  • Web
By Greg Nowak, 26 November, 2019

Redirect And Rewrite Notes

Redirects with regular expressions

Basic intro to regex rewrite and redirect: https://www.searchenginepeople.com/blog/htaccess-redirect-rewrite-rules…

https://superuser.com/questions/155139/htaccess-301-redirect-with-regul…

Tags

  • Linux
  • Web
By Greg Nowak, 30 May, 2019

Composer tips and tricks

Composer without root

Run this in ~/composer: curl -sS https://getcomposer.org/installer | php

Put this in .bashrc: alias composer="php ~/composer/composer.phar"

Install Drupal 8 With Composer In Custom Web Folder

composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --no-interaction --no-install
Adjust web folder in composer.json file and then run "composer install".

Check available versions of a package

composer show package_name --available

Tags

  • Linux
  • Script
  • Web
By Greg Nowak, 16 February, 2018

Wordpress backup solutions

There are many backup solutions out there for wordpress sites.

For example these plugins:

UpdraftPlus can be connected with dropbox.

Jetpack

backWPup

Among others.

You might also want to build your own backup routine with cronjobs on the hosting server.

Remember to backup!

Tags

  • Web
  • Linux
  • wordpress

Pagination

  • 1
  • Next page
Web

Review Greg on Google

Greg Nowak Google Reviews

 

  • Portfolio
  • About Greg Nowak
  • Gregs IT and Logistics Optimization
  • Shrink PDF In Linux
  • Running Linux on T450s T495s T14, Thinkpads and Others
RSS feed

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.