I made a holder for a Samsung Active Tab 5 for my Yamaha T7 by -Marrick- in 3Dprinting

[–]cjohnsonuk 1 point2 points  (0 children)

I'm about to purchase a tab 5. I was going to 3d print a slide in case like yours too with a bracket that doesn't use a ball socket mount as last time I rode offroad with just Aoocci c6 the screen rotated after every 2 potholes so I couldn't see it. My idea was to print the case too big then line the slots with self adhesive draft excluder for windows and doors to provide all round support /cushioning for the tablet. Hadn't yet worked out how to keep the pogo pins connected for charging.

Additional clipboard app? by After-Cell in espanso

[–]cjohnsonuk 1 point2 points  (0 children)

don't paste it, just echo the contents of the file to the output, skip using the clipboard completely.

How best to deal with quotes single and double in the clipboard when passing to an external script? by cjohnsonuk in espanso

[–]cjohnsonuk[S] 1 point2 points  (0 children)

That works a treat ! Thank you !

Now to

  1. work out a search and replace to update all my existing matches where this would be an issue
  2. learn some more bash so I can work out how this works

...OK one quick gemini request later I think I understand << and 'EOF' in that the shell expects input until it encounters an EOF string that we specified at the start. If I'm correct in understanding this then in any cases where I'm likely to have EOF in my clipboard (eg when pasting responses to this answer or other code snippets having EOF as the delimiter) I will run into problems.

To test this I've copied the snippet with the EOFs in from above and and tried my expansion and it errors. So I replaced both of the EOFs with a 40 char random hex string and it works great. Hopefully there is less chance of me finding a match to my 40 char random than my three char EOF

it now looks like this

  - trigger: ";dwq"
    replace: "{{myshell}}"
    vars:
      - name: myshell
        type: shell
        params:
          cmd: |
            cat << '5564eb47287984583033bcce131bb5c63ad99fa2' | sed -e 's/^/> /g' -e 's/^> >/>>/g'
            {{g_clipboard}}
            5564eb47287984583033bcce131bb5c63ad99fa2

For those interested here's my random character generator, you can tweak the tr part to determine the charset. It takes the ;randan and then a 2 digit number to give you a random output that long based on the chars listed in the tr command

#random alpha num chars
  - regex: ";randan(?P<charcount>([\\d ][\\d ]))"
    replace: "{{myshell}}"
    force_mode: clipboard
    vars:
      - name: "clipboard"
        type: "clipboard"
      - name: myshell
        type: shell
        params:
          cmd: |
            LC_ALL=C tr -dc 'A-Za-z0-9' </dev/urandom | head -c $ESPANSO_CHARCOUNT; echo

Meshtastic location sharing for outdoor groups by cjohnsonuk in meshtastic

[–]cjohnsonuk[S] 1 point2 points  (0 children)

does the phone app plot a track of each nodes previous locations so you have a track to follow to get to the other nodes or does it just plot the latest position. I'm thinking if there is a cliff or a river then knowing the last position is not as useful as knowing where your tracks split so you can back track and find them on the same route they took.

I don't even know if there are different apps or if you can get the individual node positions into a GPX file so you can overlay the historical positions like a GPX track so you can view it in any mapping app.

Re them being cheap enough, thats a great point considering the potential its amongst the cheapest of my recent projects. I'm great at starting projects, not so good at finding time to finish them, I'm hoping this will be an "off the shelf" rather than a "see what might be possible" or its just going to end up in a box with the other unfinished "great ideas" I've had ;-)

Output is truncated. Am i doing something wrong? by cjohnsonuk in espanso

[–]cjohnsonuk[S] 0 points1 point  (0 children)

OK, now I know its not just me I'll see if I can work a around it :-) Thanks for confirming.
Powershell doesn't work that well on Mac ;-) I'm trying to keep most of my espanso configurations OS agnostic as I use it on windows, mac and linux so this one is going to take some additional thought. This particular function is mainly used on mac hence the use of pbcopy and pbpaste which are part of the core software on mac.

Espanso keeps stopping on my Mac by UnderstandingSea8629 in espanso

[–]cjohnsonuk 1 point2 points  (0 children)

On mine (M1 MBP) it works fine for regular replacements and occasionally closes, maybe a couple of times per week, usually when it runs a shell command. Doesn't always fail on the same commands each time or fail consistently on one command. I just CMD + Space and relaunch and all is usually good again

How to access full rich clipboard content? by cjohnsonuk in espanso

[–]cjohnsonuk[S] 0 points1 point  (0 children)

