Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

After quite some time, I’m finally ready to share this.


Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    1 Posts
    12 Views
    Hi @benpate 👋I see that in your #Emissary resources page, you refer to the old names and codeberg repo's of the #ActivityPub #fediverse delightful curated lists. But they have dedicated sub-list pages on the #DelightfulCommons website at https://delightful.coding.social Referring to this page: https://emissary.dev/fediverse-resources#developer-resources
  • 0 Votes
    1 Posts
    12 Views
    Non tutti sanno che... E' semplicissimo fare un post (toot) sul proprio profilo #mastodon con un semplice comando, ad esempio utilizzando #curl. Vediamo come fare. Abilitazione e creazione token Accedere, con il vostro account, al l'istanza mastodon di riferimento. Andare su Preferenze (menù a destra) Andare su Sviluppo (menù a sinistra) Fare click su Nuova applòicazione Compilare tutti i campi e concedere almeno i permessi di scrittura post. Salvare in un luogo sicuro (password manager) quanto generato. Comando curl di esempio curl -s -X POST https://mastodon.uno/api/v1/statuses \ -H "Authorization: Bearer TOKEN_DI_ACCESSO" \ -d "status=Ciao mondo" \ -d "visibility=public" \ Semplice Script di invio A questo punto possiamo farci un semplice script che prende in input, come parametro, del testo e lo invia per noi. cat toot.sh #!/bin/bash # Verifica che sia stato passato almeno un argomento if [ -z "$1" ]; then echo "Errore: devi passare il testo del toot come parametro." echo "Uso: $0 \"Testo del toot\"" exit 1 fi # Salva il parametro in una variabile TOOT="$1" # Esegui la richiesta POST curl -s -X POST https://mastodon.uno/api/v1/statuses \ -H "Authorization: Bearer TOKEN_DI_ACCESSO" \ -d "status=$TOOT" \ -d "visibility=public" \ -H "Authorization: Bearer TOKEN_DI_ACCESSO" \ | jq '.uri' Ho inserito #jq in fondo con un filtro (che possiamo modificare a nostro piacimento), perché l'output in formato json è abbastanza prolisso Perché? A parte che è bello fare il nerd è usare #mastodon da command line, ma la cosa può essere molto utile se la usiamo in abbinata ad altre azioni/comandi. Pensiamo ad esempio ad un integraszione con #forgejo, ad esempio potremmo fare un post (tramite #webook) al termine del nostro workflow. Un altro esempio è il collegare l'account ad un servizio di monitoraggio come #uptimekuma in questo modo si avrà una pagina che indica ai follower lo stato dei nostri servizi. Oppure usarlo al termine di un nostro script che preleva i prossimi appuntamenti da un caledario ics. Insomma, potete integrare l'invio di un toot alla fine di un vostro script custom, il limite a questo punto è solo la fantasia! E voi come lo usate? Seguimi su mastodon: @magostinelli@mastodon.uno Articolo pubblicato con licenza CC BY-NC-SA
  • 0 Votes
    1 Posts
    16 Views
    20+ years of self-hosted email. Windows-free since 2007 and only using Linux and BSD based computers. Here's my big tech exit so far:X -> Mastodon Reddit -> LemmyWhatsApp/iMessage -> Matrix & ThreemaGoogle Drive -> Nextcloud iCloud Photos -> ImmichNetflix -> Jellyfin & optical mediaAudible -> AudiobookshelfUbiquiti -> FreeBSD routerHomePod -> Home AssistantGitHub -> Codeberg/ForgejoCloud-Computing -> Netcup from GermanyOnline News outlets -> TinyRSSStill trapped: iPhone (ecosystem lock-in is real)#selfhosted #digitalsovereignty #unplugtrump #linux #bsd #bigtech #decentralize #fediverse #digitalfreedom #privacy
  • 0 Votes
    2 Posts
    16 Views
    @feyter ohh boy... IMHOI believe I am a game developer. Even though my games are barely games and I have sold $0.I am also a hobby game developer, because I am not selling anything and I just want to make something.A profesional game developer is someone that can/has gotten hired to develop games.An indie games developer used to mean something but can now mean almost anything.A solo games developer is a rockstar fullstack genius that does entire games, except the parts they cant do.🤭