- ./docker-compose.yml
- ./php/Dockerfile
- ./php/php.ini
- ./nginx/Dockerfile
- ./nginx/default.conf
- ./nginx/certs (Directory for generated certificates)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
for file in *.pdf | |
do | |
convert "$file[0]" -quality 100 -flatten "$file.jpg" | |
done | |
rename 's/\.pdf\.jpg/\.jpg/g' *.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sanitize SVG markup for front-end display. | |
* | |
* @link https://developer.wordpress.org/reference/functions/wp_kses/#comment-6185 | |
* | |
* @param string $svg SVG markup to sanitize. | |
* @return string Sanitized markup. | |
*/ | |
function sanitize_svg( $svg = '' ) { | |
$allowed_html = array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VITE_BASE="/directory/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en" class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
<!-- Supports modern JS? --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function post(Request $request) | |
{ | |
$rules = [ | |
'items' => 'nullable|array' | |
]; | |
// set default value for optional array fields | |
$request->merge(['items' => $request->input('items', [])]); | |
// validate as usual |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
directory="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
/usr/local/bin/php "$directory/artisan" schedule:run >> /dev/null 2>&1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// superscript ® | |
$(function() { | |
$('body :not(script,sup)').contents().filter(function() { | |
return this.nodeType === 3 | |
}).replaceWith(function() { | |
return this.nodeValue | |
.replace(/®/gi, '<sup>®</sup>') | |
.replace(/®/gi, '<sup>®</sup>'); | |
}); | |
}); |
NewerOlder