ezup.dev

Source Code of Dash Eclipse's Personal Site (ezup.dev)
git clone git://ezup.dev/ezup.dev.git
Log | Files | Refs | README | LICENSE

commit 7b579909550190fac742f102e124816e3f3e9713
parent c81be9793080337108bb61b5a9a08bb59e018f47
Author: Dash Eclipse <dash@ezup.dev>
Date:   Fri,  3 Jul 2020 20:52:43 +0000

Update

Diffstat:
M.web/blog/pgp.html | 24++++++++++++------------
M.web/blog/rss.xml | 4++--
M.web/index.html | 22++++++++++++----------
M.web/styles/site.css | 2+-
M.web/styles/topnav.css | 2+-
Mindex.html | 22++++++++++++----------
Mposts/rss.org | 2+-
Mstyles/site.css | 2+-
Mstyles/topnav.css | 2+-
9 files changed, 43 insertions(+), 39 deletions(-)

diff --git a/.web/blog/pgp.html b/.web/blog/pgp.html @@ -37,8 +37,8 @@ In this article I'm gonna explain how do I generate and use OpenPGP keys. </p> -<section id="outline-container-orgead6916" class="outline-2"> -<h2 id="orgead6916"><span class="section-number-2">1</span> Install GnuPG</h2> +<section id="outline-container-org264537d" class="outline-2"> +<h2 id="org264537d"><span class="section-number-2">1</span> Install GnuPG</h2> <div class="outline-text-2" id="text-1"> <p> On macOS you can use brew to install GnuPG <code>brew install gnupg</code>, you will also need <code>pinentry-mac</code> package if you are going to use it with GUI programs such like Thunderbird with Eng @@ -46,8 +46,8 @@ On macOS you can use brew to install GnuPG <code>brew install gnupg</code>, you </div> </section> -<section id="outline-container-org492070e" class="outline-2"> -<h2 id="org492070e"><span class="section-number-2">2</span> OpenPGP key generation</h2> +<section id="outline-container-orgbb93671" class="outline-2"> +<h2 id="orgbb93671"><span class="section-number-2">2</span> OpenPGP key generation</h2> <div class="outline-text-2" id="text-2"> <p> Beside <code>gpg --full-generate-key</code>, you can also create a key with gpg in batch mode<sup><a id="fnr.1" class="footref" href="#fn.1">1</a></sup>. @@ -84,8 +84,8 @@ gpg --batch --generate-key first-last.txt </div> </section> -<section id="outline-container-orgc8405b6" class="outline-2"> -<h2 id="orgc8405b6"><span class="section-number-2">3</span> Use subkeys</h2> +<section id="outline-container-org0ad0f1c" class="outline-2"> +<h2 id="org0ad0f1c"><span class="section-number-2">3</span> Use subkeys</h2> <div class="outline-text-2" id="text-3"> <p> I use encryption and signing subkeys instead of just use one key for everything, because it's safer when you keep your master key elsewhere and use different keys for different purposes. Debian also recommend to use subkeys.<sup><a id="fnr.2" class="footref" href="#fn.2">2</a></sup> @@ -104,8 +104,8 @@ gpg --edit-key &lt;key-id&gt; passwd </pre> </div> </div> -<div id="outline-container-orgde6e78a" class="outline-3"> -<h3 id="orgde6e78a"><span class="section-number-3">3.1</span> Thunderbird and Enigmail</h3> +<div id="outline-container-org1f63b1b" class="outline-3"> +<h3 id="org1f63b1b"><span class="section-number-3">3.1</span> Thunderbird and Enigmail</h3> <div class="outline-text-3" id="text-3-1"> <p> I use Thunderbird with Enigmail to send and receive PGP encrypted emails, you can follow <a href="https://ssd.eff.org/en/module/how-use-pgp-mac-os-x">the guide by EFF SSD</a> to set it up. Note you need to install <code>pinentry-mac</code> the package to use GPG with such GUI programs. @@ -117,8 +117,8 @@ I use Thunderbird with Enigmail to send and receive PGP encrypted emails, you ca </div> </div> </div> -<div id="outline-container-org1392bdc" class="outline-3"> -<h3 id="org1392bdc"><span class="section-number-3">3.2</span> Git</h3> +<div id="outline-container-org8bd2824" class="outline-3"> +<h3 id="org8bd2824"><span class="section-number-3">3.2</span> Git</h3> <div class="outline-text-3" id="text-3-2"> <div class="org-src-container"> <pre class="src src-sh">git config --global gpg.program $(<span class="org-builtin">which</span> gpg) @@ -133,8 +133,8 @@ In case you don't want to sign commits for specific repo, just run <code>git con </p> </div> </div> -<div id="outline-container-org6305008" class="outline-3"> -<h3 id="org6305008"><span class="section-number-3">3.3</span> pass (the standard unix password manager)</h3> +<div id="outline-container-org0f914b8" class="outline-3"> +<h3 id="org0f914b8"><span class="section-number-3">3.3</span> pass (the standard unix password manager)</h3> <div class="outline-text-3" id="text-3-3"> <p> I use <a href="https://www.passwordstore.org/">pass</a> to manage my passwords, with a different key. pass store passwords in a git repo, you can also store the <code>$GNUPGHOME</code> in a git repo or just in the same repo. diff --git a/.web/blog/rss.xml b/.web/blog/rss.xml @@ -14,8 +14,8 @@ <link>https://ezup.dev/blog/</link> <description><![CDATA[]]></description> <language>en</language> - <pubDate>Fri, 03 Jul 2020 19:28:44 +0000</pubDate> - <lastBuildDate>Fri, 03 Jul 2020 19:28:44 +0000</lastBuildDate> + <pubDate>Fri, 03 Jul 2020 20:52:40 +0000</pubDate> + <lastBuildDate>Fri, 03 Jul 2020 20:52:40 +0000</lastBuildDate> <generator>Emacs 26.3 Org-mode 9.3.7</generator> <webMaster>dash@ezup.dev (Dash Eclipse)</webMaster> <image> diff --git a/.web/index.html b/.web/index.html @@ -22,14 +22,17 @@ pre {margin-left:2em;margin-top:2em;} pre a:link {color:black;background-color:white;} pre a:visited {color:black;background-color:white;} pre a:hover {color:black;background-color:white} -@media screen and (max-width: 600px) { - pre { - margin-left: 0.5em; - margin-top: 1em; - white-space: pre-wrap; - word-wrap: break-word; - text-align: justify; - } +@media only screen and (min-width: 360px) { + pre {margin:0.9em 0 0 0.9em;font-size: 12px;} +} +@media only screen and (min-width: 480px) { + pre {margin:1.3em 0 0 1.3em;font-size: 15.9px;} +} +@media only screen and (min-width: 610px) { + pre { margin:1.5em 0 0 1.5em;font-size:16px;} +} +@media only screen and (min-width: 800px) { + pre { margin:1.5em 0 0 1.7em;font-size:17px;} } </style> </head> @@ -121,8 +124,7 @@ work. If not, see &lt;http://creativecommons.org/publicdomain/zero/1.0/&gt;. <li><a href="git/" target="_blank"><u>Git</u></a></li> <li class="right"><a href="#about">About</a></li> </ul> -<pre><b> -Dash Eclipse</b>'s Personal Site (ezup.dev) +<pre><b>Dash Eclipse</b>'s Personal Site (ezup.dev) --------------------------------------- <b>$ neofetch</b> -L diff --git a/.web/styles/site.css b/.web/styles/site.css @@ -10,7 +10,7 @@ body { background: #fff; color: #666; margin: 0; - margin-bottom: 7em; + margin-bottom: 6em; } @media (max-width: 799px) { body { diff --git a/.web/styles/topnav.css b/.web/styles/topnav.css @@ -42,7 +42,7 @@ ul.topnav li a.active { ul.topnav li.right { float: right; } -@media screen and (max-width: 610px) { +@media screen and (max-width: 609px) { /* ul.topnav li.right, */ /* ul.topnav li {float: none;} */ ul.topnav {line-height: 1.2em;} diff --git a/index.html b/index.html @@ -22,14 +22,17 @@ pre {margin-left:2em;margin-top:2em;} pre a:link {color:black;background-color:white;} pre a:visited {color:black;background-color:white;} pre a:hover {color:black;background-color:white} -@media screen and (max-width: 600px) { - pre { - margin-left: 0.5em; - margin-top: 1em; - white-space: pre-wrap; - word-wrap: break-word; - text-align: justify; - } +@media only screen and (min-width: 360px) { + pre {margin:0.9em 0 0 0.9em;font-size: 12px;} +} +@media only screen and (min-width: 480px) { + pre {margin:1.3em 0 0 1.3em;font-size: 15.9px;} +} +@media only screen and (min-width: 610px) { + pre { margin:1.5em 0 0 1.5em;font-size:16px;} +} +@media only screen and (min-width: 800px) { + pre { margin:1.5em 0 0 1.7em;font-size:17px;} } </style> </head> @@ -121,8 +124,7 @@ work. If not, see &lt;http://creativecommons.org/publicdomain/zero/1.0/&gt;. <li><a href="git/" target="_blank"><u>Git</u></a></li> <li class="right"><a href="#about">About</a></li> </ul> -<pre><b> -Dash Eclipse</b>'s Personal Site (ezup.dev) +<pre><b>Dash Eclipse</b>'s Personal Site (ezup.dev) --------------------------------------- <b>$ neofetch</b> -L diff --git a/posts/rss.org b/posts/rss.org @@ -4,5 +4,5 @@ :PROPERTIES: :RSS_PERMALINK: pgp.html :PUBDATE: 2020-06-30 -:ID: EEC9535E-336C-4B21-BA7F-4AF1A05EA31B +:ID: E87A5E86-A629-4D15-BBFC-88602BBA201B :END: diff --git a/styles/site.css b/styles/site.css @@ -10,7 +10,7 @@ body { background: #fff; color: #666; margin: 0; - margin-bottom: 7em; + margin-bottom: 6em; } @media (max-width: 799px) { body { diff --git a/styles/topnav.css b/styles/topnav.css @@ -42,7 +42,7 @@ ul.topnav li a.active { ul.topnav li.right { float: right; } -@media screen and (max-width: 610px) { +@media screen and (max-width: 609px) { /* ul.topnav li.right, */ /* ul.topnav li {float: none;} */ ul.topnav {line-height: 1.2em;}