Compare commits
4 Commits
249fbe6de5
...
46397d90ed
Author | SHA1 | Date |
---|---|---|
|
46397d90ed | |
|
b670a72c29 | |
|
4ba624b084 | |
|
8034b417ec |
|
@ -0,0 +1,6 @@
|
||||||
|
version: 3.8
|
||||||
|
services:
|
||||||
|
tooter:
|
||||||
|
container_name: jbmasto
|
||||||
|
build: /home/oct2pus/server-config/docker-files/jbmasto
|
||||||
|
volume:
|
|
@ -0,0 +1,3 @@
|
||||||
|
services:
|
||||||
|
mega:
|
||||||
|
image:
|
|
@ -0,0 +1,14 @@
|
||||||
|
version: '3.7'
|
||||||
|
volumes:
|
||||||
|
sharry-data:
|
||||||
|
driver: local
|
||||||
|
|
||||||
|
services:
|
||||||
|
restserver:
|
||||||
|
image: eikek0/sharry:latest
|
||||||
|
container_name: sharry
|
||||||
|
command: /data/sharry.conf
|
||||||
|
ports:
|
||||||
|
- "9090:9090"
|
||||||
|
volumes:
|
||||||
|
- sharry-data:/data/
|
|
@ -0,0 +1,4 @@
|
||||||
|
FROM debian:stable-slim
|
||||||
|
RUN apt-get update && apt-get install -y fish toot
|
||||||
|
ADD ./jbmasto/* /root
|
||||||
|
CMD ./root/markov.fish
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
story/394
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/fish
|
||||||
|
|
||||||
|
# requires toot, a trained model.json, and generator
|
||||||
|
# (found @ github.com/oct2pus/jadebot/markov/generator)
|
||||||
|
while true
|
||||||
|
toot post (./generator)
|
||||||
|
sleep 3600
|
||||||
|
end
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,18 @@
|
||||||
|
#!/usr/bin/fish
|
||||||
|
|
||||||
|
set parturl (curl -s https://upd8.ninja/latestupd8.json | jq -r ".parturl")
|
||||||
|
|
||||||
|
echo $parturl > ./latest.txt
|
||||||
|
|
||||||
|
while true
|
||||||
|
set parturl (curl -s https://upd8.ninja/latestupd8.json | jq -r ".parturl")
|
||||||
|
if test ! -z $parturl
|
||||||
|
and [ (echo $parturl) != (cat latest.txt) ]
|
||||||
|
|
||||||
|
set title (curl -s https://upd8.ninja/latestupd8.json | jq -r ".title")
|
||||||
|
set pages (curl -s https://upd8.ninja/latestupd8.json | jq -r ".pages")
|
||||||
|
printf "New #homestuck update!\nTitle: %s\nPages: %s\nLink: https://homestuck2.com/%s" $title $pages $parturl | toot post
|
||||||
|
echo $parturl > ./latest.txt
|
||||||
|
end
|
||||||
|
sleep 10
|
||||||
|
end
|
|
@ -0,0 +1,8 @@
|
||||||
|
FROM debian:stable-slim
|
||||||
|
RUN dpkg --add-architecture armhf
|
||||||
|
RUN ["/bin/apt-get", "update"]
|
||||||
|
RUN apt-get -y install wget
|
||||||
|
RUN wget http://http.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_armhf.deb && apt-get -y install "$PWD/libssl1.1_1.1.1w-0+deb11u1_armhf.deb"
|
||||||
|
RUN wget https://mega.nz/linux/repo/Raspbian_11/armhf/megacmd-Raspbian_11_armhf.deb && apt-get -y install "$PWD/megacmd-Raspbian_11_armhf.deb"
|
||||||
|
WORKDIR /
|
||||||
|
CMD mega-cmd-server
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/fish
|
||||||
|
|
||||||
|
for i in (ls compose-files)
|
||||||
|
cp compose-files/$i ~/.config/compose/
|
||||||
|
end
|
||||||
|
|
||||||
|
for i in (ls service-files)
|
||||||
|
cp service-files/$i ~/.config/systemd/user/
|
||||||
|
end
|
|
@ -0,0 +1,20 @@
|
||||||
|
[Unit]
|
||||||
|
Description=sharry.service
|
||||||
|
Wants=network.target
|
||||||
|
After=network-online.target
|
||||||
|
RequiresMountsFor=/var/lib/containers/storage /var/run/containers/storage
|
||||||
|
|
||||||
|
# %E is "the XDG_CONFIG path"
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||||
|
Restart=on-failure
|
||||||
|
TimeoutStopSec=70
|
||||||
|
ExecStart=/usr/bin/podman-compose -f %E/compose/sharry.yml up -d
|
||||||
|
ExecStop=/usr/bin/podman-compose -f %E/compose/sharry.yml down
|
||||||
|
ExecStopPost=/usr/bin/podman rm sharry
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target default.target
|
Loading…
Reference in New Issue