Skip to content

Instantly share code, notes, and snippets.

View dompl's full-sized avatar

Dom dompl

  • Red Frog Studio
  • United Kingdom
View GitHub Profile
@dompl
dompl / cname.txt
Created October 30, 2023 15:22
CNAME
Host
_D60DEBDF7C7954E5434758AEA14C3DC8.avolvesoftware.com
Target
64CDEFA5CAA71B480B83A106A2209375.C1A9952702C6DE371888D0CC387CB47F.653fca02e5829.comodoca.com
@dompl
dompl / NavigationAutoAssign.php
Last active November 5, 2023 03:50
Auto assign navigation after theme swith
<?php
/**
* Class NavigationAutoAssign
* Automatically assigns a navigation menu to a specified theme location in WordPress.
*/
class NavigationAutoAssign {
/**
* @var string The location identifier for the navigation menu within the theme.
@dompl
dompl / foo.md
Created November 13, 2023 08:23
Permalinks under nginx

if (!-e $request_filename ){ set $test P; } if ($uri !~ ^/(plesk-stat|webstat|webstat-ssl|ftpstat|anon_ftpstat|awstats-icon)){ set $test "${test}C"; } if ($test = PC){ rewrite ^ /index.php last; }

@dompl
dompl / ssl.md
Created February 26, 2024 09:30
SSL

In the future, you may expedite the issuance of the certificate in your Namecheap account > SSL Certificates page> click the link in the yellow table with DCV instructions to go to Edit methods>the "Edit methods" button. In the pop-up window, please click "Save Changes/Retry Alt DCV".