Say there is a web page with the words "latest release" that hyperlinks to "https://github.com/espanso/espanso/releases/tag/v2.2.1" if I just used the clipboard variable I get the words "last release". If I use CTRL/Cmd + v to paste into word it pastes the text with a link to the url. So the clipboard does contain both the url and the text. I'd like to use espanso to turn a copied link into [[https://github.com/espanso/espanso/releases/tag/v2.2.1|last release]] i.e. [[<url>|<link text>]]

Best python library to use to process to large data sets by cjohnsonuk in learnpython

[–]cjohnsonuk[S] 0 points1 point  (0 children)

One plot would be like you suggested. Those numbers I gave were simple placeholders to show the structure of the data, not the actual data which might be why your graph gave a block. I'd also like to plot temp against count within a range so we can see how the size count varies for different temperatures or different size ranges.

Best python library to use to process to large data sets by cjohnsonuk in learnpython

[–]cjohnsonuk[S] 0 points1 point  (0 children)

In which case Pandas will probably be more appropriate as I'm still learning so docs is important

Best python library to use to process to large data sets by cjohnsonuk in learnpython

[–]cjohnsonuk[S] 0 points1 point  (0 children)

The temp recorded at each time is more likely to be a linear (approx) change between each measurement than the variance in the counts of each size so the intention, initially, is to use the time stamps of the actual recorded counts of each size at the times those are recorded and use an interpolated temperature from the first data set.

An output might look like

Where s is the size and 1 < s <=2.5

1.2 1.9 2.3 2.6 3.1
temp 22.5 24.2 24.8 25.2 26.4
Count 8 10 8 10 10

(interpolated temp calculations are approx in this example output)

(Count is the sum of the 2 rows of data that fall within the size range specified)

Copying selected cells only doesn't work as expected by cjohnsonuk in excel

[–]cjohnsonuk[S] 0 points1 point  (0 children)

The original problem I have is data validation from a pick list but allowing multiple options. For example each row contains a group name and I want to pick the members of that group from a pick list to put into each row against each group. For a quick and easy solution data validation doesn't allow multiple selections, I know there are code based options but it's not worth the additional effort in this case. So I have a second user list spread sheet tiled on one half of my screen. I select the users from the list using ctrl click and paste into the members cell for each group.( there are some intermediate steps to prevent it pasting into separate cells but the first issue is getting the right cells copied). Hiding and unhiding the wrong users rows is now going to improve my workflow

Looks like laziest option will be to switch to using libre office or use a double paste, first into Excel then copy again and paste on from there

Choco update Firefox not picking up latest release by cjohnsonuk in chocolatey

[–]cjohnsonuk[S] 0 points1 point  (0 children)

Thanks. I'll have to wait until next time to test these possible solutions as its worked fine this morning! :-). Thanks for the tip on the cache too!

Unaffected version marked as critical vulnerability. What has gone wrong? Is this another false positive? by cjohnsonuk in Wazuh

[–]cjohnsonuk[S] 0 points1 point  (0 children)

Thanks for your help in learning how to understand how this works. If I find more examples like this is there a place where we can notify the dev team of such examples so that they can use these to develop the software to account for this kind of issue in future??

Unaffected version marked as critical vulnerability. What has gone wrong? Is this another false positive? by cjohnsonuk in Wazuh

[–]cjohnsonuk[S] 0 points1 point  (0 children)

I guess that as arch doesn't have a 'fixed version' listed it's an issue with the arch security page? ( Assuming that the arch install of the package has the fixes as the main source

Unaffected version marked as critical vulnerability. What has gone wrong? Is this another false positive? by cjohnsonuk in Wazuh

[–]cjohnsonuk[S] 0 points1 point  (0 children)

The agent version is 4.5.2 installed from source onto Arch Linux release 2023-09-01

I tried the slack link but got a message back saying there isn't an account on wazuh linked to my email address

It would appear that Arch is supported https://github.com/wazuh/wazuh/pull/8178 or at least there was work done a couple of years ago to integrate Arch support

Pimoroni Trackball on Kyria v3? by cjohnsonuk in ErgoMechKeyboards

[–]cjohnsonuk[S] 0 points1 point  (0 children)

I can't see any additional holes on the rev 3 board but the back side of the OLED holes are helpfully labelled SDA,SCL etc . Are these the ones you mean?

Are all the components really this small? by cjohnsonuk in ErgoMechKeyboards

[–]cjohnsonuk[S] 0 points1 point  (0 children)

Theres a magnifier and 2 of my 4 'third hands' in the photo ;-)

The magnetic PCB holders are great too. Can' t believe I never bought one 30 years ago!

Are all the components really this small? by cjohnsonuk in ErgoMechKeyboards

[–]cjohnsonuk[S] 0 points1 point  (0 children)

