Everything required to run my site.
This repository has been archived on 2024-01-22. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2023-07-02 21:12:46 +02:00
articles some fixes 2023-07-01 18:22:44 +02:00
css Footer improvements 2023-07-01 19:19:50 +02:00
img resize some images to save space 2023-07-02 01:02:38 +02:00
md Move blog posts over to using Markdown 2023-06-30 23:39:01 +02:00
php remove blog-p, rewrite some things 2023-07-01 21:37:27 +02:00
projects s/spDE/spde/g 2023-06-26 04:37:35 +02:00
.gitignore Add final PHP and images, pretty much ready to set up the site now. 2022-11-23 18:16:09 +01:00
.htaccess some fixes 2023-07-01 18:22:44 +02:00
about-me.php add some more entries to based.php 2023-06-21 18:33:17 +02:00
based.php Add to based.php 2023-07-02 21:12:46 +02:00
blog.php minor cleanup 2023-07-02 01:32:43 +02:00
credits.php Cleanup, replace Codeberg links 2023-06-26 04:33:44 +02:00
donate.php sed "s/h1/h2/g" 2023-06-20 04:28:53 +02:00
ideas.php add ideas.php 2023-06-20 02:05:50 +02:00
index.php Cleanup, replace Codeberg links 2023-06-26 04:33:44 +02:00
LICENSE Add licenses 2023-07-01 12:45:01 +02:00
LICENSE.blog Add licenses 2023-07-01 12:45:01 +02:00
overlay.xml update 2023-06-03 00:42:41 +00:00
philosophy.php cleanup the site a bit, still need to work on index and actually write 2023-06-13 16:05:29 +02:00
privacy.php Remove wiki.speedie.site and speedwm.speedie.site, although it should be 2023-06-12 01:59:00 +02:00
project-list.php update spmenu text in project-list 2023-06-26 04:39:38 +02:00
README.md Add crontab note to README 2023-07-02 01:18:01 +02:00
rocks.php Add cairo to rocks.php 2023-07-02 01:12:10 +02:00
rss-archived-01.xml archive many blog posts 2023-06-16 02:59:25 +02:00
rss-archived-02.xml archive many blog posts 2023-06-16 02:59:25 +02:00
rss.xml some fixes 2023-07-01 18:22:44 +02:00
sucks.php Add RHEL to sucks.php 2023-06-26 03:21:32 +02:00
test.sh some cleanup, we don't need the wiki to be here anyway 2023-02-17 23:51:54 +01:00
updates.xml add spmenu 2.3 update post 2023-06-28 20:02:50 +02:00

speedie-page

Everything required to host my site on your own.

Dependencies

  • php
  • Web server (not required for testing)

Testing

You can test the page using php -S localhost:1337 and opening http://localhost:1337 in your web browser.

Crontab notes

If you want to git pull every minute, you can do the following:

  • sudo crontab -e to edit the crontab file
  • Add */1 * * * * su -s /bin/sh <your user> -c '/usr/bin/gitpull.sh' to the file.
  • Add the following to /usr/bin/gitpull.sh
#!/bin/sh
cd /var/www/page
cd speedie.site # assuming /var/www/page/speedie.site is the git repository
git pull origin master > /tmp/gitpull_speedie.site # log file

Blog

The blog is handled by blog.php. It also generates rss.xml on execution if the result differs from the existing file. To add new blog posts, add a new Markdown article to /articles. You must also create a .md.date and .md.num file for the new page. The .md.date contains the date, in YYYY-MM-DD format, and the .md.num contains the blog post number, used for sorting.

Contributions

To contribute, simply create an issue or submit a pull request. You know how it works.

License

License for almost all PHP is GNU General Public License version 3. The license for blog.php is MIT though, see LICENSE.blog.