Public Activity

Fetched from https://distbin.com/activitypub/public/page

{…}
{
  "@context": "https://www.w3.org/ns/activitystreams",
  "next": "?cursor=%7B%22or%22%3A%5B%7B%22published%22%3A%7B%22lt%22%3A%222019-12-12T03%3A45%3A35.062Z%22%7D%7D%2C%7B%22and%22%3A%5B%7B%22published%22%3A%7B%22equals%22%3A%222019-12-12T03%3A45%3A35.062Z%22%7D%7D%2C%7B%22id%22%3A%7B%22lt%22%3A%22https%3A%2F%2Fdistbin.com%2Factivities%2F54301626-c880-4d72-b018-eb3677cd3802%22%7D%7D%5D%7D%5D%7D",
  "orderedItems": [
    {
      "type": "Create",
      "@context": "https://www.w3.org/ns/activitystreams",
      "cc": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "object": {
        "id": "urn:uuid:1150fd98-911a-4897-874a-1754b076da7e",
        "content": "```\r\n#!/usr/bin/env bash\r\n# License: 0BSD - see https://opensource.org/licenses/0BSD\r\n# This script is supposed to work together with curl and \r\n# toot (https://github.com/ihabunek/toot)\r\n#\r\n# Usage: curl -s <Feed-URL> | tootrss.sh\r\n\r\n# Config starts here\r\n\r\n# Location of toot\r\nTOOT=/usr/local/bin/toot\r\n# DB with already tooted URLs\r\nDB=\"/var/cache/toot.db\"\r\n# set DRYRUN=1 for dry run (nothing will be tooted), any other for the real thing\r\nDRYRUN=1\r\n#maximum number of toots per run\r\nMAXTOOT=1\r\n\r\n#Config end\r\n\r\nxmlgetnext () {\r\n   local IFS='>'\r\n   read -d '<' TAG VALUE\r\n}\r\n\r\n\r\nT=`mktemp`\r\n\r\ncat $1 | while xmlgetnext ; do\r\n   case $TAG in\r\n      'item')\r\n         title=''\r\n         link=''\r\n         pubDate=''\r\n         description=''\r\n         hashtag=''\r\n         ;;\r\n      'title')\r\n         title=\"$VALUE\"\r\n         ;;\r\n      'link')\r\n         link=\"$VALUE\"\r\n         ;;\r\n      'category')\r\n         hashtag=\"$VALUE\"\r\n         ;;\r\n      'description')\r\n         # convert '&lt;' and '&gt;' to '<' and '>'\r\n         description=$( echo \"$VALUE\" | sed -e 's/&lt;/</g' -e 's/&gt;/>/g' )\r\n         ;;\r\n      '/item')\r\n        Item=\"$title - $description - $link\"\r\n        echo -e \"${Item}\\n $(cat $T)\" >$T\r\n         ;;\r\n      esac\r\n\r\ndone\r\n\r\nTOOTNR=0\r\n\r\nwhile read Item; do\r\n  url=$(echo $Item |grep -o \"https://.*\")\r\n\r\n  if ! grep -q $url $DB; then\r\n\r\n    if [ ! -z \"$Item\" ]; then\r\n\r\n      if [ $DRYRUN -eq 1 ]; then\r\n        echo \"Would toot: $Item\"\r\n      else\r\n        echo $Item | $TOOT post --quiet\r\n        echo $url >> $DB\r\n     fi\r\n\r\n     let \"TOOTNR++\"\r\n     if [ $TOOTNR -ge $MAXTOOT ]; then\r\n       exit\r\n     fi\r\n\r\n    fi\r\n\r\n  fi\r\ndone < $T\r\n\r\nrm $T\r\n```\r\n",
        "generator": {
          "name": "distbin-html",
          "type": "Application",
          "url": "https://distbin.com"
        },
        "type": "Note"
      },
      "bcc": [
        "https://opensource.org/licenses/0BSD",
        "https://github.com/ihabunek/toot)"
      ],
      "id": "https://distbin.com/activities/43f08873-da83-4b32-93b2-789f11cefb71",
      "published": "2019-12-14T17:06:07.242Z",
      "distbin:activityPubDeliveryFailures": [
        {
          "message": "Got unexpected status code 404 when requesting https://github.com/ihabunek/toot) to determine inbox URL",
          "name": "TargetRequestFailed"
        },
        {
          "message": "Dont know how to parse contentType=text/html",
          "name": "UnexpectedContentTypeError"
        }
      ],
      "distbin:activityPubDeliverySuccesses": [],
      "http://www.w3.org/2002/07/owl#sameAs": [
        "urn:uuid:43f08873-da83-4b32-93b2-789f11cefb71"
      ],
      "inbox": [
        "https://distbin.com/activitypub/inbox"
      ],
      "replies": "https://distbin.com/activities/43f08873-da83-4b32-93b2-789f11cefb71/replies",
      "url": [
        "https://distbin.com/activities/43f08873-da83-4b32-93b2-789f11cefb71"
      ],
      "uuid": "43f08873-da83-4b32-93b2-789f11cefb71"
    },
    {
      "type": "Create",
      "@context": "https://www.w3.org/ns/activitystreams",
      "cc": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "object": {
        "id": "urn:uuid:ab055cdc-3e6a-4725-9049-61fc3535d96d",
        "content": "#!/usr/bin/env bash\r\n# License: 0BSD - see https://opensource.org/licenses/0BSD\r\n# This script is supposed to work together with curl and \r\n# toot (https://github.com/ihabunek/toot)\r\n#\r\n# Usage: curl -s <Feed-URL> | tootrss.sh\r\n\r\n\r\n# Config starts here\r\n\r\n# Location of toot\r\nTOOT=/usr/local/bin/toot\r\n# DB with already tooted URLs\r\nDB=\"/var/cache/toot.db\"\r\n# set DRYRUN=1 for dry run (nothing will be tooted), any other for the real thing\r\nDRYRUN=1\r\n#maximum number of toots per run\r\nMAXTOOT=1\r\n\r\n#Config end\r\n\r\nxmlgetnext () {\r\n   local IFS='>'\r\n   read -d '<' TAG VALUE\r\n}\r\n\r\n\r\nT=`mktemp`\r\n\r\ncat $1 | while xmlgetnext ; do\r\n   case $TAG in\r\n      'item')\r\n         title=''\r\n         link=''\r\n         pubDate=''\r\n         description=''\r\n         hashtag=''\r\n         ;;\r\n      'title')\r\n         title=\"$VALUE\"\r\n         ;;\r\n      'link')\r\n         link=\"$VALUE\"\r\n         ;;\r\n      'category')\r\n         hashtag=\"$VALUE\"\r\n         ;;\r\n      'description')\r\n         # convert '&lt;' and '&gt;' to '<' and '>'\r\n         description=$( echo \"$VALUE\" | sed -e 's/&lt;/</g' -e 's/&gt;/>/g' )\r\n         ;;\r\n      '/item')\r\n        Item=\"$title - $description - $link\"\r\n        echo -e \"${Item}\\n $(cat $T)\" >$T\r\n         ;;\r\n      esac\r\n\r\ndone\r\n\r\nTOOTNR=0\r\n\r\nwhile read Item; do\r\n  url=$(echo $Item |grep -o \"https://.*\")\r\n\r\n  if ! grep -q $url $DB; then\r\n\r\n    if [ ! -z \"$Item\" ]; then\r\n\r\n      if [ $DRYRUN -eq 1 ]; then\r\n        echo \"Would toot: $Item\"\r\n      else\r\n        echo $Item | $TOOT post --quiet\r\n        echo $url >> $DB\r\n     fi\r\n\r\n     let \"TOOTNR++\"\r\n     if [ $TOOTNR -ge $MAXTOOT ]; then\r\n       exit\r\n     fi\r\n\r\n    fi\r\n\r\n  fi\r\ndone < $T\r\n\r\nrm $T\r\n",
        "generator": {
          "name": "distbin-html",
          "type": "Application",
          "url": "https://distbin.com"
        },
        "type": "Note"
      },
      "bcc": [
        "https://opensource.org/licenses/0BSD",
        "https://github.com/ihabunek/toot)"
      ],
      "id": "https://distbin.com/activities/24f32252-ac7e-44fc-b047-748c31eead2c",
      "published": "2019-12-14T17:03:16.434Z",
      "distbin:activityPubDeliveryFailures": [
        {
          "message": "Got unexpected status code 404 when requesting https://github.com/ihabunek/toot) to determine inbox URL",
          "name": "TargetRequestFailed"
        },
        {
          "message": "Dont know how to parse contentType=text/html",
          "name": "UnexpectedContentTypeError"
        }
      ],
      "distbin:activityPubDeliverySuccesses": [],
      "http://www.w3.org/2002/07/owl#sameAs": [
        "urn:uuid:24f32252-ac7e-44fc-b047-748c31eead2c"
      ],
      "inbox": [
        "https://distbin.com/activitypub/inbox"
      ],
      "replies": "https://distbin.com/activities/24f32252-ac7e-44fc-b047-748c31eead2c/replies",
      "url": [
        "https://distbin.com/activities/24f32252-ac7e-44fc-b047-748c31eead2c"
      ],
      "uuid": "24f32252-ac7e-44fc-b047-748c31eead2c"
    },
    {
      "type": "Create",
      "@context": "https://www.w3.org/ns/activitystreams",
      "cc": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "object": {
        "id": "urn:uuid:08282e4c-8525-4b39-baf4-7bd099bc3851",
        "content": "oikjio",
        "generator": {
          "name": "distbin-html",
          "type": "Application",
          "url": "https://distbin.com"
        },
        "type": "Note"
      },
      "bcc": [],
      "id": "https://distbin.com/activities/842e9d7b-51f8-4c65-950c-c536da3bdc7d",
      "published": "2019-12-14T11:33:20.707Z",
      "http://www.w3.org/2002/07/owl#sameAs": [
        "urn:uuid:842e9d7b-51f8-4c65-950c-c536da3bdc7d"
      ],
      "inbox": [
        "https://distbin.com/activitypub/inbox"
      ],
      "replies": "https://distbin.com/activities/842e9d7b-51f8-4c65-950c-c536da3bdc7d/replies",
      "url": [
        "https://distbin.com/activities/842e9d7b-51f8-4c65-950c-c536da3bdc7d"
      ],
      "uuid": "842e9d7b-51f8-4c65-950c-c536da3bdc7d"
    },
    {
      "type": "Create",
      "@context": "https://www.w3.org/ns/activitystreams",
      "cc": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "object": {
        "id": "urn:uuid:c7508f95-fbc8-48de-a39a-c455f8170e7a",
        "content": "\r\n\r\n    Home\r\n    About\r\n    Wiki\r\n    Contact\r\n\r\n    Not logged in\r\n\r\nWant to support development? Maybe get a nice server to do your own development on? Check out BuyVM or Vultr using our affiliate links! New users get $50 of free credit with Vultr, and BuyVM offers affordable servers with affordable, true DDoS filtering. You can also support us on Patreon.\r\nExpiration\r\nDescription\r\nPaste\r\n\r\n    New Paste 1\r\n",
        "generator": {
          "name": "distbin-html",
          "type": "Application",
          "url": "https://distbin.com"
        },
        "type": "Note"
      },
      "bcc": [],
      "id": "https://distbin.com/activities/7441c069-9a2e-4e97-badd-4dea36c7efac",
      "published": "2019-12-14T06:43:31.363Z",
      "http://www.w3.org/2002/07/owl#sameAs": [
        "urn:uuid:7441c069-9a2e-4e97-badd-4dea36c7efac"
      ],
      "inbox": [
        "https://distbin.com/activitypub/inbox"
      ],
      "replies": "https://distbin.com/activities/7441c069-9a2e-4e97-badd-4dea36c7efac/replies",
      "url": [
        "https://distbin.com/activities/7441c069-9a2e-4e97-badd-4dea36c7efac"
      ],
      "uuid": "7441c069-9a2e-4e97-badd-4dea36c7efac"
    },
    {
      "type": "Create",
      "@context": "https://www.w3.org/ns/activitystreams",
      "cc": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "object": {
        "id": "urn:uuid:c9408fda-161f-4e39-ba50-355be92f75ae",
        "content": "oiuhi",
        "generator": {
          "name": "distbin-html",
          "type": "Application",
          "url": "https://distbin.com"
        },
        "type": "Note"
      },
      "bcc": [],
      "id": "https://distbin.com/activities/22f2fa77-2f5a-4879-a72a-ca5a96940834",
      "published": "2019-12-13T12:44:29.854Z",
      "http://www.w3.org/2002/07/owl#sameAs": [
        "urn:uuid:22f2fa77-2f5a-4879-a72a-ca5a96940834"
      ],
      "inbox": [
        "https://distbin.com/activitypub/inbox"
      ],
      "replies": "https://distbin.com/activities/22f2fa77-2f5a-4879-a72a-ca5a96940834/replies",
      "url": [
        "https://distbin.com/activities/22f2fa77-2f5a-4879-a72a-ca5a96940834"
      ],
      "uuid": "22f2fa77-2f5a-4879-a72a-ca5a96940834"
    },
    {
      "type": "Create",
      "@context": "https://www.w3.org/ns/activitystreams",
      "cc": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "object": {
        "id": "urn:uuid:72bcda6f-e53e-479d-9bd1-01976d66b8ea",
        "content": "",
        "generator": {
          "name": "distbin-html",
          "type": "Application",
          "url": "https://distbin.com"
        },
        "type": "Note"
      },
      "bcc": [],
      "id": "https://distbin.com/activities/3676d435-859c-48c6-9489-c2d11ac5e815",
      "published": "2019-12-13T12:34:15.333Z",
      "http://www.w3.org/2002/07/owl#sameAs": [
        "urn:uuid:3676d435-859c-48c6-9489-c2d11ac5e815"
      ],
      "inbox": [
        "https://distbin.com/activitypub/inbox"
      ],
      "replies": "https://distbin.com/activities/3676d435-859c-48c6-9489-c2d11ac5e815/replies",
      "url": [
        "https://distbin.com/activities/3676d435-859c-48c6-9489-c2d11ac5e815"
      ],
      "uuid": "3676d435-859c-48c6-9489-c2d11ac5e815"
    },
    {
      "type": "Create",
      "@context": "https://www.w3.org/ns/activitystreams",
      "cc": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "object": {
        "id": "urn:uuid:41f15d27-64ef-4a1c-a75c-8f6eb0eca2cd",
        "content": "",
        "generator": {
          "name": "distbin-html",
          "type": "Application",
          "url": "https://distbin.com"
        },
        "type": "Note"
      },
      "bcc": [],
      "id": "https://distbin.com/activities/bb7ad84a-4440-4ac6-a7dc-6eb7cc11082b",
      "published": "2019-12-12T14:29:41.635Z",
      "http://www.w3.org/2002/07/owl#sameAs": [
        "urn:uuid:bb7ad84a-4440-4ac6-a7dc-6eb7cc11082b"
      ],
      "inbox": [
        "https://distbin.com/activitypub/inbox"
      ],
      "replies": "https://distbin.com/activities/bb7ad84a-4440-4ac6-a7dc-6eb7cc11082b/replies",
      "url": [
        "https://distbin.com/activities/bb7ad84a-4440-4ac6-a7dc-6eb7cc11082b"
      ],
      "uuid": "bb7ad84a-4440-4ac6-a7dc-6eb7cc11082b"
    },
    {
      "type": "Create",
      "@context": "https://www.w3.org/ns/activitystreams",
      "cc": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "object": {
        "id": "urn:uuid:322970f0-59e6-4d03-8162-e9c3f069fd07",
        "content": "vffxfxgfg",
        "generator": {
          "name": "distbin-html",
          "type": "Application",
          "url": "https://distbin.com"
        },
        "type": "Note"
      },
      "bcc": [],
      "id": "https://distbin.com/activities/dd3a620d-f38c-4f11-80c4-7753aa45d799",
      "published": "2019-12-12T14:01:28.349Z",
      "http://www.w3.org/2002/07/owl#sameAs": [
        "urn:uuid:dd3a620d-f38c-4f11-80c4-7753aa45d799"
      ],
      "inbox": [
        "https://distbin.com/activitypub/inbox"
      ],
      "replies": "https://distbin.com/activities/dd3a620d-f38c-4f11-80c4-7753aa45d799/replies",
      "url": [
        "https://distbin.com/activities/dd3a620d-f38c-4f11-80c4-7753aa45d799"
      ],
      "uuid": "dd3a620d-f38c-4f11-80c4-7753aa45d799"
    },
    {
      "type": "Create",
      "@context": "https://www.w3.org/ns/activitystreams",
      "cc": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "object": {
        "id": "urn:uuid:b7583319-2d4c-48ab-a9f5-a125c801ec1a",
        "content": "",
        "generator": {
          "name": "distbin-html",
          "type": "Application",
          "url": "https://distbin.com"
        },
        "type": "Note"
      },
      "bcc": [],
      "id": "https://distbin.com/activities/cc826a17-5442-456d-9d48-874883e41278",
      "published": "2019-12-12T04:02:10.709Z",
      "http://www.w3.org/2002/07/owl#sameAs": [
        "urn:uuid:cc826a17-5442-456d-9d48-874883e41278"
      ],
      "inbox": [
        "https://distbin.com/activitypub/inbox"
      ],
      "replies": "https://distbin.com/activities/cc826a17-5442-456d-9d48-874883e41278/replies",
      "url": [
        "https://distbin.com/activities/cc826a17-5442-456d-9d48-874883e41278"
      ],
      "uuid": "cc826a17-5442-456d-9d48-874883e41278"
    },
    {
      "type": "Create",
      "@context": "https://www.w3.org/ns/activitystreams",
      "cc": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "object": {
        "id": "urn:uuid:7a9ad02b-9782-4e2f-ae7f-202c8376675a",
        "content": "",
        "generator": {
          "name": "distbin-html",
          "type": "Application",
          "url": "https://distbin.com"
        },
        "type": "Note"
      },
      "bcc": [],
      "id": "https://distbin.com/activities/54301626-c880-4d72-b018-eb3677cd3802",
      "published": "2019-12-12T03:45:35.062Z",
      "http://www.w3.org/2002/07/owl#sameAs": [
        "urn:uuid:54301626-c880-4d72-b018-eb3677cd3802"
      ],
      "inbox": [
        "https://distbin.com/activitypub/inbox"
      ],
      "replies": "https://distbin.com/activities/54301626-c880-4d72-b018-eb3677cd3802/replies",
      "url": [
        "https://distbin.com/activities/54301626-c880-4d72-b018-eb3677cd3802"
      ],
      "uuid": "54301626-c880-4d72-b018-eb3677cd3802"
    }
  ],
  "partOf": "/activitypub/public",
  "startIndex": 0,
  "type": "OrderedCollectionPage"
}
#!/usr/bin/env bash
# License: 0BSD - see https://opensource.org/licenses/0BSD
# This script is supposed to work together with curl and 
# toot (https://github.com/ihabunek/toot)
#
# Usage: curl -s <Feed-URL> | tootrss.sh

