diff --git a/README.md b/README.md index 38f76f8..61e2dcd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,41 @@ -# www -My Website +# My Website + +Custom website rather than using WordPress or anything else that handles the code for you. + +Rather than using apache or nginx just using Node.js to serve an HTML API. Gives more control. + +Use HTML and PHP files for the content because it sounds fun and I like challenges. + +Basically a "page" is just a program that echo's HTML content for the API. + +Will likely play with some pages being Bash and other fun things. + +All content is formatted so that the page source is readible. + +# How To Run + +The install script is currently only set up for apt, and the package names only tested on Ubuntu. + +`git clone https://github.com/Hyperling/www www` + +`cd www` + +`./run.sh` + +Then in a web browser, navigate to `your_machines_ip_address:8080`. + +## TODO + +Add New Content +- HEALTH (My Priorities Sheet) + - How to host files? Put them in reverse-proxy's files.hyperling.com site? +- JOURNEY + +## Inspiration + +- [https://liquorix.net/] + - The linux-zen kernel, a really great one if you're running FOSS OS's! +- [https://cahlen.org/] + - Also has really interesting and important content, it is highly recommended. +- [https://merkinvineyardsosteria.com/] + - A winery website for MJ Keenan. diff --git a/main.js b/main.js new file mode 100755 index 0000000..37bc194 --- /dev/null +++ b/main.js @@ -0,0 +1,196 @@ +#!/usr/bin/node +'use strict'; +/* + 2022-09-14 Hyperling + Coding my own website rather than using WordPress or anything bloaty. +*/ + +//// Libraries //// + +let express = require('express'); +let app = express(); + +const execSync = require('child_process').execSync; + +const fs = require('fs'); + +//// Global Variables //// + +const DEBUG = false; + +const app_name = "hyperling.com"; + +let pages = []; +const pages_dir = "./pages/"; +const file_types = ["php", "sh"]; + +let ports = []; +ports.push(8080); + +//// Functions //// + +/* Code exists inside a main function so that we may use async/await. +*/ +async function main() { + console.log("...Starting Main..."); + + // Getting dates in Node.js is awful, just use Linux. + const start_datetime = "" + await execSync('date "+%Y-%m-%dT%H:%M:%S%:z"'); + const start_datetime_trimmed = start_datetime.trim(); + + console.log("Set app to return HTML documents."); + app.use(function (req, res, next) { + res.contentType('text/html'); + next(); + }); + + /* Loop through all file in the pages subdirectory and add the allowed + // file types into the pages array for automatic router creation. + */ + console.log("...Starting Main..."); + let ls = await fs.promises.readdir(pages_dir); + if (DEBUG) console.log("DEBUG: Results of ls, ", ls); + for (let file of ls) { + let file_test = file.split("."); + let file_name = file_test[0]; + let file_type = file_test[file_test.length - 1]; + if (file_types.includes(file_type)) { + if (DEBUG) console.log("DEBUG: Hooray!", file, "is being added."); + pages[file_name] = pages_dir + file; + console.log(" * Added page", file); + } else { + if (DEBUG) console.log("DEBUG: ", file, "is not an approved type, skipping."); + } + } + console.log(" * Pages loaded: ", pages); + //return; // Stop execution FORTESTING + + /* Create both an XML and HTML sitemap based on these entries. XML is used for + // bots like SEO scrapers. HTML will be for human users looking for a list of + // all pages. Some are not in the menu. Generated an example XML sitemap at + // www.xml-sitemaps.com then stripped it apart and made it dynamic. + */ + let sitemap_xml = ` + + + https://hyperling.com/ + `+start_datetime_trimmed+` + 1.00 + + + https://hyperling.com/sitemap/ + `+start_datetime_trimmed+` + 0.80 + + `; + let sitemap_html = ` + + Special Pages + + Web Pages (Alphabetical) + + `; + + // Provide sitemap.xml file for "SEO". + console.log(" * Creating router for sitemap.xml"); + router.get('/sitemap.xml', function (req, res) { + console.log("sitemap.xml being provided to", req.socket.remoteAddress) + res.contentType('text/xml'); + res.send(sitemap_xml); + }); + + // Provide human-usable sitemap links. + console.log(" * Creating router for sitemap*"); + router.get('/sitemap*', function (req, res) { + console.log("sitemap.html being provided to", req.socket.remoteAddress) + res.send(sitemap_html); + }); + + // Originally a test, now a catch-all redirection to Home! + console.log(" * Creating router for redirection"); + router.get('/*', function (req, res) { + // WARNING: These are huge so only look when you need to. + //console.log(req); + //console.log(res); + console.log("*wildcard* replying to", req.socket.remoteAddress, "asking for", req.url) + let html = execSync("./pages/home.php"); + res.send(html); + }); + + app.use('', router); + + console.log("...Adding Ports..."); + ports.forEach(port => { + app.listen(port); + console.log(" * Now listening on port " + port + "."); + }); + console.log("Done! Now we wait..."); +} + +//// Program Execution //// + +main(); diff --git a/package.json b/package.json new file mode 100644 index 0000000..f609c55 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "express": ">=4.18.1" + } +} diff --git a/pages/about.php b/pages/about.php new file mode 100755 index 0000000..2052620 --- /dev/null +++ b/pages/about.php @@ -0,0 +1,62 @@ +#!/usr/bin/php + + +
+

