Was watching movie One Mile: Chapter Two and was curious about the drawing. Wanted a more detailed look so from screenshot Nano Banana reconstructed the following It suggestion re-doing it with Nano Banana Pro so I tried and got I’m really impressed
Had some performance issues with my Mikrotik router. Looking at Tools > Profile, firewall was consuming over 70% CPU After downgrade to version 6 from 7 and config reset it looks stable. Wanted to monitor it and found a pretty nice solution https://github.com/akpw/mktxp-stack A Grafana dashboard https://grafana.com/grafana/dashboards/13679-mikrotik-mktxp-exporter/ exists. A Mikrotik data exporter via API is … Continue reading "Mikrotik monitoring in Grafana"
Show full content
Had some performance issues with my Mikrotik router. Looking at Tools > Profile, firewall was consuming over 70% CPU
After downgrade to version 6 from 7 and config reset it looks stable.
Had some issues with internet speed and to provide more info to my ISP I was looking for some internet speed tracking solution. Found https://github.com/henrywhitaker3/Speedtest-Tracker which uses https://www.speedtest.net/ under the hood. Found a nice alternative https://github.com/gnmyt/myspeed
Show full content
Had some issues with internet speed and to provide more info to my ISP I was looking for some internet speed tracking solution.
Got tired of scanning threw logs for errors in multitail. It would be great to filter them instead me scanning for them. Fortunately multitail can do that. Filtering using regular expressions For filtering MultiTail uses regular expressions. To keep things simple, it uses them the exact same way as ‘grep’ does: ‘-e’ says: a regular … Continue reading "Multitail only show errors"
Show full content
Got tired of scanning threw logs for errors in multitail. It would be great to filter them instead me scanning for them.
For filtering MultiTail uses regular expressions. To keep things simple, it uses them the exact same way as ‘grep’ does: ‘-e’ says: a regular expression follows and ‘-v’ says: invert it. Since version 3.5.0 this has changed somewhat: if you want to match the lines that do NOT have a certain pattern, use -ev.
The first example shows only lines from /var/log/messages which have the string “gnu-pop3d” somewhere in them. The second example only shows lines which do not have the string “ssh” and not have the string “gnu-pop3d” and DO HAVE the string “localhost” in them.
For filtering multiple files use -E use regular expression on following files
[01:48] a good life is a life spent doing the things you want to do, the things that bring you joy when you have the age and the energy to do them. It makes me super sad whenever I meet people who wait until their 60s, and they retire to be free to try and … Continue reading "99% of Men Waste Their Lives — CIA Spy Reveals Why"
Show full content
[01:48] a good life is a life spent doing the things you want to do, the things that bring you joy when you have the age and the energy to do them. It makes me super sad whenever I meet people who wait until their 60s, and they retire to be free to try and travel. That’s when they focus on learning the guitar, and that’s when they focus on art, and their body just can’t keep up with them. Their body can’t travel like it used to travel.
[02:26] it’s all about finding joy in the moment today. My son is 12. He plays chess now. He wants to play video games with me now.
Many times I struggle to find the correct shell command in history for my specific need what I used in the past. So currently I’m adding comment to the end of the command for a specific flow, e.g. Now I can grep for orphan and found the related command
Show full content
Many times I struggle to find the correct shell command in history for my specific need what I used in the past.
So currently I’m adding comment to the end of the command for a specific flow, e.g.
Was struggling with this and even ChatGPT couldn’t give the right answer to remove the sticky (+) from a window. Only sticky mention in my rc.lua was awful.titlebar.widget.stickybutton Then I spotted it was in an if statement titlebars_enabled that I head false. My solution was temporary replace it to true and restarting AwesomeWM. Titlebars showed … Continue reading "Remove plus/sticky sign from AwesomeWM window"
Show full content
Was struggling with this and even ChatGPT couldn’t give the right answer to remove the sticky (+) from a window.
Only sticky mention in my rc.lua was awful.titlebar.widget.stickybutton
local titlebars_enabled = false -- change to true to remove sticky
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
-- buttons for the titlebar
local buttons = awful.util.table.join(
awful.button({ }, 1, function()
client.focus = c
c:raise()
awful.mouse.client.move(c)
end),
awful.button({ }, 3, function()
client.focus = c
c:raise()
awful.mouse.client.resize(c)
end)
)
-- Widgets that are aligned to the left
local left_layout = wibox.layout.fixed.horizontal()
left_layout:add(awful.titlebar.widget.iconwidget(c))
left_layout:buttons(buttons)
-- Widgets that are aligned to the right
local right_layout = wibox.layout.fixed.horizontal()
right_layout:add(awful.titlebar.widget.floatingbutton(c))
right_layout:add(awful.titlebar.widget.maximizedbutton(c))
right_layout:add(awful.titlebar.widget.stickybutton(c))
right_layout:add(awful.titlebar.widget.ontopbutton(c))
right_layout:add(awful.titlebar.widget.closebutton(c))
-- The title goes in the middle
local middle_layout = wibox.layout.flex.horizontal()
local title = awful.titlebar.widget.titlewidget(c)
title:set_align("center")
middle_layout:add(title)
middle_layout:buttons(buttons)
-- Now bring it all together
local layout = wibox.layout.align.horizontal()
layout:set_left(left_layout)
layout:set_right(right_layout)
layout:set_middle(middle_layout)
awful.titlebar(c):set_widget(layout)
end
Then I spotted it was in an if statement titlebars_enabled that I head false. My solution was temporary replace it to true and restarting AwesomeWM.
Titlebars showed up on all windows
Where I could click on the desired function and toggle it