{"id":40699248,"url":"https://github.com/nerab/pinboard-fixup-tweets","last_synced_at":"2026-01-21T11:42:05.075Z","repository":{"id":23631343,"uuid":"99480361","full_name":"nerab/pinboard-fixup-tweets","owner":"nerab","description":"Fixup titles of Pinboard-bookmarked tweets","archived":false,"fork":false,"pushed_at":"2023-03-16T11:16:02.000Z","size":122,"stargazers_count":4,"open_issues_count":9,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-04-14T16:44:45.323Z","etag":null,"topics":["bookmarks","pinboard","twitter"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nerab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-06T10:50:31.000Z","updated_at":"2022-12-14T22:43:50.000Z","dependencies_parsed_at":"2023-02-14T13:15:15.561Z","dependency_job_id":null,"html_url":"https://github.com/nerab/pinboard-fixup-tweets","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/nerab/pinboard-fixup-tweets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerab%2Fpinboard-fixup-tweets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerab%2Fpinboard-fixup-tweets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerab%2Fpinboard-fixup-tweets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerab%2Fpinboard-fixup-tweets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerab","download_url":"https://codeload.github.com/nerab/pinboard-fixup-tweets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerab%2Fpinboard-fixup-tweets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28632774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bookmarks","pinboard","twitter"],"created_at":"2026-01-21T11:42:05.007Z","updated_at":"2026-01-21T11:42:05.066Z","avatar_url":"https://github.com/nerab.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fixup titles of Pinboard-bookmarked tweets\n\n[![Build Status](https://travis-ci.org/nerab/pinboard-fixup-tweets.svg?branch=master)](https://travis-ci.org/nerab/pinboard-fixup-tweets)\n\nPinboard archives my favorited tweets, but I don't like the titles. This project fixes them:\n\n* Fetch all pinboard bookmarks that are tweets\n* Use the Twitter API to fetch the whole tweet\n* Update the pinboard bookmark with the tweet as title\n\n# Usage\n\n1. Get the API token from the Pinboard [password](https://pinboard.in/settings/password) page and set it as environment variable.\n\n        $ export PINBOARD_API_TOKEN=********\n\n1. Likewise, get `TWITTER_CONSUMER_KEY` and `TWITTER_CONSUMER_SECRET` [from Twitter](https://apps.twitter.com/app/new) and export them as variables. This is required in order to deal with the query limit Twitter imposes.\n\n1. Run the tool:\n\n        $ pinboard-fixup-tweets\n\n# Docker Image\n\nAn automated build on the [docker hub](https://hub.docker.com/r/nerab/pinboard-fixup-tweets/) creates a new image tagged with `latest` upon a git push.\n\nOptionally, you can build the image manually:\n\n    # Build and tag as the latest version of the image\n    $ docker build --tag nerab/pinboard-fixup-tweets:latest .\n\n# Deployment\n\n## Generate the run helper\n\n* Install `lpass`\n* Generate the deployment script `scripts/generate-run-script \u003e scripts/run.sh`\n\nIf desired, you may run the container manually:\n\n    $ docker run \\\n        --env PINBOARD_API_TOKEN=******** \\\n        --env TWITTER_CONSUMER_KEY=******** \\\n        --env TWITTER_CONSUMER_SECRET=******** \\\n        --name pinboard-fixup-tweets \\\n        nerab/pinboard-fixup-tweets\n\nChange the environment variables to suit your preferences. The following environment variables are evaluated (in ascending order of preference):\n\n## Start the container\n\nRun the previously generated `scripts/run.sh`. This will generate a new container from the image and execute the `pinboard-fixup-tweets` tool once. The container will then stop.\n\nIn order to run the tool regularly, copy the cron script `scripts/` to `/etc/cron.hourly/`, e.g. with\n\n```\ndocker-machine scp scripts/cronjob nr-docker:/etc/cron.hourly/pinboard-fixup-tweets\n```\n\nThe environment variables were passed when running the container for the first time, so there is no need to pass them to `docker start` again.\n\n## Logs\n\nA container will not print its console messages to where it was started from. If you want to follow the execution, use `docker logs`:\n\n    $ docker logs -f pinboard-fixup-tweets\n\n## Update the container\n\n```\ndocker pull nerab/pinboard-fixup-tweets\n\n# This will fail in most cases because the container is only running once an hour\ndocker stop nerab/pinboard-fixup-tweets\n\ndocker rm nerab/pinboard-fixup-tweets\n./scripts/run.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerab%2Fpinboard-fixup-tweets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerab%2Fpinboard-fixup-tweets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerab%2Fpinboard-fixup-tweets/lists"}