Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

print-my-profile-pic

Star this repo to have your GitHub profile picture framed, printed out on my receipt printer, and stuck to my wall.

That's it!

[!TIP] If you give a one-time sponsorship of any amount beforehand, your profile picture will be printed in a special frame.

Holding up a photo of me printed on a receipt Pinning a receipt to a board called the Hall of Frame

How's it work?

GitHub allows you to create webhooks for specific events on your repos, I've set one up for starring this project.

When that happens, a payload is POSTed to a Cloudflare tunnel domain, which leads to a PHP script running on a Raspberry Pi that's sitting on my desk.

From the inbound request, you can gleen info about the person who starred the repo, like their display name and avatar URL. The script takes their profile picture, renders it behind a cut-out of a photo frame, and then adds some other info I thought should be included in each receipt.

The RPi is connected to an Epson TM-T88IV thermal receipt printer via USB, and the PHP script uses my go-to escpos-php library to format the receipt data and send it off to the printer.

But why?

It sounded fun when my friend Sam mentioned it. That's pretty much it!

What now?

I'll periodically update this README with a picture of the pinboard I've dubbed the "Hall of Frame" as pictures get added to it.

Want to add a new frame? Send in a PR!

关于 About

Say cheese! Star this repo and your profile picture gets printed out on a receipt printer.

语言 Languages

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
8
Total Commits
峰值: 8次/周
Less
More

核心贡献者 Contributors