Merge pull request 'main' (#1) from solene/openbsd-webzine:main into main

Reviewed-on: tom/openbsd-webzine#1
This commit is contained in:
tom 2021-10-02 09:01:07 +00:00
commit 0e40b9aa74
15 changed files with 57 additions and 20 deletions

View File

@ -1,6 +1,5 @@
Tips
----
introduction to timeout
webzine has a dark mode, how to enable it in firefox / chrome
how to use openrsync from base system
cvs -z9 option
@ -9,6 +8,12 @@ $ chmod 700 $(userinfo $(whoami) | grep dir | awk '{print $2}')
shortcuts in shell (emacs mode)
difference between zzz and ZZZ
7.0 stuff to put
----------------
resolvd + dhcpleased is now default
upgrade guide to link
versions of popular packages
Links
-----
OpenBSD on the Huawei MateBook X (2020) https://jcs.org/2021/08/20/matebook
@ -17,6 +22,7 @@ My Fanless OpenBSD Desktop https://jcs.org/2021/07/19/desktop
Bluetooth audio on OpenBSD https://jcs.org/2020/11/18/openbsd_btaudio
Installing OpenBSD on Linode https://text.causal.agency/027-openbsd-linode.txt
Why OpenBSD Rocks https://why-openbsd.rocks/fact
bcallah@ interview https://www.bsdnow.tv/422
Communities
-----------
@ -25,3 +31,16 @@ List various communitis around OpenBSD :
* [Mailing lists (of course)](https://www.openbsd.org/mail.html)
* IRC: #OpenBSD on irc.libera.chat
* XMPP : OpenBSD on openbsd@chat.si3t.ch ?
Artworks
--------
- https://bsd.network/@prahou/107026745346972847
- https://bsd.network/@prahou/106992809510937579
- https://bsd.network/@prahou/106965372352267989
Readers comments
----------------
- https://bsd.network/@solene/107022527104955737
- https://news.ycombinator.com/item?id=28711519
- https://lobste.rs/s/lyo9jv/openbsd_webzine

View File

@ -1,3 +1,4 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
@ -6,6 +7,11 @@
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="alternate" type="application/rss+xml" href="https://webzine.puffy.cafe/atom.xml">
<meta property="og:title" content="OpenBSD webzine __TITLE__" />
<meta property="og:description" content="Webzine created by volunteers who are passionate about the OpenBSD project development." />
<meta property="og:url" content="https://webzine.puffy.cafe/__FILENAME__" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_EN" />
<title>OpenBSD_WEBZINE_ISSUE #__ISSUE__</title>
<style>

View File

@ -1,6 +1,6 @@
<div id="title"><a href="https://webzine.puffy.cafe">OpenBSD Webzine</a></div>
<div id="banner">
<div>ISSUE #__ISSUE__</div>
<div>__DATE__</div>
<div>ISSUE #__ISSUE__</div>
<div>__DATE__</div>
</div>
<main>

View File

@ -1,6 +1,8 @@
<!-- SECTION -->
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h1>Reader comments</h1>
<p>
<em>Message received from XXX</em>
</p>
<div>
<p>
<em>Message received from XXX</em>
</p>
</div>

View File

@ -2,5 +2,5 @@
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h1>Going further</h1>
<ul>
<li><a href=""></a></li>
<li><a class="permalink" href=""></a></li>
</ul>

View File

@ -2,5 +2,5 @@
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h1>On social media</h1>
<ul>
<li><a href=""></a></li>
<li><a class="permalink" href=""></a></li>
</ul>

View File

@ -1,7 +1,9 @@
<!-- SECTION>
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h1>Quote</h1>
<div>
<blockquote>
glub.
-- Puffy
</blockquote-->
</blockquote>
</div-->

View File

@ -1,5 +1,7 @@
<!-- SECTION -->
<h1>Headlines</h1>
<ul>
<li>OpenBSD 7.0 release very soon</li>
<li>OpenBSD 7.0 released!</li>
<li>No more packages updates for 6.9, syspatch will still be published</li>
<li>No more syspatches for 6.8, it is now end of life and shouldn't be used anymore</li>
</ul>

View File

@ -2,5 +2,5 @@
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h1>Recent -current changes</h1>
<ul>
<li></li>
<li>Packages commits will flow after three weeks of locked ports tree. Some breakages could happen.g</li>
</ul>

View File

@ -1,6 +1,6 @@
<!-- SECTION -->
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h1>6.9-stable changes</h1>
<h1>7.0-stable changes</h1>
<ul>
<li></li>
<li>No syspatch yet.</li>
</ul>

View File

@ -1,5 +1,7 @@
<!-- SECTION -->
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h1>Shell tips</h1>
<p>
<p>OpenBSD 7.0 comes with a new utility named <em>timeout</em> to run a command and stop it after an user defined time. The <a class="permalink" href="https://man.openbsd.org/timeout">man page</a> is available for full information.
While it was possible to achieve this in shell using a child process sleeping for some time and stopping the main process if it wasn't finished yet, <em>timeout</em> makes this job very easy.
One simple real world use case would be a lazy site-to-site synchronization using a rsync job run every night when the Internet uplink can be fully used and stop it right before people will need the network. Such a scenario can be done with <code>timeout 8h rsync -a /data/ remote:/data/</code> and started from a cron job at 00h00. In this case rsync would run at midnight and <em>timeout</em> would stop it at 8h00 if the job is not finished.
</p>

View File

@ -2,5 +2,5 @@
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h1>Reader comments</h1>
<p>Nice!
<em>Said by jcs@openbsd</em>
<em>- jcs@openbsd</em>
</p>

View File

@ -2,5 +2,5 @@
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h1>On social media</h1>
<ul>
<li><a href=""></a></li>
<li><a class="permalink" href="https://news.ycombinator.com/item?id=28711519">We did hit first page of hackernews at launch</a></li>
</ul>

View File

@ -1,7 +1,7 @@
<!-- SECTION>
<!-- SECTION-->
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h1>Quote</h1>
<blockquote>
glub.
-- Puffy
</blockquote-->
Boredom is a powerful driving force.
-- solene@openbsd</em>
</blockquote>

View File

@ -46,8 +46,12 @@ then
# replace with issue number
issue="${1#issue-}"
sed -i "s/__ISSUE__/${issue}/g" $DESTFILENAME
sed -i "s/__TITLE__/issue #${issue}/g" $DESTFILENAME
sed -i "s/__FILENAME__/issue-${issue}.html/" $DESTFILENAME
else
sed -i "s/OpenBSD_WEBZINE_ISSUE #__ISSUE__/The OpenBSD Webzine/g" $DESTFILENAME
sed -i "s/__TITLE__/homepage/g" $DESTFILENAME
sed -i "s/__FILENAME__/index.html/" $DESTFILENAME
fi
# replace date