# Config starts here

# Location of toot
TOOT=/usr/local/bin/toot
# DB with already tooted URLs
DB="/var/cache/toot.db"
# set DRYRUN=1 for dry run (nothing will be tooted), any other for the real thing
DRYRUN=1
#maximum number of toots per run
MAXTOOT=1

#Config end

xmlgetnext () {
   local IFS='>'
   read -d '<' TAG VALUE
}


T=`mktemp`

cat $1 | while xmlgetnext ; do
   case $TAG in
      'item')
         title=''
         link=''
         pubDate=''
         description=''
         hashtag=''
         ;;
      'title')
         title="$VALUE"
         ;;
      'link')
         link="$VALUE"
         ;;
      'category')
         hashtag="$VALUE"
         ;;
      'description')
         # convert '&lt;' and '&gt;' to '<' and '>'
         description=$( echo "$VALUE" | sed -e 's/&lt;/</g' -e 's/&gt;/>/g' )
         ;;
      '/item')
        Item="$title - $description - $link"
        echo -e "${Item}\n $(cat $T)" >$T
         ;;
      esac

done

TOOTNR=0

while read Item; do
  url=$(echo $Item |grep -o "https://.*")

  if ! grep -q $url $DB; then

    if [ ! -z "$Item" ]; then

      if [ $DRYRUN -eq 1 ]; then
        echo "Would toot: $Item"
      else
        echo $Item | $TOOT post --quiet
        echo $url >> $DB
     fi

     let "TOOTNR++"
     if [ $TOOTNR -ge $MAXTOOT ]; then
       exit
     fi

    fi

  fi
