diff options
| -rwxr-xr-x | credits/index.php | 7 | ||||
| -rwxr-xr-x | feed.atom | 57 | ||||
| -rw-r--r-- | images.json | 289 | ||||
| -rwxr-xr-x | img/index.php | 66 | ||||
| -rwxr-xr-x | img/json.php | 52 | ||||
| -rwxr-xr-x | index.php | 11 | ||||
| -rw-r--r-- | seasonal.php | 12 | ||||
| -rwxr-xr-x | txt/index.php | 5 | ||||
| -rwxr-xr-x | txt/sys.log | 1 |
9 files changed, 412 insertions, 88 deletions
diff --git a/credits/index.php b/credits/index.php index 657990e..b115c6f 100755 --- a/credits/index.php +++ b/credits/index.php @@ -102,14 +102,17 @@ blender: packs: - "<a href="https://www.musicradar.com/news/tech/sampleradar-500-free-industrial-samples-504614">https://www.musicradar.com/news/tech/sampleradar-500-free-industrial-samples-504614</a>" - "<a href="https://soundpacks.com/free-sound-packs/80s-retro-futuristic-drum-pack/">https://soundpacks.com/free-sound-packs/80s-retro-futuristic-drum-pack/</a>" - - "<a href="https://soundconstraints.com/products/corona-virus-sample-pack">https://soundconstraints.com/products/corona-virus-sample-pack</a>"</pre> + - "<a href="https://soundconstraints.com/products/corona-virus-sample-pack">https://soundconstraints.com/products/corona-virus-sample-pack</a>" + - "<a href="https://www.reddit.com/r/DnB/comments/jfav1f/comment/k3z00a0/">amen breaks compilation reddit.com</a>" + - "<a href="https://www.soundsinsolidarity.org/">https://www.soundsinsolidarity.org/</a>"</pre> </section> <section class="dir" id="3d-assets"> <h2># General 3D Assets</h2> <pre> sources: - "<a href="https://polyhaven.com/">https://polyhaven.com/</a>" - - "<a href="https://ambientcg.com/">https://ambientcg.com/</a>"</pre> + - "<a href="https://ambientcg.com/">https://ambientcg.com/</a>" + - "<a href="https://www.blenderkit.com/">https://www.blenderkit.com/</a>"</pre> </section> <section class="dir" id="site"> <h2># Site</h2> @@ -3,13 +3,24 @@ <title>deep twisty releases feed</title> <id>https://deeptwisty.com/</id> <link rel="alternate" href="https://deeptwisty.com/"></link> - <updated>2024-11-13T00:00:00-07:00</updated> + <updated>2026-04-04T00:00:00-07:00</updated> <author> <name>the individual from deep twisty</name> <uri>https://deeptwisty.com/</uri> </author> <generator>100% organic free-range grass-fed hormone-free canadian hand-written RFC 4287</generator> <entry> + <title>Scavenger</title> + <id>video_scavenger</id> + <link rel="alternate" href="https://youtu.be/RVADojKsWhA" type="html" title="Scavenger on Youtube"></link> + <published>2026-04-04T00:00:00-07:00</published> + <updated>2026-04-04T00:00:00-07:00</updated> + <summary type="html">A scavenger combs through the refuse of a great city.<br><br>Around the corner, a familiar hum that would terrify most in the metropolis above.<br><br>Jackpot.</summary> + <category term="music"/> + <category term="video"/> + <category term="3052"/> + </entry> + <entry> <title>Hextor</title> <id>music_hextor</id> <link rel="alternate" href="https://deeptwisty.bandcamp.com/album/hextor" type="html" title="Hextor on Bandcamp"></link> @@ -23,12 +34,12 @@ <title>R.I.S.E.</title> <id>video_rise</id> <link rel="alternate" href="https://www.youtube.com/watch?v=WCDMhoYVh7I" type="html" title="R.I.S.E. on Youtube"></link> - <published>2021-01-07T00:00:00-07:00</published> - <updated>2021-01-07T00:00:00-07:00</updated> + <published>2023-01-07T00:00:00-07:00</published> + <updated>2023-01-07T00:00:00-07:00</updated> <summary>Suburbia in the year 3000.</summary> <category term="music"/> <category term="video"/> - <category term="dtcu"/> + <category term="3052"/> </entry> <entry> <title>Pimo</title> @@ -59,7 +70,7 @@ <summary>Construction on the I-95.</summary> <category term="music"/> <category term="video"/> - <category term="dtcu"/> + <category term="3052"/> </entry> <entry> <title>Cumulonimbus</title> @@ -70,7 +81,7 @@ <summary>What remains of the sky.</summary> <category term="music"/> <category term="video"/> - <category term="dtcu"/> + <category term="3052"/> </entry> <entry> <title>Tetrahead</title> @@ -91,7 +102,7 @@ <summary>An encounter with Law Enforcement.</summary> <category term="music"/> <category term="video"/> - <category term="dtcu"/> + <category term="3052"/> </entry> <entry> <title>Друг</title> @@ -112,36 +123,6 @@ <summary>Combing the outskirts.</summary> <category term="music"/> <category term="video"/> - <category term="dtcu"/> - </entry> - <entry> - <title>Nova</title> - <id>music_nova</id> - <link rel="alternate" href="https://deeptwisty.bandcamp.com/album/nova" type="html" title="Nova on Bandcamp"></link> - <published>2020-09-30T00:00:00-07:00</published> - <updated>2020-09-30T00:00:00-07:00</updated> - <summary>the album ever</summary> - <category term="music"/> - <category term="album"/> - </entry> - <entry> - <title>Home</title> - <id>music_home</id> - <link rel="alternate" href="https://deeptwisty.bandcamp.com/album/home" type="html" title="Home on Bandcamp"></link> - <published>2020-08-13T00:00:00-07:00</published> - <updated>2020-08-13T00:00:00-07:00</updated> - <summary>bro i fucking love 80s synthwave tom drums bro</summary> - <category term="music"/> - <category term="single"/> - </entry> - <entry> - <title>Plot Twist</title> - <id>music_plot_twist</id> - <link rel="alternate" href="https://deeptwisty.bandcamp.com/album/plot-twist" type="html" title="Plot Twist on Bandcamp"></link> - <published>2019-10-31T00:00:00-07:00</published> - <updated>2019-10-31T00:00:00-07:00</updated> - <summary>this is here i guess</summary> - <category term="music"/> - <category term="album"/> + <category term="3052"/> </entry> </feed> diff --git a/images.json b/images.json new file mode 100644 index 0000000..5937584 --- /dev/null +++ b/images.json @@ -0,0 +1,289 @@ +{ + "world_serpent.png": { + "date": 1550966400, + "x": 1920, + "y": 1080, + "mime": "image\/png", + "alt": "" + }, + "run.png": { + "date": 1567209601, + "x": 1920, + "y": 1080, + "mime": "image\/png", + "alt": "" + }, + "aftermath.gif": { + "date": 1568937600, + "x": 1920, + "y": 1080, + "mime": "image\/gif", + "alt": "" + }, + "mass_destruction.png": { + "date": 1569542400, + "x": 1920, + "y": 1080, + "mime": "image\/png", + "alt": "" + }, + "frontier.png": { + "date": 1577059200, + "x": 1920, + "y": 1080, + "mime": "image\/png", + "alt": "" + }, + "hand_dalek.png": { + "date": 1596672000, + "x": 1440, + "y": 1440, + "mime": "image\/png", + "alt": "" + }, + "hand_dalek_bg.png": { + "date": 1596672001, + "x": 2560, + "y": 1440, + "mime": "image\/png", + "alt": "" + }, + "nova.png": { + "date": 1601424000, + "x": 1920, + "y": 1080, + "mime": "image\/png", + "alt": "" + }, + "nova_portrait.png": { + "date": 1601424001, + "x": 1080, + "y": 1920, + "mime": "image\/png", + "alt": "" + }, + "pumpkin_wheatley.png": { + "date": 1602633600, + "x": 1920, + "y": 1080, + "mime": "image\/png", + "alt": "" + }, + "fork1.png": { + "date": 1610236800, + "x": 2560, + "y": 1440, + "mime": "image\/png", + "alt": "" + }, + "fork2.png": { + "date": 1610236801, + "x": 2560, + "y": 1440, + "mime": "image\/png", + "alt": "" + }, + "fork3.png": { + "date": 1610236802, + "x": 2560, + "y": 1440, + "mime": "image\/png", + "alt": "" + }, + "wheatley_from_accounting.png": { + "date": 1613433600, + "x": 2560, + "y": 1440, + "mime": "image\/png", + "alt": "" + }, + "wheatley_from_accounting_OL.png": { + "date": 1613433601, + "x": 2560, + "y": 1440, + "mime": "image\/png", + "alt": "" + }, + "drone.png": { + "date": 1624406400, + "x": 1920, + "y": 1080, + "mime": "image\/png", + "alt": "" + }, + "tetrahead.png": { + "date": 1629936000, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "tetrahead_portrait.png": { + "date": 1629936001, + "x": 2160, + "y": 3840, + "mime": "image\/png", + "alt": "" + }, + "cubes1.png": { + "date": 1638921600, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "cubes2.png": { + "date": 1638921601, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "cubes3.png": { + "date": 1638921602, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "cubes4.png": { + "date": 1638921603, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "cubes5.png": { + "date": 1638921604, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "cubes6.png": { + "date": 1638921605, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "cubes7.png": { + "date": 1638921606, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "cubes8.png": { + "date": 1638921607, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "cubes9.png": { + "date": 1638921608, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "pimo.png": { + "date": 1647216000, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "pimo_portrait.png": { + "date": 1647216001, + "x": 2160, + "y": 3840, + "mime": "image\/png", + "alt": "" + }, + "monolith.png": { + "date": 1647737940, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "cuboid.png": { + "date": 1650007920, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "genesis.png": { + "date": 1653975360, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "linger.png": { + "date": 1655610480, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "streetcleaner.png": { + "date": 1665532800, + "x": 1920, + "y": 1080, + "mime": "image\/png", + "alt": "" + }, + "bomb_threat_3d_1.png": { + "date": 1694327898, + "x": 1920, + "y": 1080, + "mime": "image\/png", + "alt": "" + }, + "bomb_threat_3d_2.png": { + "date": 1694327901, + "x": 1920, + "y": 1080, + "mime": "image\/png", + "alt": "" + }, + "bomb_threat_3d_3.png": { + "date": 1694327906, + "x": 1920, + "y": 1080, + "mime": "image\/png", + "alt": "" + }, + "bomb_threat_3d_4.png": { + "date": 1694327909, + "x": 1920, + "y": 1080, + "mime": "image\/png", + "alt": "" + }, + "bomb_threat_3d_SKATEBOARD.png": { + "date": 1694327919, + "x": 1920, + "y": 1080, + "mime": "image\/png", + "alt": "" + }, + "hextor.png": { + "date": 1730509468, + "x": 3840, + "y": 2160, + "mime": "image\/png", + "alt": "" + }, + "hextor_portrait.png": { + "date": 1730509484, + "x": 2160, + "y": 3840, + "mime": "image\/png", + "alt": "" + } +}
\ No newline at end of file diff --git a/img/index.php b/img/index.php index 7b4f61b..0240275 100755 --- a/img/index.php +++ b/img/index.php @@ -5,7 +5,11 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>/log/img</title> <link href="../style.css" rel="stylesheet" type="text/css" media="all"> - <?php include("../seasonal.php"); ?> + <?php include("../seasonal.php"); + + ini_set('display_errors', 1); +ini_set('display_startup_errors', 1); +error_reporting(E_ALL);?> <style> .dir { padding: 1rem; @@ -19,6 +23,7 @@ a.img { display: flex; flex-direction: column; + word-break: break-word; } a.img :is(img, span) { margin: 1rem; @@ -36,45 +41,38 @@ <p>$ ls -t</p> <section class="dir"> <?php - $imagetimes = Array(); + $fp = "/var/www/data/deeptwisty/images.json"; + $images = json_decode(file_get_contents($fp)); + $pmt = ""; + $op = ""; + foreach($images as $if=>$im) { // Loops through each image and echoes it to the page - function test_image($name) { // Returns true if a file is an image (png or gif), false otherwise - return (strpos($name, ".png") > 0 or strpos($name, ".gif") > 0 or strpos($name, ".jxl") > 0); - } + $no = substr($if, 0, strpos($if, ".")); // Filename with extension stripped + $mt = date("Y-m-d", $im->date); // File modification date in ISO format + $ist = $im->x . "×" . $im->y; // Image size formatted as X×Ypx + + $dc = false; + if($pmt != $mt) { $dc = true; }// date change - function imagetime($file) { // This needs to return a Unix timestamp. - global $imagetimes; - if(!$imagetimes[$file]) { - $imagetimes[$file] = filemtime($file); + /*if($pmt != $mt) { + $pmt = $mt; + $op = "<h2>$mt</h2><article class='imgs'>".$op; + if($pmt != "") { + $op = "</article>".$op; } - return $imagetimes[$file]; - } - - $images = array_filter(scandir("."), "test_image"); // Generate array of every image in the directory by filename - - usort($images, function($a, $b) { // Sort images by modification date of the files - return imagetime("$b") - imagetime("$a"); - }); + }*/ - $pmt = ""; - foreach($images as $im) { // Loops through each image and echoes it to the page + if($dc and $pmt) { $op = "<h2>$pmt</h2><article class='imgs'>".$op; } + if($dc) { $op = "</article>".$op; } + $op = "<a class='img' href='/img/$if'><img src='/img/thumbs/$no.jpg' alt='$im->alt'><span>$if >> $ist</span></a>".$op; + - $no = substr($im, 0, strpos($im, ".")); // Filename with extension stripped - $mt = date("Y-m-d", imagetime("$im")); // File modification date in ISO format - $is = getimagesize("$im"); - $ist = $is[0] . "×" . $is[1]; // Image size formatted as X×Ypx - - if($pmt != $mt) { - if($pmt != "") { - echo "</article>"; - } - $pmt = $mt; - echo "<h2>$mt</h2><article class='imgs'>"; - } - - echo("<a class='img' href='/img/$im'><img src='/img/thumbs/$no.jpg'><span>$im >> $ist</span></a>"); + if($dc) { + $pmt = $mt; } - ?> + } + echo "<h2>$pmt</h2><article class='imgs'>".$op; + ?> </section> <p>$</p> </body> diff --git a/img/json.php b/img/json.php new file mode 100755 index 0000000..1fff451 --- /dev/null +++ b/img/json.php @@ -0,0 +1,52 @@ +<?php +$allimages = array(); +$imagetimes = array(); +header("Content-type: application/json; charset=utf-8"); + +function test_image($name) { // Returns true if a file is an image, false otherwise + if(getimagesize($name)) { + return true; + } + return false; +} + +function imagetime($file) { // This needs to return a Unix timestamp. + global $imagetimes; + if(!$imagetimes[$file]) { + $imagetimes[$file] = filemtime($file); + } + return $imagetimes[$file]; +} + +$images = array_filter(scandir("."), "test_image"); // Generate array of every image in the directory by filename + +usort($images, function($a, $b) { // Sort images by modification date of the files + return imagetime("$a") - imagetime("$b"); +}); + +$pmt = ""; +foreach($images as $im) { // Loops through each image and echoes it to the page + + $no = substr($im, 0, strpos($im, ".")); // Filename with extension stripped + $mt = date("Y-m-d", imagetime("$im")); // File modification date in ISO format + $is = getimagesize("$im"); + + $allimages[$im] = array( + "date" => imagetime("$im"), + "x" => $is[0], + "y" => $is[1], + "mime" => $is["mime"], + "alt" => "" + ); + + /*if($pmt != $mt) { + if($pmt != "") { + echo "</article>"; + } + $pmt = $mt; + echo "<h2>$mt</h2><article class='imgs'>";*/ + #} + + #echo("<a class='img' href='/img/$im'><img src='/img/thumbs/$no.jpg'><span>$im >> $ist</span></a>"); +} +echo(json_encode($allimages, JSON_PRETTY_PRINT));
\ No newline at end of file @@ -25,13 +25,20 @@ Uptime: 41,742 weeks, 6 days Terminal: /dev/pts/1</pre> <p><?php echo($greeting); ?></p> <p>$ hostname -d</p> - <h1><span class="title">deep twisty</span><span style="font-size: .75em;">.com</span></h1> + <h1><span class="title"><?php + if(rand(0,8192) == 2) { + echo("depywisty"); + } else { + echo("deep twisty"); + } + ?></span><span style="font-size: .75em;">.com</span></h1> <p>$ find ~ -type d</p> <section class="dir"> <h2>NET</h2> + <a rel="me" class="subvert-color" href="https://alpha.subvert.fm/deeptwisty">://SUBVERT.FM</a> <a rel="me" class="bandcamp-color" href="https://deeptwisty.bandcamp.com">://BANDCAMP</a> <a rel="me" class="youtube-color" href="https://www.youtube.com/@deeptwisty">://YOUTUBE</a> - <a rel="me" class="itchio-color" href="https://deeptwisty.itch.io">://ITCHIO</a> + <a rel="me" class="itchio-color" href="https://deeptwisty.itch.io">://ITCH.IO</a> <a rel="me" class="kofi-color" href="https://ko-fi.com/deeptwisty">://KOFI</a> <h2>LOG</h2> <a href="txt">TXT</a> diff --git a/seasonal.php b/seasonal.php index e137aa8..6d75423 100644 --- a/seasonal.php +++ b/seasonal.php @@ -7,14 +7,10 @@ $greeting = "Welcome."; $month = idate("m"); $day = idate("d"); -switch($month) { - case 3: - if($day == 31) { - $favicon_filename = "/favicon_transgender.ico"; - $style = ":root { --blue: #5BCEFA; --green: #F5A9B8; --yellow: #FFFFFF; }"; - $greeting = "Trans rights!"; - } - break; +if($month == 6 || ($month == 3 && $day == 31)) { + $favicon_filename = "/favicon_transgender.ico"; + $style = ":root { --blue: #5BCEFA; --green: #F5A9B8; --yellow: #FFFFFF; }"; + $greeting = "Trans rights!"; } echo("<link rel='icon' type='image/x-icon' href='$favicon_filename'>"); diff --git a/txt/index.php b/txt/index.php index 7c8006e..8cfb5b9 100755 --- a/txt/index.php +++ b/txt/index.php @@ -14,9 +14,8 @@ <p>$ cat sys.log</p> <section class="dir"> <?php - $infile = fopen("sys.log", "r") or die("file read error -_-"); - $content = fread($infile,filesize("sys.log")); - fclose($infile); + $fp = "/var/www/data/deeptwisty/sys.log"; + $content = file_get_contents($fp); $post_arr = explode("\n",$content); $posts_out = ""; date_default_timezone_set("Etc/GMT-1"); diff --git a/txt/sys.log b/txt/sys.log deleted file mode 100755 index f204d4b..0000000 --- a/txt/sys.log +++ /dev/null @@ -1 +0,0 @@ -1723020800 new website dropped
\ No newline at end of file |