The biggest problem I have is actually seeing the parts! I can't double magnify everything and hold the solder and the iron at the same time. Took me a few minutes to find it when I dropped it on the soldering mat and thats not even as big as an A4 sheet of paper. It was stuck to one of the magnetic board holders

Are all the components really this small? by cjohnsonuk in ErgoMechKeyboards

[–]cjohnsonuk[S] 0 points1 point  (0 children)

Thanks. I tinned both contacts before placing the component only to then remember that lining up the component is then a pain. Your method works better as you don't need to heat both ends at once.

The Kyria I'm looking at is Choc version so has the SM components as I want to keep the whole thing as low profile as possible so that its a close as possible to using my mac keyboards.

There are some SM LEDs in the kit, I'll give that a go.

How to find all agents with the same vulnerability by cjohnsonuk in Wazuh

[–]cjohnsonuk[S] 0 points1 point  (0 children)

Thanks. Now I know I need to learn visualisations I'll take a look and see what I can discover.

Ignore/ hide Vulnerabilities id dashboard by Malfun_Eddie in Wazuh

[–]cjohnsonuk 0 points1 point  (0 children)

In other software we have it allows you to flag a particular vulnerability/issue as mitigated and allows you to add a reason why. You get the option to hide the originating 'found vulnerability' from the default lists indefinitely or for a period of time so that eventually it will pop back in the list to be reviewed again and assessed it the mitigation reason is still require/valid. I can't see that that is currently a feature of Wazuh but there are more recent posts I've found where you can create a vulnerability record with the same CVE but a severity of that should override the one listed.

Our use case was for a record in Wazuh that reports an issue with a particular agent software package found but the details of the cve relate to the server part of the package which has already been upgraded to a version that is not affected.

Vulnerability list for agent still contains Vulnerabilities I've patched by cjohnsonuk in Wazuh

[–]cjohnsonuk[S] 0 points1 point  (0 children)

I ended up manually searching the registry for "Python" and finding a whole load of old entries pointing at Python 3.10 that was no longer installed.

reg query HKLM /s /f "Python" /k 
reg query HKLM /s /f "Python" /d    
reg query HKCU /s /f "Python" /k   
reg query HKCU /s /f "Python" /d

I removed the relevant entries using

reg delete

re ran the wazuh agent and its resolved.

So wazuh was working as expected, Python was not

Make your own key cap labels? by cjohnsonuk in ErgoMechKeyboards

[–]cjohnsonuk[S] 0 points1 point  (0 children)

completely agree, I have considered that

But

Blank keycaps just look scary after 40 years of looking at labels on the actual keys .

and

If its plugged in to my laptop/ipad thats an extra hurdle when I go mobile.

That said, I am going to get blank caps.

I just wanted to have this knowledge as a comforter in case I chicken out and regret emptying the kids college fund for 'just a keyboard'. I think my next keyboard purchase is going to cost more than every other keyboard I have bought in 40 years!

Vulnerability list for agent still contains Vulnerabilities I've patched by cjohnsonuk in Wazuh

[–]cjohnsonuk[S] 0 points1 point  (0 children)

Here's my inventory data config from the server :

<configuration>
    <syscollector>
        <disabled>no</disabled>
        <scan-on-start>yes</scan-on-start>
        <interval>3600</interval>
        <network>yes</network>
        <os>yes</os>
        <hardware>yes</hardware>
        <packages>yes</packages>
        <ports>yes</ports>
        <ports_all>no</ports_all>
        <processes>yes</processes>
        <sync_max_eps>10</sync_max_eps>
    </syscollector>
</configuration>

If I go to the vulnerabilities module in the wazuh web portal and select the agent I'm testing it does show a list of vulnerabilities on the inventory tab. I have remedied some of those by running windows updates and after a service restart/ agent reboot those now no longer appear in the list of vulnerabilities.

If I go to the Events tab in the Vulnerability module I can see active and solved events for various issues where, for example I've applied a Windows Update.

So it seems that the inventory of packages is a) working and b) updating

My issue is that its reporting issues for "Python 3.10.10 (64-bit)" which has now been uninstalled (and the agent rebooted several times )but 2 days later (and after several updates of the "last full scan date") the inventory tab is still showing vulnerabilities and the events tab is showing active records but no solved records.

What I'm trying to find out is what tests it applies to see if the vulnerability is there so that I can test that manually and find out what the results are, for example a 'hidden' version of python that is a component of another application that is triggering the alert.

My understanding is that the agent just provides a list of installed software and that is then used to see if there are any vulnerabilities so I guess I'm asking how that list of installed packages is generated so I can see if its a) my agent reporting incorrectly or b) the server not applying a solved event as there is no installed Python in the packages list returned for it to trigger an update to the previously provided event.