Skip Navigation
Posts
18
Comments
159
Joined
2 yr. ago
  • disconnects power cord

  • I will just do the update first /s

  • One one will set my defaults but myself

  • How can you say refunded in the article lol?

  • Well. What I find odd about it is that if there is reference to localhost then a production page is reaching out to clients computers to parse some math formula. I think the developer hardcoded something that worked for him and pushed to prod. It could possibly still work for him but not for others without a program listening on that port.

  • This reference to localhost seems odd to me

  • The public statement has been that Kremlin wants to get a permanent solution in place. They dont want to have a conflict on their borders in the future again.

  • How can you distinguish between "legitimate marketing" and some phishing email that looks like marketing material with a tracked unsubscribe link? Clicking on that unsubscribe link just lets them know email is active and its value has just been increased

  • Hold up. Dont change stuff in /usr/lib/. That directory contains default settings that comes with packages. If you need to overwrite those settings use /etc for that.

  • You wont find any. Just think of it. Bad news / bad numbers would be a morale hit

  • Confession

  • Number 4 hit home for me. I've been just trying random shit until it compiles. When it compiles it usually works without understanding what the fuck is going on

    Programming rust on an off for 2 years or so

  • Is it such a hassle learning verilog if you know vhdl or vice versa?

  • Its available on flathub, thats arguably better than any repos

  • Well, thats today that is. What about tomorrow?

  • Hyperland and arch? Not what I expected

  • Nice one, didn't know about moreutils. I indeed used p10k on top of zsh. New zsh instance without sourcing anything zsh --no-rcs managed to write to file without issues. Thanks

  • yep. that did it. I had to wrap the entire thing in quotes though

     undefined
        
    sh -c "echo 'test' | sudo tee newfile"
    
      
  • no way. I'm in /tmp for this one

     undefined
        
    echo 'test' | tee newfile
    tee: newfile: Permission denied
    test
    echo 'test' | sudo tee newfile #the prompt never returns when running this in zsh
    
    
      
  • Linux @lemmy.ml
    Agility0971 @lemmy.world

    correct way to echo | sudo tee

    Can someone explain why this would make the command wait forever? What is tee waiting for?

     bash
        
    echo "test" | sudo tee newfile
    
    
      

    What would be a scriptable workaround for such cases?

    Edit: this command would not terminate in zsh. This works fine in bash tho.

    Arch Linux @lemmy.ml
    Agility0971 @lemmy.world

    Wayland Disable touch screen

    Do anyone know how to disable the touchscreen on wayland? All I find is only relevant for x11

    Selfhosted @lemmy.world
    Agility0971 @lemmy.world

    Simple remote system monitoring tool

    I'm looking for a simple remote system monitoring and alerting tool. Nothing fancy. Do you know of any? Features:

    • monitors CPU, memory and disk space
    • can accept multiple hosts to watch
    • has some sort of alerting system
    • can be deployed as a single docker container
    • can be configured using a text file
    • configs can be imported and exported inside the docker compose file

    I like uptime-kuma but it only records the uptime. Other containers I've found seemed to be overly complicated. They requires multiple docker containers for log aggregation etc...

    Europe @feddit.org
    Agility0971 @lemmy.world

    Mobile plan in Europe

    In every country there are several mobile service providers. And with current EU regulations no mobile provider can charge extra for traveling within EU. Mobile providers in my country are definitely more expensive that average European mobile plan. I was wondering, can I downgrade my current plan to only keep my current phone number and purchase a plan from a cheaper mobile provider in another EU country with unlimited data and just use roaming all the time since I'm in EU? What are your thoughts? Do you know about a cheap mobile data plan?

    Linux @lemmy.ml
    Agility0971 @lemmy.world

    Deduplication tool

    I'm in the process of starting a proper backup solution however over the years I've had a few copy-paste home directory from different systems as a quick and dirty solution. Now I have to pay my technical debt and remove the duplicates. I'm looking for a deduplication tool.

    • accept a destination directory
    • source locations should be deleted after the operation
    • if files content is the same then delete the redundant copy
    • if files content is different, move and change the name to avoid name collision I tried doing it in nautilus but it does not look at the files content, only the file name. Eg if two photos have the same content but different name then it will also create a redundant copy.

    Edit: Some comments suggested using btrfs' feature duperemove. This will replace the same file content with points to the same location. This is not what I intend, I intend to remove the redundant files completely.

    Edit 2: Another quite cool solution is to use hardlinks. It will replace all

    Linux @lemmy.ml
    Agility0971 @lemmy.world

    How to change password in Ubuntu

    I've run passwd and sudo su; passwd to change password for root and my account. Password is set correctly when using sudo and su but whenever I get prompted by pkexec it accepts only the old password. I've rebooted my system to make sure it was not an issue.

    Edit: Solved Turns out the password were changed for root account but not my user account. I think the reason is that there are no password quality requirements on root accounts, but there are on the default account in ubuntu. Changing the password from root account passwd user worked fine.

    Arch Linux @lemmy.ml
    Agility0971 @lemmy.world

    waiting for gnome 46 to drop in the repos be like

     undefined
        
    while true; do; sudo pacman -Syu --noconfirm; done
    
      
    Privacy @lemmy.ml
    Agility0971 @lemmy.world

     Youtube blocks Edge with "enhanced protection". Youtuber advices to turn off "enhanced protection"

    Matlab @programming.dev
    Agility0971 @lemmy.world

    Cooperation on Simulink project

    Hi, what do you use to cooperate on simulink projects? I tried using git on GitHub at first but the issue is that GitHub has a size limitation on blobs. It suggested to use git-lfs however that filled the storage space up almost instantly. is there any other solutions you've found useful?

    Linux Gaming @lemmy.world
    Agility0971 @lemmy.world

    squad 6.0

    has anyone had any success with squad 6.0 yet?

    Gnome @discuss.tchncs.de
    Agility0971 @lemmy.world

    independent workspace switching

    I'm looking for an extension that makes the workspace on multi monitor setup independent. Right now If I switch workspace on my laptop it changes on the big screen as well.

    Linux @lemmy.ml
    Agility0971 @lemmy.world

    btrfs corruption?

    In my dmesg logs I get following errors a lot:

     undefined
        
    [232671.710741] BTRFS warning (device nvme0n1p2): csum failed root 257 ino 2496314 off 946159616 csum 0xb7eb9798 expected csum 0x3803f9f6 mirror 1
    [232671.710746] BTRFS error (device nvme0n1p2): bdev /dev/nvme0n1p2 errs: wr 0, rd 0, flush 0, corrupt 19297, gen 0
    [232673.984324] BTRFS warning (device nvme0n1p2): csum failed root 257 ino 2496314 off 946159616 csum 0xb7eb9798 expected csum 0x3803f9f6 mirror 1
    [232673.984329] BTRFS error (device nvme0n1p2): bdev /dev/nvme0n1p2 errs: wr 0, rd 0, flush 0, corrupt 19298, gen 0
    [232673.988851] BTRFS warning (device nvme0n1p2): csum failed root 257 ino 2496314 off 946159616 csum 0xb7eb9798 expected csum 0x3803f9f6 mirror 1
    
    
      

    I've run btrfs scrub start -Bd /home as described here. The report afterwards claim everything is fine.

     undefined
        
    btrfs scrub status /home
    UUID:             145c0d63-05f8-43a2-934b-7583cb5f6100
    Scr
      
    networking @sh.itjust.works
    Agility0971 @lemmy.world

    What do you look out for when you purchase wifi cards?

    What properties that affect the range, speed and features should a consumer be looking out for?

    Linux @lemmy.ml
    Agility0971 @lemmy.world

    Reset flash drive

    I've been messing with my flash drives trying to follow some random documentation with dd and now both of my flash drives are reporting 0 bytes of free space. I was trying to clear out everything and start from scratch as if they were new. I wonder if there are any program out there that can just sudo reset-everything /dev/sdX

    Linux @lemmy.ml
    Agility0971 @lemmy.world

    tui programs over ssh dimension mismatch

    I'm experiencing an issue with commands that provide a tui interface like journalctl, systemctl and vim. It feels like terminal dimensions are not matching up somehow. And this issue is present only some times. On host I'm using Black Box and I tile my windows using pop os tiler. I'm also frequently scaling the font with ctrl + and ctrl - shortcuts. Remote sshd host is running Debian variables $LINES and $COLUMNS are set. bashrc files are in their default state.

    How is this supposed to work? Isn't my terminal client sending new $LINES and $COLUMNS each time there is a change?

    Gnome @discuss.tchncs.de
    Agility0971 @lemmy.world

    Gnome app for converting screen recordings into gifs

    Do you know about any gnome apps that can be used on screen recording (.webm) to gif so they can be uploaded here on lemmy?

    Edit: found Footage. For some reason it was not listed on Gnome Apps

    Neovim @sopuli.xyz
    Agility0971 @lemmy.world

    How to find functions in documentation

    I'm using NvChad and in ~/.config/nvim/lua/core/mappings.lua there is a keybinding for LSP code action:

     lua
        
      ["<leader>ca"] = {
        function()
          vim.lsp.buf.code_action()
          -- TODO: write buffer to file
        end,
        "LSP code action",
    },
    
    
      

    this keybinding applies the code action, but does not write to file. I want to write changes to file as soon as I've applied the code action.

    How can I use the documentation at https://neovim.io/doc/ to find the correct function? I've tried looking for a write() function but I could not find anything I can call from lua.

    Arch Linux @lemmy.ml
    Agility0971 @lemmy.world

    network manager service name

    Who thought it was a good idea to use pascal case naming convention for network manager NetworkManager.service while all remaining services in existence uses kebab case? It should be network-manager.service.