MoLoPoLY

  • 34 Posts
  • 60 Comments
Joined 1 year ago
cake
Cake day: December 30th, 2023

help-circle
  • MoLoPoLYOPtoLinuxcp with backup, limit count
    link
    fedilink
    arrow-up
    1
    ·
    7 days ago

    Unfortunately, logrotate does not work the way I would like it to. I have now created a bash script, which hopefully does what it is supposed to do:

    #!/bin/bash
    keepCount=30
    
    files=($(ls *.db))
    fileCount=${#files[@]}
    
    for (( i=0; i<$fileCount; i++ )); do
    	database="${files[$i]}"
    	dbarr=($(ls -t $database.*))
    
    	for index in "${!dbarr[@]}"; do
    		p=$((index+1))
    		if [ $p -gt $keepCount ]; then
    			rm ${dbarr[$index]}
    		fi
    	done
    done
    

    Invoked in the respective directory, all *.db files are read into an array, as there can be different DBs per user. The array is then processed in a loop. First, the backup files for the respective DB are read into the array again, sorted by age. This array is then processed and all files whose index +1 is greater than keepCount are removed. This means that the oldest files are always removed and only those that are defined in the keepCount are kept.

    Its a little bit more complicated, but it seems to do the job.








  • MoLoPoLYOPtoF-Droid@lemmy.mlF-Droid and Samsung "Auto Blocker"
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 month ago

    USB Debugging is disabled, when im travelling. I had two such situations last week. At the first, i had enough time to shutdown and lock the device, before that. But the second time, they asked to unlock the device. I have no idea, if they can force me to do that, when a password is set, instead of only a fingerprint. But i don’t want to risk anything. Its not that i have to hide something. There is nothing on the phone what is not allowed. Only 2 VPN connections, which is not that good in China and some other countries. One for access to my home network and the other which i use in public networks.

    I don’t want to have any problems with the authorities (in any country). As long as I don’t have to hand over the device, they can have a look at what’s on the phone. But I also don’t want anything to be installed that doesn’t belong there and I want to use my VPN the way I want to.

    The second situation, was the first time in my travelling, when someone asked me to unlock the device. They didn’t take it with them after unlocking it (unlike the situation where it wasn’t unlocked) but I don’t see what could stop them from doing so.


  • MoLoPoLYOPtoF-Droid@lemmy.mlF-Droid and Samsung "Auto Blocker"
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    1 month ago

    That’s not the point. I travel a lot and here the phone is occasionally checked by the local authorities. I have no control over what the Chinese authorities do with the phone when they take it with them. Needless to say, I don’t plug the phone into any USB ports myself. The fact that apps from the Playstore are not affected by this is also OK, but I have installed very few apps via the Playstore, most of them are from F-Droid.

    To make a long story short: There were several such situations on my last trip and I was happy that I had this “Auto Blocker” active. But it’s not a permanent solution.






  • Hmm this is close enough to mine… Manjaro…

    have Arch in parallel boot, but I’m not happy how it works with Steam Games. This is at least for me, a lot better with Manjaro. But anyway, I will compare with Arch settings next time im on it. Tomorrow I have to go to Bangkok for some weeks and can’t use my private laptop for this time.





  • MoLoPoLYOPtoArch LinuxRemove Gnome with its settings?
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    Worked fine so far. I have just renamed .config and .local directory’s for later use and reinstalled Gnome. So far this seems to work. In my tests today, I could shutdown/reboot succesfully with every try. Hopefully this is a permanent fix. Since I have all the old files, maybe I find the time to check them for errors. But I fear I didn’t have so much time. Anyway, many thx for your tips which helped to fix the issue for me.


  • MoLoPoLYOPtoArch LinuxRemove Gnome with its settings?
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    Many thx. Will try that as a second user, just in case that the current user block something.

    My main issue is, that I can’t shutdown or reboot from within the quick settings panel anymore. If I do that, applications do close, but the computer doesn’t shutdown. However it’s working fine from a terminal.













  • This looks like something usefull. Some observations after first start…

    • why does the app requests full file rights, after I selected my local notes folder? If the app has access to that folder (and subfolders), this should be enough.
    • for code, examples a code font should be used and not the same font as article text
    • i use markdown a lot for code. With this it should be possible to select the whole code block by single click. When using css, this should be possible with > user-select:all
    • auto line break should be disabled in the same context. This seems to be already the case for code block but not for single line code
    • i would love to see support for yaml. But in the form that i can hide the yaml block
    • i think the search feature doesn’t work yet. If I have for example a note with the title Manjaro.md and I type “manjaro”, it isn’t found. The search should also search the text inside the notes or at least the yaml tags (if supported)
    • please keep the local folder and don’t invest your resources in a sync mechanism. There are so much possibilities like WebDAV, rsync, SFTP and a lot of clouds. To much to make anyone happy. There are some Android apps which sync such things with an ease.
    • I keep my rare images in a hidden subfolder of the notes folder like “.media”. Not only images, also linked PDF and so on. Such images are not displayed. They seems to be not found

    I really like the idea of your app. Could be a good companion for my PrimitiveNotes plug-in for Roundcube. Hopefully you find the time to develop it further.



  • Hmm i never noticed a visual indicator for the head lift. I can see the blue hologram and some sort of “waves” starting from the pump hologram. Assume, I have build a industrial tank on the bottom, 0 meter’s above the ground. From there the pipeline starts straight upwards, for example 20 meter’s. Where should I place the first mk II pump? At 3 meter’s or later?