Compare commits

...

4 Commits

Author SHA1 Message Date
Jez Cope cc479378ef flake: add simple-http-server to shell 2023-07-10 19:33:36 +01:00
Jez Cope bc09db66b2 flake: tidying 2023-07-10 19:33:22 +01:00
Jez Cope 6db97a1957 server: add redirect for old blog post urls 2023-07-10 19:32:57 +01:00
Jez Cope f7dc0749fb Note: Twitter archive 2023-07-10 19:32:20 +01:00
4 changed files with 28 additions and 3 deletions

View File

@ -0,0 +1,21 @@
---
title: Twitter archive
slug: twitter-archive
date: 2023-07-10T19:02:14+01:00
type: note
tags:
- Social Media
- Twitter
---
Just a quick note to say
that since I've deleted my Twitter account,
I've set up a [static archive of all my tweets](/twitter-archive/).
Yes, even those embarrassing first ones.
This was made possible by Darius Kazemi:
<https://tinysubversions.com/twitter-archive/make-your-own/>
You can still
[find me on Mastodon as @petrichor:digipres.club](https://digipres.club/@petrichor)
or via any of the other links at the bottom of the page.

View File

@ -4,7 +4,8 @@
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.twitter-archive = {
url = "https://codeberg.org/api/v1/repos/jezcope/twitter-archive/archive/main.tar.gz";
url =
"https://codeberg.org/api/v1/repos/jezcope/twitter-archive/archive/main.tar.gz";
flake = false;
};
@ -24,7 +25,8 @@
paths = [ iosevka iosevka-aile iosevka-etoile ];
};
erambler = pkgs.callPackage ./nix/build.nix { inherit fonts twitter-archive; };
erambler =
pkgs.callPackage ./nix/build.nix { inherit fonts twitter-archive; };
inherit twitter-archive;
};
@ -39,8 +41,8 @@
in {
packages = {
inherit (pkgs) erambler iosevka iosevka-aile iosevka-etoile fonts;
default = pkgs.erambler;
};
defaultPackage = pkgs.erambler;
devShell = pkgs.callPackage ./nix/shell.nix { };
});

View File

@ -16,6 +16,7 @@
locations = {
"~ ^/(feed|rss)(\\.xml|/)".return = "301 /index.xml";
"~ ^/tags/([a-zA-Z-]+)\\.xml".return = "301 /tags/$1/index.xml";
"~ ^/20(0\\d|1[0-5])/\\d\\d/\\d//d/(.*)".return = "301 /blog/$2";
"/index.xml".extraConfig = ''
add_header Link '<https://erambler.co.uk/rss.xml>; rel="self"';

View File

@ -7,5 +7,6 @@ mkShell {
(py: with py; [ python invoke rich requests ruamel_yaml sh ]))
yarn
hugo
simple-http-server
];
}