ブックマーク / eklitzke.org (2)

  • Using gpg-agent Effectively

    I've used GnuPG (or "GPG") for years now, but until recently I had never bothered setting up gpg-agent. I've just never needed it. The agent mediates access to private keys. These keys are only required for decryption and signing; encryption and signature verification only require public keys. I've mostly used GPG in the past for encrypting backups before uploading them to cloud storage, and this

    tmatsuu
    tmatsuu 2018/04/01
    systemd環境であれば~/.config/systemd/user/にunitファイルを入れることでsystemdによるユーザごとの自動プロセス制御が可能。ほう。~/.bashrcとかにssh-agentやgpg-agent自動起動を設定する時代ではなかったんや。便利
  • The Cult of DD

    You'll often see instructions for creating and using disk images on Unix systems making use of the dd command. This is a strange program of [obscure provenance](https://en.wikipedia.org/wiki/Dd_(Unix)) that somehow, still manages to survive in the 21st century. Actually, using dd is almost never necessary, and due to its highly nonstandard syntax is usually just an easy way to mess things up. For

    tmatsuu
    tmatsuu 2017/04/02
    「head -c 100MB /dev/zero >image.iso」目から鱗。ddと比べてどっちのほうが早いだろう。
  • 1