done < $T

rm $T

#!/usr/bin/env bash

License: 0BSD - see https://opensource.org/licenses/0BSD

This script is supposed to work together with curl and

toot (https://github.com/ihabunek/toot)

#

Usage: curl -s | tootrss.sh

Config starts here

Location of toot

TOOT=/usr/local/bin/toot

DB with already tooted URLs

DB="/var/cache/toot.db"

set DRYRUN=1 for dry run (nothing will be tooted), any other for the real thing

DRYRUN=1

#maximum number of toots per run MAXTOOT=1

#Config end

xmlgetnext () { local IFS='>' read -d '<' TAG VALUE }

T=mktemp

cat $1 | while xmlgetnext ; do case $TAG in 'item') title='' link='' pubDate='' description='' hashtag='' ;; 'title') title="$VALUE" ;; 'link') link="$VALUE" ;; 'category') hashtag="$VALUE" ;; 'description')

     # convert '&lt;' and '&gt;' to '<' and '>'
     description=$( echo "$VALUE" | sed -e 's/&lt;/</g' -e 's/&gt;/>/g' )
     ;;
  '/item')
    Item="$title - $description - $link"
    echo -e "${Item}\n $(cat $T)" >$T
     ;;
  esac

done

TOOTNR=0

while read Item; do url=$(echo $Item |grep -o "https://.*")

if ! grep -q $url $DB; then

if [ ! -z "$Item" ]; then

  if [ $DRYRUN -eq 1 ]; then
    echo "Would toot: $Item"
  else
    echo $Item | $TOOT post --quiet
    echo $url >> $DB
 fi

 let "TOOTNR++"
 if [ $TOOTNR -ge $MAXTOOT ]; then
   exit
 fi

fi

fi done < $T

rm $T

oikjio

Home
About
Wiki
Contact

Not logged in

Want to support development? Maybe get a nice server to do your own development on? Check out BuyVM or Vultr using our affiliate links! New users get $50 of free credit with Vultr, and BuyVM offers affordable servers with affordable, true DDoS filtering. You can also support us on Patreon. Expiration Description Paste

New Paste 1

oiuhi

https://distbin.com/activities/3676d435-859c-48c6-9489-c2d11ac5e815

https://distbin.com/activities/bb7ad84a-4440-4ac6-a7dc-6eb7cc11082b

vffxfxgfg

https://distbin.com/activities/cc826a17-5442-456d-9d48-874883e41278

https://distbin.com/activities/54301626-c880-4d72-b018-eb3677cd3802

Next Page