]> git.quilime.com - quilime.com.git/commitdiff
Cleaning up posts
authorGabriel Dunne <gdunne@quilime.com>
Fri, 16 Jun 2023 22:59:05 +0000 (15:59 -0700)
committerGabriel Dunne <gdunne@quilime.com>
Fri, 16 Jun 2023 22:59:05 +0000 (15:59 -0700)
.htaccess [new file with mode: 0644]
_layouts/default.html
_layouts/index.html
_posts/2007-12-12-mel-notepad.md
_posts/2009-04-23-bash-imageslice.md
_posts/2009-06-12-mel-sphere_intersect.md
_posts/2010-05-15-bash-rewrite_multiple_slashes.md
_posts/2011-06-28-filebrowser.md
_posts/2020-06-04-filebrowser-update.md [deleted file]
about.md
css/style.css

diff --git a/.htaccess b/.htaccess
new file mode 100644 (file)
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]
index c5af47215f697248f036ed70335fabf89592927c..11fcfa7f5fd2315c32b5bcdecbc047efd3afd029 100644 (file)
@@ -6,18 +6,19 @@ layout: index
 
   <h1>— {{ page.title }}</h1>
 
-  <div>
+  <div style="margin-bottom:1em;">
   {{content}}
   </div>
 
-{% if page.tags %}
-  <ul>
-    {% for tag in page.tags %}
-      <li>{{ tag }}</li>
-    {% endfor %}
-  </ul>
-{% endif %}
+  {% if page.tags.size > 0 %}
+  <h6 style="display:inline";>tags: </h6>
+  {% for tag in page.tags %}
+    {{ tag }}{% if forloop.last == false %}, {% endif %}
+  {% endfor %}
+  {% endif %}
 
+  {% if page.date %}
   <h5>posted {{ page.date }}</h5>
+  {% endif %}
 
 </div>
\ No newline at end of file
index 9740e87470429a74e32afbd98f1a2101d619124f..9129febec8a7ff898b4c9f5031eef099e540c5e0 100644 (file)
@@ -20,8 +20,9 @@
         <ul>
           <li><a href="{{site.url}}/">home</a></li>
           <li><a href="{{ site.url }}/all/">all entries</a></li>
-          <li><a href="{{ site.url }}/about/">about</a></li>
-          <li><a href="{{ site.url }}/feed.xml">rss</a></li>
+          <li><a href="{{ site.url }}/about/">about</a></li>    
+          <li><br /></li>
+          <li><a href="{{ site.url }}/feed.xml">rss</a></li>      
         </ul>
 
     </div>
index 0c2bb387fb0afcad3ea5a3930e476769510a3aac..bcd2a3df1e06dcb6b3ef839ec1d61131bf723f44 100644 (file)
@@ -122,7 +122,7 @@ string $shortName = `match "[^|]*$" $dagPath`;
 // Result: pCubeShape223 //
 </pre>
 
-<h2>other reference</h2>
-<ul class="bullet">
-<li><a href="http://xyz2.net/mel/">http://xyz2.net/mel/</a></li>
-</ul>
+<h2>more references</h2>
+
+- [https://danielfaust.github.io/ewertb/maya.html](https://danielfaust.github.io/ewertb/maya.html)
+
index 5515ecee8e81f13fd23fa97f783535794dd19732..8313507bda2e7495e78f860f436205205a0a17de 100644 (file)
@@ -10,8 +10,10 @@ Shell script that slices a single image into any number of vertical and horizont
 
 
 
-<pre class="prettyprint">#!/bin/bash
-#@author  gabriel dunne &lt;quilime.com&gt;
+```prettyprint
+
+#!/bin/bash
+# @author  gabriel dunne <quilime.com>
 
 IMAGE=$1
 IMAGE_W=$2
@@ -41,15 +43,20 @@ else
        done
        
 fi
-</pre>
+```
 
 <!--more-->
 
-##To Use
+## To Use
+
 navigate to slice.sh in your terminal and do 
-<pre class="prettyprint">chmod +x slice.sh
-./slice.sh Sunset.jpg 800 600 16 16</pre>
-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`
 
   <br />
index dcb2e2365e36309baecc73a73678c7ab3b0e7308..09a7281619bb6296d9859d35bccddf77d672e488 100644 (file)
@@ -15,7 +15,8 @@ Function to return location of intersect with poly mesh and spherical object mov
 <h2>
 mel source
 </h2>
-<pre class="prettyprint lang-mel">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;</pre>
+intersectSphereY;
+```
 
 
 
-
-
-<img src="http://media.quilime.com/files/img/sphere_intersect.png">
+<img src="http://media.quilime.com/files-bak/img/sphere_intersect.png">
index 8fb6aef0b9edb775d347e560e4831cf076814dd5..c7ebf1894f1277bd045f761d77b84166eb951f00 100644 (file)
@@ -5,7 +5,7 @@ tags: htaccess apache
 layout: post
 ---
 
-<pre class="prettyprint">
+<pre>
 RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
 RewriteRule . %1/%2 [R=301,L]
 </pre>
\ No newline at end of file
index d80030df870c95e82cb595d28f146327ca8c531b..0c6d9397a2af99947634b2d2e1d4ca097e18f24d 100644 (file)
@@ -1,9 +1,50 @@
 ---
-title: filebrowser
+title: PHP File Browser Scripts
 date: 2011-06-28
 layout: post
 ---
-<a href="https://github.com/quilime/filebrowser">File Browser</a> PHP script on GitHub.
 
-demo: 
-<a href="http://media.quilime.com/">media.quilime.com</a>
+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
+
+<img src="http://media.quilime.com/Directory-Lister.png" />
+
+
+## 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
+
+<img src="http://media.quilime.com/Media-Browser.png" />
\ 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 (file)
index 5bdbbfe..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
----
-title: "filebrowser update"
-date: 2020-06-04
----
-
-Updated to PHP 7.4
-
-<a href="https://github.com/quilime/filebrowser">File Browser</a> PHP script on GitHub.
index 62619a03a67433e4eea59267db68a6c7cdece5e2..30f2e3f8df02dd23fe5b55e37706ade434570843 100644 (file)
--- 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
+<!-- - [2008](http://portfolio.quilime.com/2008) -->
+- [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
index 504a279d6b65c3d0efdfa4c692f09e14013aa255..75c5d8a24ea7835827e869cffda34e246d64700e 100644 (file)
@@ -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 {
 }