Who Am I?

+
+
+
+

+ Hi there! My name is Chad, I am the primary content creator behind the + Hyperling and HyperVegan brands. Thank you for your interest! +

+

+ My hobbies go further than just coding and video making. I am big into + health and believe it is humanity's most important asset. I was fortunate + to have time off school/work/hobbies in my early 20's was able to lock + in a great lifestyle after a life of chronic sickness. See more below in + My Health Protocol, + it also includes a link to the full history. +

+

+ I am also an avid gardener, focusing on the principles of nature-based + permaculture in order to grow fruits and vegetables, like in a Food + Forest system. This comes with other outdoor interests such as hiking, + camping, backpacking, foraging, and traveling. +

+ +

+ As of 2022 I reside in the US state of Indiana and am working to move + to the southwest for the following reasons: +

+
    +
  • Dry Climate
  • +
  • Mountains
  • +
  • Lack of Bugs
  • +
  • Permaculture Possibilities
  • +
  • Native Cactus and/or Spruce
  • +
+

+ The search will begin in Arizona. Colorado and Mexico will likely + be explored. New Mexico and other locations will be visited as well. +

+
+
+ + diff --git a/pages/contact.php b/pages/contact.php new file mode 100755 index 0000000..3828143 --- /dev/null +++ b/pages/contact.php @@ -0,0 +1,34 @@ +#!/usr/bin/php + + +
+

Contact Me

+
+
+
+

+ Public inquries can be made on my Odysee channel's discussion board. +

+ +

+ For private matters, my email address may be used, but there is no + guarantee of timely response. If I do not know of you then please be + sure to form the email in a way that does not look like spam. +

