Skip Navigation
Router (ipv6 dns)
  • route ipv6 dns to a destination of my choice

    Does this mean setting custom DNS server (so devices using DHCP picks up what DNS server you want them to use) or intercept DNS requests (MITM or use firewall rule to drop outbound 53 port requests)?

  • Intel 'Sierra Forest' Xeon Server CPUs
  • One thing notable of Sierra Forest is that the CPUs don't have SMT (only 1 thread per core), so in theory it doesn't suffer from speculative execution attacks.

    Epyc CPUs still provides more PCIE lanes, which is crucial for GPUs.

  • which python trick or hack you know that you would want to share?
  • asyncio provides "cooperative concurrency" for python.

    Lets say you need to download 10 webpages in python, someone might do

    result1 = requests.get(...)
    result2 = requests.get(...)
    ....
    result10 = requests.get(...)
    

    Down side is that each requests.get() blocks until HTTP request is done and if each webpage loads in 5 seconds your programs needs 50 seconds to download all pages.

    You can do something like spawn 10 threads, but threading has it's own downside.

    What coopertive concurrency does is allowing these coroutine(tasks) that can tell Python to do something else while a function is waiting for something.... I think it's the best to read some Python examples. https://docs.python.org/3/library/asyncio-task.html#coroutines

    examples that solves requests.get() problem with asyncio but it's probably better to use libraries that builds around asyncio.

  • what hardware should I buy for storage purposes? what brands?
  • ASUSTOR has NAS that can have up to 12 NVME SSDs (but speed is very limited by PCIE lanes).

    NVME SSDs are still very expensive compares to HDD.

    NAS that have many HDD bays are expensive but designed for easy setup and easy management.

    Fractal Design Define 7 (XL) can have up to 18 HDDs by design, but then you will need to search for PCIE to SATA cards and PSU that have many SATA connectors (for example RM850x/RM1000x) and Molex to SATA cables.

    FSP CMT370 is a much cheaper case with up to 3.5" HDD *9 or 2.5" SSD *10 but it's not on amazon, it probably doesn't sell to western world.

    SAS drive enclosures (and SAS cards) are also an option, but the cages might be very loud because they are designed for servers that also are very loud.

  • Any advice for a long-time Linux user, first-time Linux *desktop* user?
  • What do you recommend I do about disk partitions?

    I recommend separate EFI partitions while dual booting, I haven't seem issues with my separate EFI partition setup yet.

    If Mint provides Btrfs filesystem I personally recommend looking into timeshift (snapshot software that can be setup to automatically snapshot your computer).

    Is disk encryption straightforward?

    According to Linux Mint forum, you need to choose an option in "Advanced features" while going through installer, that seems straight forward

    Is cloud storage sync straightforward?

    Don't have experience with this but I can tell you: While rclone supports bi-directional sync, you need some setup for make it run periodically.

    Should I just use apt to install software?

    In the end you have to give trust to someone, I think it's fair to say if you already choose Mint you probably trust whatever options comes with Mint more than 3rd party options (but is it theoretically possible that backdoored program exists in Mint repository? of course yes).

  • What are your must-have programs?
  • While my solution isn't perfect (if someone key logged my computer I am very screwed), I think it's better than (1) have a much higher chance of losing my 2FA tokens altogether (2) put all hope on Bitwarden being not compromised

  • What are your must-have programs?
  • Do you want to have 2fa keys on all your devices?

    Yes

    Doesn’t that defeat the purpose?

    I use different password between KeepassXC and Bitwarden. (On my phone one of them is unlocked by fingerprint because I am lazy but not both)

    And I don't store KeepassXC password in Bitwarden.

  • 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 5
    Comments 68