From 6766551671e1eba67a02d00f68acca1541185808 Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Fri, 16 Jun 2023 15:59:05 -0700 Subject: [PATCH] Cleaning up posts --- .htaccess | 10 ++++ _layouts/default.html | 17 ++++--- _layouts/index.html | 5 +- _posts/2007-12-12-mel-notepad.md | 8 +-- _posts/2009-04-23-bash-imageslice.md | 23 ++++++--- _posts/2009-06-12-mel-sphere_intersect.md | 10 ++-- ...010-05-15-bash-rewrite_multiple_slashes.md | 2 +- _posts/2011-06-28-filebrowser.md | 49 +++++++++++++++++-- _posts/2020-06-04-filebrowser-update.md | 8 --- about.md | 8 ++- css/style.css | 20 +++++--- 11 files changed, 111 insertions(+), 49 deletions(-) create mode 100644 .htaccess delete mode 100644 _posts/2020-06-04-filebrowser-update.md diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..92b5485 --- /dev/null +++ b/.htaccess @@ -0,0 +1,10 @@ +Options +FollowSymLinks +RewriteEngine On + +RewriteCond %{HTTPS} !=on +RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] +Header always set Content-Security-Policy "upgrade-insecure-requests;" + +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule (.*) index.php?p=$1 [L] diff --git a/_layouts/default.html b/_layouts/default.html index c5af472..11fcfa7 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -6,18 +6,19 @@ layout: index

— {{ page.title }}

-
+
{{content}}
-{% if page.tags %} - -{% endif %} + {% if page.tags.size > 0 %} +
tags:
+ {% for tag in page.tags %} + {{ tag }}{% if forloop.last == false %}, {% endif %} + {% endfor %} + {% endif %} + {% if page.date %}
posted {{ page.date }}
+ {% endif %}
\ No newline at end of file diff --git a/_layouts/index.html b/_layouts/index.html index 9740e87..9129feb 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -20,8 +20,9 @@ diff --git a/_posts/2007-12-12-mel-notepad.md b/_posts/2007-12-12-mel-notepad.md index 0c2bb38..bcd2a3d 100644 --- a/_posts/2007-12-12-mel-notepad.md +++ b/_posts/2007-12-12-mel-notepad.md @@ -122,7 +122,7 @@ string $shortName = `match "[^|]*$" $dagPath`; // Result: pCubeShape223 // -

other reference

- +

more references

