0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Pocketのブックマークをdailyで保存する

Last updated at Posted at 2023-05-14

あなたは今まで何回WWWブラウザのブックマークフォルダの中身を移行しましたか。ちゃんと初めてのInternet Explorerのブックマークを今も保持できていますか。

コード

使い方

  1. SSH鍵ペアを作成
  2. Gitサーバ(i.e. GitHub)のDeploy keyに公開鍵登録
  3. SSH秘密鍵を.git/id_ed25519に保存
  4. crontabに設定
  5. README.mdも読む
  6. 初回にorphan branch data も作って適当にcommit生やした方がいいかもしれない

コードを公開する技術

僕のPocketブックマークをみんなに晒す気はいまんとこないので。

git remote add github-public git@github.com:cookie-s/pocket-export
git checkout --orphan data-dummy
git commit -m 'hogefuga' --allow-empty
git push github-public data-dummy:data

GitHubの設定に行って、Branch Protectionルールをかけまくる。

  • Branch name pattern: data
  • Require a pull request before merging: ✅
  • Require linear history: ✅
  • Lock branch: ✅
  • Do not allow bypassing the above settings: ✅

最後に

もし仮に僕のPocketブックマークが見えてしまったら、こっそり教えてください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?