Skip to content

Commit

Permalink
.co.uk -> .net for server links
Browse files Browse the repository at this point in the history
  • Loading branch information
alifeee committed Feb 12, 2025
1 parent 2b31085 commit 83f1a82
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 18 deletions.
8 changes: 4 additions & 4 deletions gists/gists.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ py auto.py --dayonly multplayer "multplayer start" "multplayer 1" "multplayer 2"

*why did I make it?*

I played a big multiplayer Factorio world once a week for ten weeks, and I used [`FactorioMaps`] to create an interactive map of the save after every week. You can (maybe) see the final map on <https://server.alifeee.co.uk/factorio/>.
I played a big multiplayer Factorio world once a week for ten weeks, and I used [`FactorioMaps`] to create an interactive map of the save after every week. You can (maybe) see the final map on <https://server.alifeee.net/factorio/>.

[`FactorioMaps`]: https://github.com/L0laapk3/FactorioMaps

Expand Down Expand Up @@ -591,7 +591,7 @@ Add the following to `~/.ssh/config`

```text
Host server
HostName server.alifeee.co.uk
HostName server.alifeee.net
User root
IdentityFile ~/.ssh/alifeeePC
​```
Expand Down Expand Up @@ -642,7 +642,7 @@ server {

### Folder alias

This redirects requests to `https://server.alifeee.co.uk/factorio` to `/var/www/factorio` instead of `/var/www/server_homepage/factorio`
This redirects requests to `https://server.alifeee.net/factorio` to `/var/www/factorio` instead of `/var/www/server_homepage/factorio`

```nginx
location /factorio {
Expand Down Expand Up @@ -735,7 +735,7 @@ sudo systemctl status webring.service

<figcaption>

This was a very useful gist for me to write. As it says in [the gist preamble][how to run a program as a service with systemd], I was running bots and programs (daemons) on my server in a very volatile way, so that I couldn't restart the server, or I would have to go and manually start [4 or 5 different programs](https://server.alifeee.co.uk/).
This was a very useful gist for me to write. As it says in [the gist preamble][how to run a program as a service with systemd], I was running bots and programs (daemons) on my server in a very volatile way, so that I couldn't restart the server, or I would have to go and manually start [4 or 5 different programs](https://server.alifeee.net/).

Working out how to use `systemd` with very simple use cases felt very handy, so I wrote it up because it was difficult for me to find good information on how to do it.

Expand Down
11 changes: 5 additions & 6 deletions gists/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -859,8 +859,8 @@ <h5 id="8-how-to-generate-and-host-a-factorio-map">
>
to create an interactive map of the save after every week. You can
(maybe) see the final map on
<a href="https://server.alifeee.co.uk/factorio/"
>https://server.alifeee.co.uk/factorio/</a
<a href="https://server.alifeee.net/factorio/"
>https://server.alifeee.net/factorio/</a
>.
</p>
<p><em>who is it for?</em></p>
Expand Down Expand Up @@ -1241,7 +1241,7 @@ <h5 id="18-how-to-set-up-rsa-encryption-keys">

```text
Host server
HostName server.alifeee.co.uk
HostName server.alifeee.net
User root
IdentityFile ~/.ssh/alifeeePC
​```
Expand Down Expand Up @@ -1299,7 +1299,7 @@ <h5 id="19-how-to-set-up-nginx">

### Folder alias

This redirects requests to `https://server.alifeee.co.uk/factorio` to `/var/www/factorio` instead of `/var/www/server_homepage/factorio`
This redirects requests to `https://server.alifeee.net/factorio` to `/var/www/factorio` instead of `/var/www/server_homepage/factorio`

```nginx
location /factorio {
Expand Down Expand Up @@ -1427,8 +1427,7 @@ <h5 id="21-how-to-run-a-program-as-a-service-with-systemd">
>, I was running bots and programs (daemons) on my server in a very
volatile way, so that I couldn&#39;t restart the server, or I would
have to go and manually start
<a href="https://server.alifeee.co.uk/">4 or 5 different programs</a
>.
<a href="https://server.alifeee.net/">4 or 5 different programs</a>.
</p>
<p>
Working out how to use <code>systemd</code> with very simple use
Expand Down
6 changes: 3 additions & 3 deletions gists/text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion notes/cron jobs are hard to make.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ I've now developed a process (when making something work that's super annoying,

before I did this, I was making sure that the scripts I made worked when called from any directory (i.e., by making each call to a file use `"${root_directory}/${file}"`). This was kind of annoying and I much prefer the "just `cd` into the directory before running the script" method.

Here are all of my current cron jobs on my [server](https://server.alifeee.co.uk) currently:
Here are all of my current cron jobs on my [server](https://server.alifeee.net) currently:

```crontab
0 10 * * * /home/alifeee/scripts/combine_treehouse.sh >> /home/alifeee/scripts/cron.log 2>&1
Expand Down
4 changes: 2 additions & 2 deletions steam-collage-api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ <h1 id="coding-projects-1-collage-generator-for-steam-games">Coding Projects! #1
<p>For my library, these are my four most recently played games. For yours, it&#39;s your four most played (<a href="https://github.com/alifeee/steam_collage_api/issues/20">recent is broken</a>). <del>This is HTTP content on an HTTPS page, so it may also not work if you are on Chrome - see above.</del></p>
</figcaption>

<p>This is created fresh every time you reload the page, and comes from <a href="http://server.alifeee.co.uk">my server</a>.</p>
<p>This is created fresh every time you reload the page, and comes from <a href="http://server.alifeee.net">my server</a>.</p>
<p>Is being able to have a live image like that worth the considerable (as you will unearth below) pain?
Maybe. I think it&#39;s neat!</p>
<p>I consider myself a visual person, and as such I like to always have an image to use in combination with text (as you see on <a href=".."><em>this blog&#39;s homepage</em></a> any <a href="https://linktr.ee/liputenpo">lipu tenpo posts</a>, and any Notion page I have [unfortunately] made you subscribe to). In the past for these things I have used Python and <a href="https://python-pillow.org/">Pillow</a> to make collages, such as this <a href="https://linktr.ee/liputenpo">lipu tenpo</a> collage:</p>
Expand Down Expand Up @@ -310,7 +310,7 @@ <h3 id="hosting-as-an-api">Hosting as an API</h3>
return send_file(collage_bytes, mimetype=&quot;image/jpeg&quot;)
</code></pre>
<p>With that, it&#39;s made! And to get the image, it&#39;s as simple as changing the <a href="https://en.wikipedia.org/wiki/Query_string">query parameters</a> on the URL. For example, the default image at the top of this post uses the URL:</p>
<pre><code class="language-url">http://server.alifeee.co.uk/steamcollage/games
<pre><code class="language-url">https://steamcollage.alifeee.co.uk/steamcollage/games
?id=alifeee
&amp;rows=2
&amp;cols=2
Expand Down
4 changes: 2 additions & 2 deletions steam-collage-api/steam-collage-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def games():
With that, it's made! And to get the image, it's as simple as changing the [query parameters] on the URL. For example, the default image at the top of this post uses the URL:

```url
http://server.alifeee.co.uk/steamcollage/games
https://steamcollage.alifeee.co.uk/steamcollage/games
?id=alifeee
&rows=2
&cols=2
Expand Down Expand Up @@ -300,7 +300,7 @@ Have a play on [the frontend][frontend]!
<!-- links -->

[*this blog's homepage*]: ..
[my server]: http://server.alifeee.co.uk
[my server]: http://server.alifeee.net
[lipu tenpo]: https://linktr.ee/liputenpo
[Pillow]: https://python-pillow.org/
[toki pona]: https://en.wikipedia.org/wiki/Toki_Pona
Expand Down

0 comments on commit 83f1a82

Please sign in to comment.