From c418ff656b8f80df65d03cec73cac5e26687822b Mon Sep 17 00:00:00 2001 From: Charles Severance Date: Wed, 23 Aug 2023 15:33:18 -0400 Subject: [PATCH 1/4] Move the crontab stuff into PHP --- .gitignore | 1 + cron/cron.php | 35 +++++++++++++++++++++++++++++++++++ cron/cron_extra.sh | 23 +++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 cron/cron.php create mode 100644 cron/cron_extra.sh diff --git a/.gitignore b/.gitignore index d4da0b31d..2580b32d5 100755 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ index.sqlite gline.js gword.js *.sublime* +cron.txt diff --git a/cron/cron.php b/cron/cron.php new file mode 100644 index 000000000..8d2ae1375 --- /dev/null +++ b/cron/cron.php @@ -0,0 +1,35 @@ + $ZIP_TIME ) { + echo("\nRunning bash code.sh\n"); + echo(system("cd .. ; bash code.sh")); + echo("\n\nRunning code cleanup.sh\n"); + echo(system("cd ../code ; bash -vx cleanup.sh")); + echo("\n\nRunning code3 cleanup.sh\n"); + echo(system("cd ../code3 ; bash -vx cleanup.sh")); + echo("\n\n"); + touch($marker_file); +} else { + echo("Delta $delta z:$ZIP_TIME\n"); +} + + diff --git a/cron/cron_extra.sh b/cron/cron_extra.sh new file mode 100644 index 000000000..b299868a0 --- /dev/null +++ b/cron/cron_extra.sh @@ -0,0 +1,23 @@ +echo ===== zip files... + +echo PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +which zip + +echo ===== /var/www/html +cd /var/www/html +bash -vx code.sh +pwd +ls *.zip + +echo ===== /var/www/html/code +cd /var/www/html/code +bash -vx cleanup.sh +pwd +ls *.zip + +echo ===== /var/www/html/code3 +cd /var/www/html/code3 +bash -vx cleanup.sh +pwd +ls *.zip + From 12da36816f727b895e01e4db0dbd3f981bdb1811 Mon Sep 17 00:00:00 2001 From: Charles Severance Date: Wed, 23 Aug 2023 15:56:37 -0400 Subject: [PATCH 2/4] Remove legacy file --- cron/cron_extra.sh | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 cron/cron_extra.sh diff --git a/cron/cron_extra.sh b/cron/cron_extra.sh deleted file mode 100644 index b299868a0..000000000 --- a/cron/cron_extra.sh +++ /dev/null @@ -1,23 +0,0 @@ -echo ===== zip files... - -echo PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -which zip - -echo ===== /var/www/html -cd /var/www/html -bash -vx code.sh -pwd -ls *.zip - -echo ===== /var/www/html/code -cd /var/www/html/code -bash -vx cleanup.sh -pwd -ls *.zip - -echo ===== /var/www/html/code3 -cd /var/www/html/code3 -bash -vx cleanup.sh -pwd -ls *.zip - From 277140707759a8a7b32c959aee486fdc7d3ae43c Mon Sep 17 00:00:00 2001 From: Charles Severance Date: Wed, 13 Dec 2023 22:17:40 -0500 Subject: [PATCH 3/4] Updates --- .htaccess | 1 + 1 file changed, 1 insertion(+) diff --git a/.htaccess b/.htaccess index 4bb15c92f..2c29dd5c0 100755 --- a/.htaccess +++ b/.htaccess @@ -24,6 +24,7 @@ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^ koseu.php [L] + RedirectMatch 404 /\.git From 6cd7c4ddf64c1294d5d40eb456c54d0dd85a8950 Mon Sep 17 00:00:00 2001 From: Charles Severance Date: Sat, 7 Jun 2025 22:31:30 -0400 Subject: [PATCH 4/4] Update Parsedown php 8.4 --- vscode/Parsedown.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vscode/Parsedown.php b/vscode/Parsedown.php index d74a29c1a..5b9f8c125 100644 --- a/vscode/Parsedown.php +++ b/vscode/Parsedown.php @@ -658,7 +658,7 @@ protected function blockRule($Line) # # Setext - protected function blockSetextHeader($Line, array $Block = null) + protected function blockSetextHeader($Line, ?array $Block = null) { if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted'])) { @@ -796,7 +796,7 @@ protected function blockReference($Line) # # Table - protected function blockTable($Line, array $Block = null) + protected function blockTable($Line, ?array $Block = null) { if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted'])) { @@ -1177,7 +1177,6 @@ protected function inlineImage($Excerpt) 'attributes' => array( 'src' => $Link['element']['attributes']['href'], 'alt' => $Link['element']['text'], - 'style' => 'max-width:100%;', ), ), );