Skip Navigation
Simple Minimal Backup Solution
  • simplest tool to backup to Google drive

    Without the need for versioning, I think rclone fits the description. For backup into USB drive / remote SSH server I would recommend rsync.

  • Need help with NetworkManager, VPN and IPv6

    I was setting up my laptop for traveling and adding Wireguard VPN configuration.

    The Wireguard config generated by router only contains IPv4 address (10.0.5.x), and while testing the VPN to my surprise "what is my ip" websites can find my IPv6 address (I USB tethered mobile connection to my laptop).

    It looks like NetworkManager does nothing about IPv6 connection if VPN doesn't have IPv6 settings, which is bad for road warrior type of VPN configuration.

    Is there an easy toggle to turn of IPv6 if VPN is connected and otherwise? Or is only option to disable all IPv6 no matter what?

    17
    How do you use only ipv6 server?
  • You setup Wireguard server on the VPS with both IPv4 and IPv6. Then you connect both your computer and IPv6-only server to the Wireguard server. After connection, you can connect to the VPN through IP address assigned by wireguard.

  • How do you use only ipv6 server?
  • Personally have good experience with https://github.com/Nyr/wireguard-install, there are other script that are available by searching "wireguard setup script github".

    Note: By default Wireguard config generated will route every bit of traffic through Wireguard (which will be slower and probably not wanted in this situation), to change that change AllowedIPs field in Wireguard config, lets say all your machines are assigned 1.2.3.xxx as IP address, to only access other 1.2.3.xxx IP through wireguard, change the config to AllowedIPs = 1.2.3.0/24.

  • How do you use only ipv6 server?
  • Host a website that needs to be accessible from your own machine or public?

    Former situation: Can be solved by setup reverse proxy on the other VPS, or join machines to a VPN server (like tailscale,, Zertoier or Wireguard server)

    Later situation: Cloudflare or other CDN, setup reverse proxy on the other VPS.

    Less accessible option but available for public: Tor or I2P

  • I encountered a case where using cprofile actually speeds up my code, did anyone else encountered this before?

    I can't give you the code because this is work related, and I couldn't make a minimal code that mimics the behavior.

    My of my programs at work is a log parser, it reads syslog and use compiled regex pattern to match syslog, the whole program looks like this

    If match := pattern.match(line): Do this elif match := pattern2.match(line): Do that …

    During almost two years of me developing the programs, there are more patterns and more things to do and it gets slower.

    But I recently figure out that if I commented out Do that and replace it with pass, my program speeds up, even if pattern2 never matches in my test case.

    More strange thing is that in my attempts to use cProfile to profile things, my program runs 2.5x to 3x faster by just doing

    from cProfile import Profile with Profile() as profile: main()

    I don't even call anything with profile variable and it speeds up my program, why is that?

    0
    Is there a proper way to offload video workload to iGPU/APU?

    Background story: I recently bought a computer with AMD 7000 series CPU and GPU.

    amdgpu_top reports 15 ~ 20 watts in normal desktop usage, but as soon as I have video playing in VLC, it goes to 45 watts constantly which is undesirable behavior especially in summer. (I hope that is just reporting issue... but my computer is hot)

    When I do DRI_PRIME=1 vlc and then play videos, amdgpu_top doesn't report the power surge. (I have iGPU enabled)

    Is there anything more convenient then modifying individual .desktop files? KDE malfunctions when I put export DRI_PRIME=1 in .xprofile so that's a no go.

    ---

    Solved: removing mesa related hardware acceleration package makes VLC fall back to libplacebo which doesn't do these weird things.

    15
    Someone speedrun Minecraft in less than 1 minute in game time

    This speedrun video is insane I have to share it somewhere

    11
    Need recommendation for custom push notification solution.

    I currently have a server running in cloud that can send custom notification through self-hosted gotify server.

    The down side is battery drain, it eats more than 15% of battery per day and it's unsustainable, I have to turn on battery optimization.

    I know google offers GCM and FCM which instant messaging APPs uses, but I couldn't find a software that is as easily configurable and have a ready to use Android client (that preferably connects to GCM and FCM so no battery drain problem), any recommendation?

    4
    Need help - My monitor configuration is messed up

    My setup: OS is Endeavour OS and up to date, my GPU is RX 560 with 1xDVI + 1x HDMI + 1X DP output, two monitors of the same model (1xHDMI + 1xDP). (KDE Plasma 5.27.7, KDE Frameworks 5.108., Qt 5.15.10, Kernel 6.4.11-x64v2-xanmod1-1, Wayland)

    Original setup: MonitorA on left of my Desk connected with DP, MonitorB on right of my Desk connected with HDMI, the problem is that games see left monitor as "Monitor 1" and opens on left monitor all the time, and I prefer them to use "Monitor 2" by default.

    Setup 2: I switch DP and HDMI cable, but everytime a boot up my computer (I set auto login in SDDM) the monitor configuration becomes "MonitorB is on top of Monitor A", none of my attempts to change that persisted between reboots, I didn't test games because this heavily affects my workflow.

    Setup 3: Also switched monitors positions physically (MonitorB on left of my Desk connected with HDMI, MonitorA on right of my Desk connected with DP), now the default monitor configurations is side-by-side again, but every boot I have to switch monitors' position in settings or I have to go right on MonitorA to get to monitorB.

    I also noticed monitor settings go away when I logout of Wayland KDE session, is there a way to fix monitor configuration in SDDM?

    0
    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/)AX
    axzxc1236 @lemm.ee
    Posts 6
    Comments 86