Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)X
Posts
6
Comments
23
Joined
3 yr. ago

  • I managed to get into grub after editing the config in yast. I booted into a current snapshot and deleted most old ones, including the old 835.

    Still, my disc usage is at 118 / 120gb. I cleaned up all zypper stuff that is orphaned and unneeded.

    My snapper list output is now

    0 │ single │ root │ current 1828 │ pre │ Fr 16 Jan 2026 17:05:39 CET │ root │ 1.76 GiB │ number │ yast snapper 1832* │ single │ Fr 16 Jan 2026 17:17:41 CET │ root │ 272.00 KiB │ writable copy of #1807

    And some snapshot from all the cleanup. Looks like the #835 entry before and I kinda get the feeling ChatGPT led to wrong conclusions.

    So now I need to find out why my disk space is still fucked :( Starting with btrfs cleanup I guess. Do you have any suggestions?

  • If your home partition part of the same filesystem then filling your home with games and media also shows as filling root also, because its all one volume.

    I have ~/Misc and ~/Games mounted to two different drives and when I last checked (has been a while tbh) these drives would not affect the display for root. I remember having an eye on it in the beginning because I wasn't sure I hooked up the drives correctly.

    If you don’t like CLI stuff then: You can review grub menu options in the YAST2 GUI app for boot. Here you will see if there is a delay set to pick an alternate snapshot, or boot direct.

    I tried updating GRUB delay via the config file but could not apply the changes. I didn't even think about YAST. What a good call! I'll try this.

    But first use YAST2 GUI to review Filesystem, it will show you how many snap shots you have and whether they are important or not. You can also set how long to keep them by time or by number of entries. You can delete old ones if you don’t need them. You can force a new snapshot. But I would clear disk space first if you are that full.

    I forgot to add my snapper list output in the inital post and added it later. I have only 8 snapshots as older snapshots get deleted automatically. There is "#0 current", "#835" from back in 2024 and 6 recent snapshots. Each a snap before an update and after an update. From what I understand, my system keeps booting in the old #835 snapshot (I guess I did something wrong during a rollback) that now keeps growing after every system update.

    How have your " sudo zypper dup" upgrades gone?

    For the last 2 years they went through without noticable issues.

  • I need that XP wallpaper.

  • Watergate salad sounds pretty disgusting.

  • DACH - Deutschsprachige Community für Deutschland, Österreich, Schweiz @feddit.org

    Suche Obstsalat!

  • There's no need. Zen exists on Linux and works just fine.

  • Is the encryption built in with proton?

  • Sounds just like my usecase. What services are you using?

  • Not answering the whole question but still useful advice :) ty

  • True enough. Didn't think about that tbh.

  • Yeah, I tend to do that and you're probably right.

    Was just talking with a coworker and maybe I'll just start with saving images and backing them up to AWS glacier or some other cheap cloud storage. That way my data is safe in case I fuck up my setup.

    After reading about proxmox, I decided to go with containers and smaller, specialized services first, as getting to know container stuff is one of my goals for a homelab.

  • When it's streaming ready probably a bit more. But I guess I'm gonna be tinkering for a bit as suggested in other replies and build stuff successively. So for document and image storage it'll be idling most of the time.

  • Well, thats a lot to concern, and some points, I can probably not check in the nearer future (like the router beeing my own and not my ISPs. I am bound to the Router by contract. But I will keep that in mind. This made my "look into" list a lot longer :D

  • Ah, thanks for the clarification!

  • I've got my hands on an older Zotac nano that, according to the specs, has idle consumption of 6W. I think thats as good as it gets for a decent budget.

  • So uploads go via nc and samba distributes stuff back to the personal devices? Or what does samba actually do in this case?

  • Selfhosted @lemmy.world

    What do I actually need?

  • Books @lemmy.ml

    E-Reader recommendations

  • I think this level of derailing in a post about trains is irresponsible.

  • I personally try to avoid deeply nested if/else. Or else in general, because I think it makes code more readable. Especially when one of the branches is just an exit condition.

     
        
    if exitCondition {
        return false
    }
    // long ass code execution
    
      

    is way more readable than

     
        
    if !exitCondition {
        // long ass code execution
    } else {
       return false
    }
    
      

    In a loop, you can just return the value instead of passing it to a "retVal" variable.

    With those in mind, you could refactor HasPermissions to

     
        
    func (r *RBAC) HasPermission(assignedRoles []string, requiredPermission string, visited map[string]bool) bool {
    	for _, assigned := range assignedRoles {
    		if visited[assigned] {
    			continue
    		}
    		role, ok := r.Roles[assigned]
    		if !ok {
    			//role does not exist, so skip it
    			continue
    		}
    		for _, permission := range role.Permissions {
    			if permission.String() == requiredPermission {
    				//Permission has been found! Set permitted to true and bust out of the loop
    				return true
    			}
    		}
    		//check inherited roles
    		if permitted := r.HasPermission(role.Inherits, requiredPermission, visited); permitted {
    			return true
    		}
    	}
    	return false
    }
    
      

    The same could be applied to LoadJSONFile and I think that really would approve the readability and maintainability of your code.

    edit: This refactor is not tested

  • Pick 3

    Jump
  • Add Shape shifting and you're Ranma.

  • Just get a Bakfiets.

  • Linux @programming.dev

    Why is my tmux borked?

  • Programming @programming.dev

    Why is my tmux borked?