Clone Mastodon's repository.
# Clone Mastodon to ~/mastodon directory
git clone https://github.com/mastodon/mastodon
# Change directory to ~/mastodon
cd ~/mastodon
map $request_uri $ap_resource_user { | |
~^/@(\w+)$ $1; | |
~^/@(\w+)/\d+$ $1; | |
~^/users/(\w+)$ $1; | |
~^/users/(\w+)/\w+$ $1; | |
~^/users/(\w+)/statuses/\d+$ $1; | |
default ""; | |
} |
# Add this to the end of your .*rc file (dependent on your shell) | |
echo "\033[31m" | |
cat ~/keygen_church.ascii.txt | |
echo "\033[0m" | |
echo " PRAISE THE CODE" | |
echo |
# Place this after your default configuration | |
frontend fedi_fe | |
mode http | |
# this is the address that haproxy will listen on, | |
# when doing this local loopback, its recommended to set to localhost (127.0.0.1) | |
bind 127.0.0.1:28080 | |
default_backend fedi_fe |
from mastodon import Mastodon | |
# Create an application, and fill in these parameters with that. | |
# You should at least have the following permissions; | |
# - read | |
# - admin:read | |
# - admin:read:accounts | |
# - admin:write | |
# - admin:write:accounts | |
mastodon = Mastodon( |
A rant I posted in the Jupiter Broadcasting Unplugged feedback room
Re 449: about IPFS, I do have some comments/feedback, and some warnings;
IPFS in general was supposed to be a multi-language Thing, however, as of yet, only a golang and a JS version exists. Begin 2020 I was looking to change that, wanting to see python added to the mix (because python is imo a much better language to experiment on), so I started poking at py-libp2p, and through a combination of discussion, talks, and just seeing who or where the maintainers were contributing things, I discovered that IPFS was ran on money, and not the good kind of money.
Py-libp2p (libp2p being a library that was supposed to unify all peer to peer communication in a collaborative way, but is now just a repo merge away from codebase isolation irrelevance) was maintained by ethereum developers, who saw it as a fancy new library to piggyback another client onto, but couldn’t care less for the IPFS usecase itself. That’s kinda fine… if they did not dom
Use the following to install or update conduit_migrate
;
cargo install --locked --git https://github.com/shadowjonathan/conduit_toolbox conduit_migrate
This'll place it in ~/.cargo/bin
, make sure you have this on your $PATH
, see
rustup documentation for more info.
You can choose a origin database format and a destination database format, the current ones are;
heed
sqlite
Use the following to install or update conduit_migrate
;
cargo install --locked --git https://github.com/shadowjonathan/conduit_toolbox conduit_migrate
This'll place it in ~/.cargo/bin
, make sure you have this on your $PATH
, see
rustup documentation for more info.
You can choose a origin database format and a destination database format, the current ones are;
heed
sqlite
# /etc/systemd/system/fix-vlc.service | |
[Unit] | |
Description=Fix VLC | |
After=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target sleep.target | |
[Service] | |
User=root | |
Type=oneshot | |
ExecStart=-/usr/bin/killall vlc | |
TimeoutSec=10 |