Skip to content

Instantly share code, notes, and snippets.

@Lomanic
Lomanic / sutom_downloader.rb
Created March 21, 2022 18:21
Download previous words from sutom.nocle.fr
require 'base64'
require 'date'
require 'open-uri'
# https://github.com/pil0u/sutom-tob/commit/263e26ec15019f1f41582dc3480b54c2d23266af
def uri_mot_sutom(jour)
origine = Date.new(2022, 1, 7)
aujourdhui = origine + jour
s = "34ccc522-c264-4e51-b293-fd5bd60ef7aa-#{aujourdhui}"
@Lomanic
Lomanic / README.md
Last active April 28, 2023 19:10
redbean.dev + tiddlywiki

This is an adptation of this article describing a redbean-based tiddlywiki server (with persistence) shared on lobste.rs and hacker news. Unfortunately, the code provided in the article doesn't work out-of-the-box, so here it is for an easy copy-paste.

if [ ! -f redbean.com ]; then
    curl https://redbean.dev/redbean-latest.com -o redbean.com
    chmod +x redbean.com
fi
cp -a redbean.com wiki.com