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/)HA
Posts
19
Comments
635
Joined
1 yr. ago
  • Right! It's kinda wild when you do see them. I always equate it to the feeling of being in a casino.

    What really throws me is tv commercials. When I do see one, like in a waiting room or something, all I can think is, "people fall for this?"

  • I don't know of Amy open source projects that do this, but if you're at all comfortable with bash (or another scripting language) and a little self hosting you can roll your own with Olivetin, which is what I did for all my personal data tracking.

    I have it running on a raspberry pi zero w and access it through the pwa.

  • I am always shocked when I have to use a browser without an ad blocker. How do people tolerate it?

    I mean, I get it. I know many people have no idea about adblocking, etc. But goddam. It's so awful without it.

  • I self host vaultwarden and its great. Its an easy self host, and in my experience, it has never gone down on me.

    That being said, my experience is anecdotal. If you do go the vaultwarden route, realize that your vault is still accessible on your devices (phone, whatever) even if your server goes down, or if you just lose network connectivity. They hold local (encrypted at rest) copies of your vault that are periodically updated.

    Additionally, regardless of the route you take you should absolutely be practicing a good 3-2-1 backup strategy with your password vault, as with any other data you value.

  • Linux @lemmy.ml
    harsh3466 @lemmy.ml

    Happy with my bash progress!

    This is just me celebrating a small win. I've been slowly learning bash scripting, and just now I was able to quickly write a simple bash script to automate a file moving task without referring to my notes or the web!

    It's not a super complicated script, I'm just happy I'm starting to internalize the knowledge I've been building.

    I've been organizing my media files after ripping our DVD collection. I had all the files for The Smurfs cartoon (love the Smurfs) in the main Smurfs show folder. I wanted to put them all into their respective season folders (Season.XX). Here's the script:

     undefined
        
    #! /bin/bash
    
    for number in {01..09}; do
        find . -type f -name "The.Smurfs.S$number*" -exec mv {} Season.$number/ \;
    done
    
      

    I could have done it as a one liner, but I like to keep things like this for future reference.

    Linux @lemmy.ml
    harsh3466 @lemmy.ml

    Question: Can I use dd to clone my luks encrypted lvm os drive?

    EDIT WITH UPDATE: Operation went off without a hitch! I'm now up and running with the 512GB nvme drive! Next stop is dual booting nixos, which was the whole reason for switching to the larger drive.

    ORIGINAL POST:

    I’ve got a laptop running Arch (btw), with a 128GB nvme in it. The nvme has two partitions. EFI boot, and a luks encrypted lvm.

    I’ve got a 512GB nvme I want to swap in. I think I can clone the device with dd, update the uuids, expand the lvm, and drop in the 512 nvme, but my searching hasn't given me a clear confirmation of this. Am I correct in my thought process, or am I setting myself up for disaster?

    Dull Men's Club @lemmy.world
    harsh3466 @lemmy.ml

    Wife and I made a cherry cheesecake

    Linux @lemmy.ml
    harsh3466 @lemmy.ml

    In vim I can't type the ~ character

    Edit 4: I think I've fixed the issue. I uninstalled vim, deleted ~/.viminfo and /etc/vimrc, then reinstalled vim. I jumped around a file a bit, went in and out of edit mode, and type a bunch of ~ and it didn't jump the text around at all. Still not sure what I did, but it appears this variation of turning it on and off again worked.

    I'm hoping someone can help me with this.

    I was holding my laptop while I had a vile open in vim, and I slipped, mashing a bunch of keys on the keyboard by mistake.

    After doing this, I can't type the ~ character anymore. Anytime I try to type it, it jumps the text to the last line, putting the last line at the top of the editing screen so that's the only line of text showing.

    I thought maybe I had set an option that would show up in ~/.vimrc, but there's no ~/.vimrc file. There is a /etc/vimrc file, and a ~/.viminfo file.

    I've searched and had no luck finding out what I did to cause this behavior. I also tried looking through the vim ma

    Linux @lemmy.world
    harsh3466 @lemmy.ml

    FIXED: Help Fixing VPN Connection When Resuming From Suspend

    Edit 2: Fixed! Thanks to @[email protected] for this github issue link.

    The solution is in the last comment suggesting to set ManageForeignRoutingPolicyRules=no in /etc/systemd/networkd.conf

    Original post is below...

    So I've got something I don't quite know how to find a solution for and I'm hoping this lovely community can help!

    I've been experimenting with Arch (btw) with Hyprland to learn more about the install process, and linux in general, and to see if I like tiling window managers (I do).

    I've installed this on a thinkpad I use for tinkering/learning, and the problem I'm encountering is that when I open up the laptop and the system resumes from suspend, the VPN connection is active, but broken, or maybe leaky.

    What I mean by that is prior to suspending, with the vpn connection active, if I run curl ip.me, the result is the vpn server

    FoodPorn @lemmy.world
    harsh3466 @lemmy.ml

    I made Loukomedes (Greek donuts)

    Growing up these donuts were a new year's tradition. I hadn't had them for decades, so I decided to learn how to make them. They're super easy to make and super delicious. It's a fried donut with a wonderfully crispy outer shell and a soft pillowy interior. They're traditionally topped with warm honey, cinnamon, and chopped walnut (I also toasted the walnuts).

    Linux @lemmy.ml
    harsh3466 @lemmy.ml

    Perl rename command works at cli but not in alias or bash script

    EDIT 2: After learning that aliases aren't really suited for regex, and trying the script, I thought maybe reloading the .bashrc file wasn't enough to refresh the aliases, so I closed my terminal and after reopening the terminal and trying the script again it works just fine.

    Okay, I've tried searching for help on this and I can't find anything, and I'm banging my head on my desk trying to figure out how to get this to work.

    I routinely have to capitalize the first letter in a series of files that are passed to me. So I'll get:

     undefined
        
    file01
    file02
    
      

    And so on. I use perl rename (I'm using Fedora) with the following command and regex, and from within the directory it works as expected:

     undefined
        
    prename 's/(^[a-z]?)/\U$1/' *
    
      

    I do this a lot. At least once a day, which calls for an alias or script.

    I tried adding it as an alias to my .bash_aliases like so:

     undefined
        
    alias cap="prename 's/(^[a-z]?)/\U$1/' *"
    
      

    And when I do, instead of capitalizing the first letter of the filena

    Programming @programming.dev
    harsh3466 @lemmy.ml

    Book recommendations to learn programming fundamentals

    Hello! I’m looking for book recommendations for learning programming fundamentals.

    To be clear, I’m not necessarily looking for a book on learning language(s), but rather, programming, theory I guess you might call it?

    For example, I’ve been playing around a lot in my terminal writing bash scripts, and I just implemented my first function. Another example, I know the phrase “Object Oriented programming”, but have no idea what it means.

    I learn well by doing, and I’ve learned a lot just writing scripts and reading about bash scripting, but I also realize there’s a lot about programming at a higher level that I know nothing about.

    Linux @lemmy.ml
    harsh3466 @lemmy.ml

    Edit: it's CentOS 7 (original: CentOS 3 on a self checkout?!?)

    Am I crazy in thinking that the shop I was in that has CentOS 3 running their self checkouts should have a more up to date and currently supported OS? These are brand new self checkouts (the shop has had them for about a year now, but you get my point.)

    It’s a genuine question. Am I wrong in thinking that using this OS on a self checkout is a terrible idea? (FWIW this shop is an international retailer)

    I have no stake in the shop or anything. I just happened to be there when they had to reboot a self checkout and I noticed the OS version as I was going by.

    Linux @lemmy.ml
    harsh3466 @lemmy.ml

    Requesting Help with txg_sync Error I Can't Diagnose

    First, before this rather large infodump, I want to thank anyone that takes the time to read through this to offer any information or advice on trying to resolve this issue.

    Here’s the issue I’ve been struggling with.

    I keep getting this error on my server:

     undefined
        
    INFO: task txg_sync:1615 blocked for more than 241 seconds.
    Tainted: P           O      5.15.0-112-generic #122-Ubuntu
    
      

    Background:

    I’ve got a homeserver running Ubuntu server 22.04 (no DE) with an Intel Core i7-6700K CPU @ 4.00GHz, 32GB RAM, and two ZFS pools. The OS is installed on its own 128GB SSD, and the two ZFS pools consist of a 128GB SSD in its own pool for the server’s cache, and a 4x8TB HDD RAIDZ1 pool that is my main data/server storage (much more detailed system info below).

    I have a bunch of services running in Docker containers, and overall everything is great, except for when that error rears up.

    The error seems random, but occurs most reliably, but not consistently, when I’m trying to write larger

    Linux @lemmy.ml
    harsh3466 @lemmy.ml

    Kicked macOS to the Curb and Installed Asahi Fedora Gnome

    Most of the switching posts are from frustrated windows users making the jump. I’m already a Linux user on my server (Ubuntu for now, going Debian at some point) and a 2014 iMac for tinkering/testing (KDE Neon), and a couple of raspberry pis (raspberry pi os headless) but our main household computer is an M1 Mac mini that my wife and I both use.

    Lately I’ve been super frustrated with macOS.

    • First, macOS just refuses to mount my USB 3 drives. I have a 1T seagate ssd and a 3T WD hdd (both exFat) and it just flat out refuses to see them. The same drives are visible and mount just fine on my server and the KDE iMac. On macOS, they’re invisible. They don’t auto mount, and they don’t show up in disk utility (gui or shell), which is really fucking annoying when I’m trying to move large files between machines
    • I use Cryptomator to encrypt data on macOS, and because of their whole walled garden shtick and how they continue to lock out system extensions, macfuse routinely breaks,
    FoodPorn @lemmy.world
    harsh3466 @lemmy.ml

    Spiced Lamb Taco on Fresh Naan

    Made delicious Moroccan spiced lamb tacos in fresh naan with:

    • onions pickled in apple cider vinegar, white vinegar, lemon juice and a touch of honey
    • thinly sliced cabbage
    • fresh made tzatziki (made this morning so the flavors could marinate)
    • tomatoes roasted with garlic, onion, salt, pepper, and oregano

    UPDATE: Recipes and instructions!

    These are not all original recipes, but most of them are modified, so I've included the recipes as I made them, but also links to the original recipe source.

    Bread

    Naan (source) (Naan can be made ahead. I made mine fresh before prepping the meat)

    Ingredients:

    • 1 teaspoon sugar
    • 1/2 cup warm water
    • 1/4 oz. active dry yeast (2 1/4 teaspoons)
    • 2 1/4 cups all-purpose flour
    • 1/2 cup plain yogurt (I use whole milk greek)
    • 1/2 teaspoon salt
    • 1 Tablespoon garlic powder (approximate. I didn't measure, just dumped some in)
    • 1 Tablespoon onion powder (approximate. I d
    FoodPorn @lemmy.world
    harsh3466 @lemmy.ml

    Chicken Gyros

    Made chicken gyros today, made the chicken, tzatziki sauce, and the pita bread. It all tasted fantastic.

    cats @lemmy.world
    harsh3466 @lemmy.ml

    My boy Brewster lounging

    cats @lemmy.world
    harsh3466 @lemmy.ml

    Our very dramatic girl GG in her floofy bed.

    FoodPorn @lemmy.world
    harsh3466 @lemmy.ml

    Made pita bread and then took the pita bread and made pita chips!

    FoodPorn @lemmy.world
    harsh3466 @lemmy.ml

    Pineapple Coconut Curry and Fresh Naan

    Made pineapple coconut curry over roasted cauliflower and a fresh batch of naan. Delicious.

    Linux @lemmy.ml
    harsh3466 @lemmy.ml

    What I Learned Using Linux This Week (05)

    Not as much time to tinker this week, but I still had some fun and learned some things!

    How to run a memory test using memtest86+

    My error message is back, which means my nuke and pave approach didn’t solve the problem. So, yay to having a record of the error message?

    Here’s the error:

     undefined
        
    echo 0 > / proc/sys/kernel/hung_task_timeout_secs" disables this message.
    INFO: task txg_sync: 3557 blocked for more than 241 seconds.
    Tainted: P 0 5.15.0-94-generic #104-Ubuntu
    
      

    I decided to do a little more searching and found that the txg_sync is a zfs task. I know zfs uses a lot of RAM as part of it’s processing. As a result/starting point, I decided to do a memory test to see if I messed up any of my RAM modules when I knocked the shit out of my server.

    Running a memory test was really easy. I downloaded the latest memtest86+ ISO, used balena etcher to flash it to a usb stick, booted from that stick, and let the test run.

    I let it run for two full passes and got no errors.

    So

    Linux @lemmy.ml
    harsh3466 @lemmy.ml

    What I Learned Using Linux This Week (04)

    Edit: I've made an account here on lemmy.ml as I routinely can't comment or post from my account on lemmy.world.

    Bit of a week! As usual, had a lot of fun tinkering. Here’s my takeaways from this past week(ish).

    I finally learned how to set up a cron job with elevated privileges

    This is something I've had on my , "I should really get this figured out" list for about two years now, but instead have been inconsistently typing my rsync commands (Since I've also been too lazy to set up the aliases for these commands).

    I spent a couple of days rebuilding my server from the OS up (for reasons which I will explain momentarily), and since I'm up on a fresh OS with all my containers and services up and running, I figured it was time I figure out this cron job thing.

    The approach I took was to write a simple bash script for my backup. The script is four lines. Three of which are sudo rsync ..., and the last of which is a curl -d ... command.

    The rsync commands are to incr