+ +
+
+ + diff --git a/pages/helpers/advisory.php b/pages/helpers/advisory.php new file mode 100755 index 0000000..1c39eb2 --- /dev/null +++ b/pages/helpers/advisory.php @@ -0,0 +1,4 @@ +#!/usr/bin/php +
+ +
\ No newline at end of file diff --git a/pages/helpers/banner.css b/pages/helpers/banner.css new file mode 100644 index 0000000..912de36 --- /dev/null +++ b/pages/helpers/banner.css @@ -0,0 +1,23 @@ +/*** Logo In Header ***/ + + /* Shared Attributes */ + .banner-top, .banner-middle, .banner-bottom { + color: white; + width: 100%; + height: 69px; + font-size: 50px; + text-align: center; + } + + /* Specific Attributes */ + .banner-top { + background-color: #6633FF; + } + + .banner-middle { + background-color: #FF9900; + } + + .banner-bottom { + background-color: #339933; + } diff --git a/pages/helpers/banner.php b/pages/helpers/banner.php new file mode 100755 index 0000000..8281851 --- /dev/null +++ b/pages/helpers/banner.php @@ -0,0 +1,6 @@ +#!/usr/bin/php +
+ + + +
\ No newline at end of file diff --git a/pages/helpers/body_close.php b/pages/helpers/body_close.php new file mode 100755 index 0000000..d88d9ce --- /dev/null +++ b/pages/helpers/body_close.php @@ -0,0 +1,7 @@ +#!/usr/bin/php + + + + diff --git a/pages/helpers/body_open.php b/pages/helpers/body_open.php new file mode 100755 index 0000000..5e2ec0e --- /dev/null +++ b/pages/helpers/body_open.php @@ -0,0 +1,12 @@ +#!/usr/bin/php + + + + + diff --git a/pages/helpers/dark.css b/pages/helpers/dark.css new file mode 100644 index 0000000..6763fae --- /dev/null +++ b/pages/helpers/dark.css @@ -0,0 +1,29 @@ +/*** Dark Theme ***/ + body { + background-color: #444444; + } + + * { + color: #CCCCCC; + } + + a { + color: #FF9900 + } + + h1,h2,h3,h4,h5,h6 { + color: #6633FF; + } + + .header { + /*background-color: #113311;*/ + background-color: #222222; + } + + .title { + background-color: #111111; + } + + .text { + background-color: #333333; + } diff --git a/pages/helpers/footer.php b/pages/helpers/footer.php new file mode 100755 index 0000000..e6fcc5f --- /dev/null +++ b/pages/helpers/footer.php @@ -0,0 +1,16 @@ +#!/usr/bin/php + + diff --git a/pages/helpers/header.php b/pages/helpers/header.php new file mode 100755 index 0000000..ab5baef --- /dev/null +++ b/pages/helpers/header.php @@ -0,0 +1,23 @@ +#!/usr/bin/php + + + + Hyperling + + + + + + + + diff --git a/pages/helpers/main.css b/pages/helpers/main.css new file mode 100644 index 0000000..25427d1 --- /dev/null +++ b/pages/helpers/main.css @@ -0,0 +1,84 @@ +/*** 2022-09-14 CSS for the website. ***/ + /* https://www.w3schools.com/Css/css_rwd_grid.asp */ + + /* Enable dynamic stuffs, maks the element think its entire size includes padding. */ + * { + box-sizing: border-box; + } + + /*** Page Sections ***/ + /** Page with 12 columns **/ + .col-1 {width: 8.33%;} + .col-2 {width: 16.66%;} + .col-3 {width: 25%;} + .col-4 {width: 33.33%;} + .col-5 {width: 41.66%;} + .col-6 {width: 50%;} + .col-7 {width: 58.33%;} + .col-8 {width: 66.66%;} + .col-9 {width: 75%;} + .col-10 {width: 83.33%;} + .col-11 {width: 91.66%;} + .col-12 {width: 100%;} + + [class*="col-"] { + float: left; + padding: 15px; + /*border: 1px solid green;*/ /* FORTESTING otherwise disable */ + } + + /* Ensure columns are respected as if they always exist. */ + .row::after { + content: ""; + clear: both; + display: table; + } + + /** Make the menu items centered and layout horizontal. **/ + .menu-list { + text-align: center; + list-style-type: none; + padding-left: 0px; + } + .menu_item { + display: inline-block; + } + + /** Be able to position anything easily. **/ + .center { + text-align: center; + } + .left { + text-align: start; + } + .right { + text-align: end; + } + + /** Use ul to create an indent but without the bullet point. **/ + .indent { + list-style-type: none; + } + + /** Objects which need borders **/ + .border { + border: 1px solid #339933; + } + + /* Also have this apply to a table's cells. */ + .border * th,td { + border: 1px solid #339933; + } + + /** Format tables and allow contents to be broken up. **/ + table { + /*width: 100%;*/ + border-collapse: collapse; + /*table-layout: fixed;*/ + } + table * th,td { + word-wrap: break-word; + overflow-wrap: break-word; + /*max-width: 1px;*/ + padding: 7px; + } diff --git a/pages/helpers/menu.php b/pages/helpers/menu.php new file mode 100755 index 0000000..b0cba81 --- /dev/null +++ b/pages/helpers/menu.php @@ -0,0 +1,12 @@ +#!/usr/bin/php +
+ +
diff --git a/pages/home.php b/pages/home.php new file mode 100755 index 0000000..8651671 --- /dev/null +++ b/pages/home.php @@ -0,0 +1,30 @@ +#!/usr/bin/php + + + +
+

Welcome!

+
+
+
+

+ [ Website is still in development, please treat this as an unfinished product. ] +

+

+ Thanks for visiting my site! It is the central hub of my activities, + linking you to most of my projects and providing ways to contact and + support me. I've also included information such as my health protocol + which was currently only scattered throughout videos. +

+
+
+ + diff --git a/pages/journey.sh b/pages/journey.sh new file mode 100755 index 0000000..e1facc3 --- /dev/null +++ b/pages/journey.sh @@ -0,0 +1,211 @@ +#!/bin/bash + +# Move to the directory that this file is in. +cd `dirname $0` + +# Create the necessary HTML components for a web page. +./helpers/body_open.php + +#Content for this page +cat << EOF +
+

+ My Journey +

+
+
+
+ Fast Asleep +

+ Headaches, depression, digestive issues, lack of energy, and eventually + unprovoked anxiety/panic attacks. This was the norm for me for most of + my life. I ate a standard diet including fast food with meat always + being the main portion whether going out or cooking at home. +

+

+ Eventually I became lactose intolerant due to antibiotics but that was + only a minor inconvenience, and did not always stop me from consuming + things anyways. I had tried the pills which are supposed to help but + didn't notice any difference. This didn't phase my diet though, just + had to ask for "no cheese" and stop drinking milkshakes. +

+

+ What finally hit me hard enough to start changing things was the panic + attacks and an itchy mole that had to be surgically removed. By this point + in my early 20s I was already plenty skeptical of things like organized + religion and businesses profiting off of people, but it started to occur + to me that there were not many facts about health in my knowledge bank. + What most people were doing and what I was doing is not working for us. +

+

+ When I looked in the mirror to see my eyes dilating frantically and body + feeling shaky and nervous when simply resting or eating a meal I knew that + something was wrong. Then it occurred to me: "Why would God or Evolution + ever produce a species that thinks of itself as so advanced, but has + so many health issues that they consistently die prematurely or suffer + chronically?" +

+ Waking Up +

+ This lead me into a more nature-based approach to my lifestyle. Obvious + things such as soda and candy were eliminated first. Next was fast food. + By the end of it I had eliminated "food" such as meat as well since I + admitted that if I was living in the wild, I wouldn't be able to kill + a cow with my bare hands or teeth, much less chew on its raw carcass. +

+

+ At this point my meals were mostly fruit and vegetables. I didn't really + know what I was doing though. I still allowed myself bread, so most meals + were oatmeal or peanut butter sandwiches with either jelly or bananas. I + was feeling better, but knew that bread didn't grow on trees so I needed + to keep going further. This was around the time that a nasty looking and + extremely itchy mole had to be cut out of the back of my leg. +

+

+ My saving grace was quitting a restaurant job in order to seek a job + related to my upcoming career field of Computer Science. This was the + summer of 2014 before my final year of school. I had figured out that my + hydration was trash and was now drinking at least a gallon of water a day. + I didn't have luck finding an internship, but I had plenty of time to + research health, and ended up doing an apple fast. +

+ Enter Fruitarianism +

+ I gorged on apples. Multiple pounds a day for at least three days. I + honestly did it not expecting it to work. Being able to live on apples + seemed like a joke, but I was willing to try it as an experiment. To my + surprise I started feeling better and better! By the end I had decided + that there was power to this and needed to explore even more! +

+

+ For the following three months I was a 100% raw fruitarian eating as many + calories as I could. I followed the advice of many people, mostly vegan + athletes such as Durianrider and Freelee, but also others like John Kohler + and Dan "The Man" McDonald. Dan also provided lots of good advice on loving + oneself and improving mental, emotional, and spiritual life. I also made + sure what I was doing was backed by medical staff such as John McDougall. +

+

+ I still tell people this to this day: those three months in 2014 were the + best feeling of my life. My body felt like lightning. I had so much energy + and felt like I could literally accomplish anything. I started riding a bike + without having done it since I was a kid, and was able to ride to a town + dozens of miles away with no training or practice, and didn't even feel + sore. My body was finally to the point that God or Evolution intended!! +

+

+ Acne, gone. Skin was glowing and I got many compliments. Suffering from + the heat and humidity of summer? Gone as well! My body was able to cool + off so much faster without having cooked food stuck in digestion. There + were so many weird things that people wouldn't think of being related to + diet and lifestyle. Michael Arnstein even mentions in some interviews that + being fruitarian stopped him from getting earwax! +

+ Health is a Lifestyle, not Diet +

+ Speaking of lifestyle, that is something else I learned from listening to + my new role models. "Sleep Water Sugar" as Durianrider used to say. The + [TBD: PDF] + on my main + Health + section covers the 6 pillars that I found to be highly important. +

+

+ "CTFU" (Carb The Fuck Up) is first for a reason, in my experimentation + it was the most important one. Water and sleep follow because I found + my body does not operate or digest well if those are missing. Exercise + is next because it can go longer without being kept up. The last two + are more spiritual, and require the first four to be maintained in + order for them to be beneficial, but once they are achieved then they + can help keep the first four in check when they dwindle. +

+

+ There was a day where I wondered if I was now cured of something and could + go back to foods from my old diet. So one night for dinner I ate with my + family and had some sort of pasta with meat. After eating I ran an errand, + and remember within less than a few minutes, after only getting to the + street after our home, I started nodding off at the wheel. What a quick + indication that certain foods are a no-go! +

+ Back to the Real World +

+ Why would I stop eating like this, you ask? This was a temporary situation. + I was on summer break from school and free from any job. When the fall + semester started I needed a job again to pay for gas, books, etc. So I + added in clean RawTil4 type foods like rice. For many years I ate like this + and still felt great. No oil, which I still don't do to this day. Also no + seasoning, I firmly believe in only eating food that you like the taste + of alone and would be happy eating as a monomeal. This is one of many + reasons I don't like seasonings and prefer not to use them. +

+

+ Eventually I was corrupted and did end up adding more junk food vegan + foods. I tried the fake cheeses, meats, ate food with oils, had processed + snacks, etc. During this time though I stuck to the main principles of + the PDF, and kept the carb ratio high as well as stayed hydrated and + rested. I could tell that the processed food was lowering my energy levels + but I remained disease free and was still able to accomplish a lot. I + still ate simple meals like fruits and rice when alone but was more + willing to go out with coworkers and family to restaurants. +

+ Learning My Sensitivities +

+ There are other things I was able to discover about my body as well when + reintroducing cooked foods, such as alliums causing headaches, body pain, + nightmares, and with garlic specifically it becomes full-on night terrors. + These are an absolute no when I'm able to control it. +

+

+ Nightshades have also been slowly phased out. I avoid all potato unless + deep fried so that the poison is destroyed, although I do try to avoid + deep fried food when possible. In 2022 as an experiment with my wife + while she tried a low histamine experiment I also found that tomatoes + were the reason that my nose has been running consistently for years! + I had been blaming bad air, but just goes to show that you can never + stop learning! So now even things like tomatoes and non-spicy peppers + have been cut out. These are less of an issue, but raw and undercooked + potatoes cause an obvious head and body tingle/ache. I've also found + that eggplant digests terribly for me. +

+

+ Stress is also a sensitivity for me. I tend to put myself in my work, + so creating a work/life balance is important to prevent me from getting + overwhelmed from a needy environment. When deadlines are not realistic + or there is just too much work to go around I have learned to accept + that it is other's responsibilities to manage these things wisely. If + the people saying these things need done are the same people who do not + offer overtime compensation or other benefits for overworking then the + blame and stress of not accomplishing these things cannot be mine. I + cannot accept the responsibility of other people's mismanagement. +

+ Current Lifestyle +

+ Today I lean towards a more RawTilX style diet again. Breakfast consists + of fruit, such as a pound or two of apples, or half a pound of dried + mango rehydrated for a few hours in water. Lunch is a grain such as + rice or quinoa. Dinner is usually a high-vegetable dish and tends to + include beans. Sometimes breakfast may be a water or dry fast, the fruit + meal is done as lunch, and lunch and dinner are combined into one meal. +

+

+ Exercise comes and goes. Cycling is no longer a hobby of mine. A normal + week will have multiple 20-30 minute dog walks as well as a few strenuous + hikes. Yard and garden work also contribute to keeping the body active + and strong. It also aids in getting sunand fresh air! +

+ Thank You! +

+ I appreciate you making it through this! Hopefully you've not only learned + a thing or two about me, but you've also obtained knowledge that you can + help improve your life. That's my goal after all, helping others! + Take care, friend. :) +

+
+
+EOF + +# Any subpages +###./subpages/journey/??? + +# Finish the web page +./helpers/body_close.php diff --git a/pages/subpages/about/health.php b/pages/subpages/about/health.php new file mode 100755 index 0000000..8f7e3f6 --- /dev/null +++ b/pages/subpages/about/health.php @@ -0,0 +1,60 @@ +#!/usr/bin/php +
+

My Health Protocol

+
+
+
+

+ I have not been sick since I cleaned up my lifestyle in 2014. No colds, + flus, fevers, etc. My suggestions for accomplishing this are simple. + Consistently: +

    +
  • eat enough clean food,
  • +
  • drink enough clean water,
  • +
  • get enough good sleep, and
  • +
  • enjoy a low-stress life.
  • +
+ Unfortunately our society today has many different views on how to + do these things, most of which I would say do not work. A full list of + my protocol without getting too into the weeds can be found here: +

+ + + Health Is A Priority (PDF Download) [TBD] + +

+ Other free sources of imformation I recommend would be + Dr John McDougall, + Dr Neal Barnard, and + Dr Caldwell Esselstyn. + All of them have plenty of free videos and resources online, there is + no need to buy their books unless you want to support them. They have + been reversing sickness for decades and their plans follow a similar + whole food carb-based lifestyle such as my own, with NO OIL! +

+ +

+ For more information on my specifics and why I came to this lifestyle please visit + My Journey. +

+
+
diff --git a/pages/subpages/about/notice.php b/pages/subpages/about/notice.php new file mode 100755 index 0000000..24a1ba4 --- /dev/null +++ b/pages/subpages/about/notice.php @@ -0,0 +1,23 @@ +#!/usr/bin/php +
+

Public Notice

+
+
+
+ No Guarentee +

+ Anything I say, do, or produce comes with no guarentee or warranty + unless explicitly noted. +

+ Freedom of Choice +

+ My time is my own and I choose what to do with it. I am in the process + of reclaiming any of it which I feel has been given away in error. +

+ Freedom of Association +

+ I choose who and what I do my business with and hold the right to make + different choices at any time. +

+
+
diff --git a/pages/subpages/about/stance.php b/pages/subpages/about/stance.php new file mode 100755 index 0000000..75a45b5 --- /dev/null +++ b/pages/subpages/about/stance.php @@ -0,0 +1,39 @@ +#!/usr/bin/php + +
+

Philosophical Stance

+
+
+
+ General +

+ My thoughts are my own. I do not subscribe to any external systems. +

+

+ I believe in: +

+
    +
  • Peace over War
  • +
  • Love over Hate
  • +
  • Happiness over Currency
  • +
  • Free Time over Salaray
  • +
  • People over Profit
  • +
  • Freedom over Security
  • +
  • Rules over Rulers
  • +
  • Simplicity over Features
  • +
  • Trust over Discipline
  • +
+

+ I prefer interacting with human beings and creatures of the Earth. + Electronics and artifical persons are of decreasing interest to me. +

+ Politics +

+ I would like to be left alone to be a morally responsible adult. I do + not choose a side in the divisive hobby known as politics. I follow + arbitrary and meaningless rules only to avoid being abused by a + fictitious entity called government. I refuse any rules which are + immoral such as requiring one to cause harm to another living being. +

+
+
diff --git a/pages/subpages/home/apps.php b/pages/subpages/home/apps.php new file mode 100755 index 0000000..d08d5ea --- /dev/null +++ b/pages/subpages/home/apps.php @@ -0,0 +1,145 @@ +#!/usr/bin/php +
+

My Public Programs

+

+ I write free software! Please feel welcome to browse and use anything I have created. +

+
+ +
+

Android Apps

+
+ +
+
+
+ + ctfu_image +
+

Carb Up! BETA

+
+

+ Calculate cost-effectiveness of foods on a High Carb Low Fat lifestyle. +

+

+ [Play Store] + [APK] +

+

+ TBD: + + [F-Droid] + [Github] + +

+
+
+
+ +
+
+ + 45minuterule +
+

45 Minute Rule

+
+

+ Determine when to go to bed if you'd like to wake up during light sleep. +

+

+ [Play Store] + [APK] +

+

+ TBD: + + [F-Droid] + [Github] + +

+
+
+
+ +
+
+ + infinitetimer_image +
+

Infinite Timer

+
+

+ Play your notification sound at your chosen Hour:Minute:Second interval. +

+

+ [Play Store] + [APK] +

+

+ TBD: + + [F-Droid] + [Github] + +

+
+
+
+ +
+
+ + hypergames_image +
+

+ HyperGames +

+
+

+ Began developing some games for fun. Not near a finished state, but "playable". +

+

+ [Play Store] + [APK] +

+

+ TBD: + + [F-Droid] + [Github] + +

+
+
+
+
+ +
+

Other Programs

+
+
+

+ For a full list of programs including my Ansible automation, + Docker setup, source code for this website, and fun projects + like an obfuscating editor and music fixer, check out + My Github. +

+
diff --git a/pages/subpages/support/donate.php b/pages/subpages/support/donate.php new file mode 100755 index 0000000..da8de11 --- /dev/null +++ b/pages/subpages/support/donate.php @@ -0,0 +1,35 @@ +#!/usr/bin/php + + +
+
+

+ Monetary donations can be provided below through cryptocurrencies. +

+
  • + + + + + + + + + + + + + + + + + + + + +
    DescriptionTicker#Address
    MoneroXMR4ATk6owoMki46CuVfyAHS57FB5deqVFudTsaifQC1cfmcaQemgPEftcjZcW9DmcyfrfdRjxHQ9m4JAVSorYTgm6h8JnT7ao
    LBRY/Odysee CreditLBCbDWP6qZajtm9Q9EkryKTorRwKFd5eDbPJj
    +
+
+
diff --git a/pages/subpages/support/gifts.php b/pages/subpages/support/gifts.php new file mode 100755 index 0000000..f8d78c1 --- /dev/null +++ b/pages/subpages/support/gifts.php @@ -0,0 +1,64 @@ +#!/usr/bin/php + +
+

Gifts

+
+
+
+

+ Please reach out before purchasing any of these to make sure that I do + not already have an excess supply. I can also provide a good address + in case I have moved around. I also recommend you buying these for + yourself if you'd like to add delicious nutritious food to your diet! +

+ Food Items + + Bulk Teas + +
+
diff --git a/pages/support.php b/pages/support.php new file mode 100755 index 0000000..d915c77 --- /dev/null +++ b/pages/support.php @@ -0,0 +1,27 @@ +#!/usr/bin/php + + + +
+

Support

+
+
+
+

+ While I do not ask for anything, and prefer to take care of myself, + I acknowledge that some people enjoy gift giving and would like to + help me out. Below are my preferred ways to do this. +

+
+
+ + diff --git a/pages/test.sh b/pages/test.sh new file mode 100755 index 0000000..8058e61 --- /dev/null +++ b/pages/test.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# Move to the directory that this file is in. +cd `dirname $0` + +# Create the necessary HTML components for a web page. +./helpers/body_open.php +echo -e "\t\t

This is a web page written in BASH!!!

" +cat << EOF +

+ Look at all the fancy things we can do! +

+

Current Time

+

+ We can use the date command to spit out the time! +

+

+ `date` +

+EOF + +# Create a subsection +echo -e "\t\t

Server Neofetch

" +echo -e "\t\t

" +neofetch --stdout +echo -e "\t\t

" + +# Finish the web page +./helpers/body_close.php diff --git a/pages/videos.php b/pages/videos.php new file mode 100755 index 0000000..19abb88 --- /dev/null +++ b/pages/videos.php @@ -0,0 +1,39 @@ +#!/usr/bin/php + + + +
+

Videos

+
+
+
+

+ I enjoy making video content when I have free time. Other life duties + take priority so this is not always frequent of often. For the best + viewing experience, please go directly to my channel here: +

+ +

I also have a separate channel for reposting content, found here:

+ +
+
+ + diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..74e2ba3 --- /dev/null +++ b/run.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# 2022-09-14 Hyperling +# Ensure dependencies are met and start the webserver. + +# Ensure we are executing from this file's directory. +cd `dirname $0` + +### Can docker-compose do this rather than running a sh file on the host OS? +# Look at Dockerfile-ADD for doing git clones into a docker environment. +# Out of scope for this project, this project is just the site, leave for now. +if [[ ! `which php` || ! `which node`|| ! `which npm` ]]; then + sudo apt install -y php-fpm nodejs npm +fi + +# Fix any file permissions +# Directories and allowed page types are executable, others are not. +find ./pages/ | while read file; do + if [[ $file == *".php" || $file == *".sh" || -d $file ]]; then + mode=755 + else + mode=644 + fi + chmod -c $mode $file +done + +npm install + +./main.js +### + +exit $?