From 6ee7245390cdf4e19fef82c2423ba325adea4114 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Tue, 31 Oct 2023 10:40:06 +0100 Subject: Updated theme --- public/index.xml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'public/index.xml') diff --git a/public/index.xml b/public/index.xml index 93fd748..9bf469f 100755 --- a/public/index.xml +++ b/public/index.xml @@ -2629,9 +2629,8 @@ Zero</a>.</p> refreshing only once a minute, this can be done through cronjob.</p> <p>Before we add this job to cron we need to make <code>clock.py</code> executable with <code>chmod +x clock.py</code>.</p> <p>Then we add a cronjob with <code>crontab -e</code>.</p> -<pre><code>* * * * * /home/pi/clock.py -</code></pre> -<p>So, we end up with a result like this.</p> +<pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span>* * * * * /home/pi/clock.py +</span></span></code></pre><p>So, we end up with a result like this.</p> <figure> <img src="/posts/world-clock/world-clock.jpg" alt="World Clock" /> </figure> @@ -2683,11 +2682,11 @@ all the functionalities I need, and it's a single binary. Written in Go.< <figure> <img src="/posts/goaccess/goaccess-dash-term.png" alt="GoAccess Terminal" /> </figure> -<center><i>Running in a terminal</i></center> +<p><em>Running in a terminal</em></p> <figure> <img src="/posts/goaccess/goaccess-dash-html.png" alt="GoAccess HTML" /> </figure> -<center><i>Running in a browser</i></center> +<p><em>Running in a browser</em></p> <p>I, however, need this to run in a browser. So, the second option is the way to go. The Idea is to periodically run cronjob and export this report into a folder that gets then server by Nginx behind a Basic authentication.</p> @@ -3129,8 +3128,7 @@ that will make this whole experience a little more bearable.</p> <pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#008000"># installing ampy</span> </span></span><span style="display:flex;"><span>sudo pip3 install adafruit-ampy </span></span></code></pre><p>Listed below are some common commands I used.</p> -<pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span> -</span></span><span style="display:flex;"><span><span style="color:#008000"># uploads file to flash</span> +<pre tabindex="0" style="background-color:#fff;"><code><span style="display:flex;"><span><span style="color:#008000"># uploads file to flash</span> </span></span><span style="display:flex;"><span>ampy --delay 2 --port /dev/ttyUSB0 put boot.py </span></span><span style="display:flex;"><span> </span></span><span style="display:flex;"><span><span style="color:#008000"># lists file on flash</span> -- cgit v1.2.3