+ +- [https://danielfaust.github.io/ewertb/maya.html](https://danielfaust.github.io/ewertb/maya.html) + diff --git a/_posts/2009-04-23-bash-imageslice.md b/_posts/2009-04-23-bash-imageslice.md index 5515ece..8313507 100644 --- a/_posts/2009-04-23-bash-imageslice.md +++ b/_posts/2009-04-23-bash-imageslice.md @@ -10,8 +10,10 @@ Shell script that slices a single image into any number of vertical and horizont -
#!/bin/bash
-#@author  gabriel dunne <quilime.com>
+```prettyprint
+
+#!/bin/bash
+# @author  gabriel dunne 
 
 IMAGE=$1
 IMAGE_W=$2
@@ -41,15 +43,20 @@ else
 	done
 	
 fi
-
+``` -##To Use +## To Use + navigate to slice.sh in your terminal and do -
chmod +x slice.sh
-./slice.sh Sunset.jpg 800 600 16 16
-replace **Sunset.jpg** with your image name. -params: **Image Height, Image Width, Vertical Divisions, Horizontal Divisions** + +```prettyprint +chmod +x slice.sh +./slice.sh Sunset.jpg 800 600 16 16 +``` + +replace `Sunset.jpg` with your image name. +params: `Image Height, Image Width, Vertical Divisions, Horizontal Divisions`
diff --git a/_posts/2009-06-12-mel-sphere_intersect.md b/_posts/2009-06-12-mel-sphere_intersect.md index dcb2e23..09a7281 100644 --- a/_posts/2009-06-12-mel-sphere_intersect.md +++ b/_posts/2009-06-12-mel-sphere_intersect.md @@ -15,7 +15,8 @@ Function to return location of intersect with poly mesh and spherical object mov

mel source

-
global proc intersectSphereY()
+```prettyprint 
+global proc intersectSphereY()
 {
 	print(". . . . . go go go\n");
 
@@ -61,10 +62,9 @@ global proc float pointDist(float $p1[], float $p2[])
 	(($p1[2] - $p2[2]) * ($p1[2] - $p2[2])));
 }
 
-intersectSphereY;
+intersectSphereY; +``` - - - + diff --git a/_posts/2010-05-15-bash-rewrite_multiple_slashes.md b/_posts/2010-05-15-bash-rewrite_multiple_slashes.md index 8fb6aef..c7ebf18 100644 --- a/_posts/2010-05-15-bash-rewrite_multiple_slashes.md +++ b/_posts/2010-05-15-bash-rewrite_multiple_slashes.md @@ -5,7 +5,7 @@ tags: htaccess apache layout: post --- -
+
 RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
 RewriteRule . %1/%2 [R=301,L]
 
\ No newline at end of file diff --git a/_posts/2011-06-28-filebrowser.md b/_posts/2011-06-28-filebrowser.md index d80030d..0c6d939 100644 --- a/_posts/2011-06-28-filebrowser.md +++ b/_posts/2011-06-28-filebrowser.md @@ -1,9 +1,50 @@ --- -title: filebrowser +title: PHP File Browser Scripts date: 2011-06-28 layout: post --- -File Browser PHP script on GitHub. -demo: -media.quilime.com +These scripts offer some handy features for browsing files/folders on a webserver. + +[Source](https://github.com/quilime/filebrowser) on GitHub. + +## DirectoryLister + +A fancy index script for browsing folders. + +- Tested with PHP **7.2.30** and **7.4.6** +- Classical text-only view with HTML table +- Sortable by columns +- Single file for easy including +- Easy to customize +- BSD license + +Options: + +- Ignore Dotfiles (hidden files) +- Date Format for file mod fime +- Show Line Numbers +- Sort folders seperately +- Calculate folder sizes +- Show file sizes +- Show file type (based on extension) +- Show file modified date +- Natural sort file tree (ignore case) +- File and Folder Excludes + + + + +## MediaBrowser + +A index script that generates thumbnail gallery for images and displays READMEs. This is an experiment and WIP. + +- Tested with **PHP 7.2.30** +- Generate thumbs and create gallery for images +- Preview audio files +- Single file for easy including +- Easy to customize +- Display 'README' if present +- BSD license + + \ No newline at end of file diff --git a/_posts/2020-06-04-filebrowser-update.md b/_posts/2020-06-04-filebrowser-update.md deleted file mode 100644 index 5bdbbfe..0000000 --- a/_posts/2020-06-04-filebrowser-update.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "filebrowser update" -date: 2020-06-04 ---- - -Updated to PHP 7.4 - -File Browser PHP script on GitHub. diff --git a/about.md b/about.md index 62619a0..30f2e3f 100644 --- a/about.md +++ b/about.md @@ -2,6 +2,10 @@ title: about --- -quilime.com is a collection of code, experiments, and process +© 1999—{{ "now" | date: "%Y" }} [GABRIEL DUNNE](https://gabrieldunne.com) -© 1999—{{ "now" | date: "%Y" }} [~gld](https://gabrieldunne.com) +older versions + +- [2007](http://portfolio.quilime.com/new/port.php) +- [2005](http://portfolio.quilime.com/recent.html) +- [2004](http://portfolio.quilime.com/archive/) \ No newline at end of file diff --git a/css/style.css b/css/style.css index 504a279..75c5d8a 100644 --- a/css/style.css +++ b/css/style.css @@ -57,16 +57,22 @@ h2, h3, h4, h5, h6 { font-size:1.1em; } h3, h4, h5, h6 { - font-size:1.0; + font-size:1.0em; } h5, h6 { - font-size:12px; font-weight: normal } ul, li { - margin:0; padding:0; list-style-type:none; + margin:0; + padding:0; + list-style-type:none; + list-style-type: "— "; +} +li { + padding-left:0.25em; + margin-left:1.5em; } ol { margin:0; @@ -92,12 +98,12 @@ pre, code { background:#303030; border-radius:4px; text-indent: 0; - text-shadow: 0 0 8px #44FFAA55; + text-shadow: 0 0 8px #44FFAA44; } pre { padding:10px 1em; - position:relative; - left:-1em; +/* position:relative;*/ +/* left:-1em;*/ overflow: auto; } code { @@ -196,7 +202,7 @@ span.nextprev span a:hover { .entry h1 { margin-bottom:1em; position:relative; - left:-1.65em; + left:-1.5em; } .entry h1 a { } -- 2.34.1