aboutsummaryrefslogtreecommitdiff
path: root/public/index.xml
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-10-31 10:40:06 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-10-31 10:40:06 +0100
commit6ee7245390cdf4e19fef82c2423ba325adea4114 (patch)
tree7e59c6084937997a62ccea261dac100dc97100a3 /public/index.xml
parentae24d9a8869c497537839f330384cbadb2cf687c (diff)
downloadmitjafelicijan.com-6ee7245390cdf4e19fef82c2423ba325adea4114.tar.gz
Updated theme
Diffstat (limited to 'public/index.xml')
-rwxr-xr-xpublic/index.xml12
1 files changed, 5 insertions, 7 deletions
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&lt;/a&gt;.&lt;/p&gt;
2629refreshing only once a minute, this can be done through cronjob.&lt;/p&gt; 2629refreshing only once a minute, this can be done through cronjob.&lt;/p&gt;
2630&lt;p&gt;Before we add this job to cron we need to make &lt;code&gt;clock.py&lt;/code&gt; executable with &lt;code&gt;chmod &#43;x clock.py&lt;/code&gt;.&lt;/p&gt; 2630&lt;p&gt;Before we add this job to cron we need to make &lt;code&gt;clock.py&lt;/code&gt; executable with &lt;code&gt;chmod &#43;x clock.py&lt;/code&gt;.&lt;/p&gt;
2631&lt;p&gt;Then we add a cronjob with &lt;code&gt;crontab -e&lt;/code&gt;.&lt;/p&gt; 2631&lt;p&gt;Then we add a cronjob with &lt;code&gt;crontab -e&lt;/code&gt;.&lt;/p&gt;
2632&lt;pre&gt;&lt;code&gt;* * * * * /home/pi/clock.py 2632&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;* * * * * /home/pi/clock.py
2633&lt;/code&gt;&lt;/pre&gt; 2633&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;So, we end up with a result like this.&lt;/p&gt;
2634&lt;p&gt;So, we end up with a result like this.&lt;/p&gt;
2635&lt;figure&gt; 2634&lt;figure&gt;
2636&lt;img src=&#34;/posts/world-clock/world-clock.jpg&#34; alt=&#34;World Clock&#34; /&gt; 2635&lt;img src=&#34;/posts/world-clock/world-clock.jpg&#34; alt=&#34;World Clock&#34; /&gt;
2637&lt;/figure&gt; 2636&lt;/figure&gt;
@@ -2683,11 +2682,11 @@ all the functionalities I need, and it&#39;s a single binary. Written in Go.&lt;
2683&lt;figure&gt; 2682&lt;figure&gt;
2684&lt;img src=&#34;/posts/goaccess/goaccess-dash-term.png&#34; alt=&#34;GoAccess Terminal&#34; /&gt; 2683&lt;img src=&#34;/posts/goaccess/goaccess-dash-term.png&#34; alt=&#34;GoAccess Terminal&#34; /&gt;
2685&lt;/figure&gt; 2684&lt;/figure&gt;
2686&lt;center&gt;&lt;i&gt;Running in a terminal&lt;/i&gt;&lt;/center&gt; 2685&lt;p&gt;&lt;em&gt;Running in a terminal&lt;/em&gt;&lt;/p&gt;
2687&lt;figure&gt; 2686&lt;figure&gt;
2688&lt;img src=&#34;/posts/goaccess/goaccess-dash-html.png&#34; alt=&#34;GoAccess HTML&#34; /&gt; 2687&lt;img src=&#34;/posts/goaccess/goaccess-dash-html.png&#34; alt=&#34;GoAccess HTML&#34; /&gt;
2689&lt;/figure&gt; 2688&lt;/figure&gt;
2690&lt;center&gt;&lt;i&gt;Running in a browser&lt;/i&gt;&lt;/center&gt; 2689&lt;p&gt;&lt;em&gt;Running in a browser&lt;/em&gt;&lt;/p&gt;
2691&lt;p&gt;I, however, need this to run in a browser. So, the second option is the way to 2690&lt;p&gt;I, however, need this to run in a browser. So, the second option is the way to
2692go. The Idea is to periodically run cronjob and export this report into a folder 2691go. The Idea is to periodically run cronjob and export this report into a folder
2693that gets then server by Nginx behind a Basic authentication.&lt;/p&gt; 2692that gets then server by Nginx behind a Basic authentication.&lt;/p&gt;
@@ -3129,8 +3128,7 @@ that will make this whole experience a little more bearable.&lt;/p&gt;
3129&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#008000&#34;&gt;# installing ampy&lt;/span&gt; 3128&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#008000&#34;&gt;# installing ampy&lt;/span&gt;
3130&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo pip3 install adafruit-ampy 3129&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo pip3 install adafruit-ampy
3131&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Listed below are some common commands I used.&lt;/p&gt; 3130&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Listed below are some common commands I used.&lt;/p&gt;
3132&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; 3131&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;&#34;&gt;&lt;code&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#008000&#34;&gt;# uploads file to flash&lt;/span&gt;
3133&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#008000&#34;&gt;# uploads file to flash&lt;/span&gt;
3134&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ampy --delay 2 --port /dev/ttyUSB0 put boot.py 3132&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ampy --delay 2 --port /dev/ttyUSB0 put boot.py
3135&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; 3133&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
3136&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#008000&#34;&gt;# lists file on flash&lt;/span&gt; 3134&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#008000&#34;&gt;# lists file on flash&lt;/span&gt;