selfhosted Selfhosted Has anyone else ever seen an SSH key/fingerprint thing string together an actual word? Or how about a curse word? XD
Jump
  • gamma gamma 12 hours ago 100%

    I know that "Vanity Addresses" are a common thing for onion sites, and there are tools which generate tons of keys looking for prefixes. I haven't seen such a tool for ssh host keys though.

    8
  • linux Linux Whats your go-to naming convention?
    Jump
  • gamma gamma 3 weeks ago 100%

    I put newlines in my filenames to break both CLI tools and Windows filesystems

    8
  • linux Linux The Open Source Computer Science Degree
    Jump
  • gamma gamma 1 month ago 100%

    Taking courses which involve subjects that you will likely never encounter in the workforce is a thing in every discipline. Most engineers don't need to manually solve differential equations in their day jobs, they just need to know that they exist and will often require numerical solutions.

    Getting your hands dirty with the content provides a better understanding when dealing with higher level concepts.

    7
  • linux Linux Anyone knows if it's possible to color command line commands as you type them (kind of like an editor)?
    Jump
  • gamma gamma 2 months ago 100%

    zsh-syntax-highlighting

    There's also a fork called fast-syntax-highlighting, I use it.

    9
  • gamma gamma 2 months ago 100%

    manually call the others

    Yeah, most distros will set up source chains to make things nicer for users.

    4
  • gamma gamma 2 months ago 66%

    Yeah, I'd write this as a single update script with options to update vimplugins or update pkg or update all.

    I see that you want it to be a function so you can get the chdir as a side effect, but mixing that with updating doesn't make sense to me.

    1
  • gamma gamma 2 months ago 93%

    When in doubt, ~/.zshrc. It's the right choice 99% of the time. Otherwise, there's a chance you fuck up scripts you've installed which assume no shell options have been changed in non-interactive contexts.

    13
  • gamma gamma 2 months ago 100%

    What kind of functions do you write which you share between your scripts? Generally if I'm wanting to reuse a non-trivial function, I extend the functionality of the first script instead.

    2
  • gamma gamma 2 months ago 100%

    Select the color which matches the steps before filenames ((non-)login and (non-)interactive), then follow that arrow the rest of the way. There's more colors in Bash because Bash makes a distinction between remote and local shells.

    Another way to look at the same data for Zsh (note: $ZDOTDIR will be used instead of $HOME if it's defined at any step along the way):

    File neither interactive login both
    /etc/zshenv x x x x
    ${ZDOTDIR:-$HOME}/.zshenv x x x x
    ${ZDOTDIR:-$HOME}/.zprofile x x
    ${ZDOTDIR:-$HOME}/.zshrc x x
    ${ZDOTDIR:-$HOME}/.zlogin x x
    ${ZDOTDIR:-$HOME}/.zlogout x x

    One confusion on the Bash side of the diagram is that you see branching paths into ~/.profile, ~/.bash_profile and ~/.bash_login. Bash will use for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and execute only the first one that exists and is readable.

    11
  • linux Linux New Release Audacity 3.6
    Jump
  • gamma gamma 2 months ago 100%

    Optional crash reporting was merged. Most of the backlash in the PR is about the significant dependencies (Google's BreakPad) which were pulled in with it.

    However, by default Audacity isn't built with it, you need to specify a CMake with the URL to send data to. No distros that I know of enable reporting.

    14
  • news Linux and Tech News RegreSSHion: Remote Code Execution Vulnerability In OpenSSH Server
    Jump
  • gamma gamma 3 months ago 100%

    Just make sure you read the news (restart sshd)

    2
  • linux Linux Is there an image viewer like nsxiv, but with native Wayland support?
    Jump
  • gamma gamma 3 months ago 100%

    Judging purely on the dependencies I see in pacman, nsxiv depends on imlib2, which pulls in a lot of libraries, while imv links to a subset of those libraries directly.

    4
  • programmer_humor Programmer Humor How big is your desk?
    Jump
  • gamma gamma 3 months ago 100%

    CSS is turing conplete.

    9
  • linux Linux Can I remove a git repo without resorting to `rm -rf` ?
    Jump
  • gamma gamma 3 months ago 100%

    What about adding the flags last?

    rm deletethisrepo -rf
    
    1
  • programmer_humor Programmer Humor It's easier to remember the IPs of good DNSes, too.
    Jump
  • gamma gamma 3 months ago 100%

    You could still NAT between v6's though.

    1
  • anarchychess AnarchyChess how does this piece move?
    Jump
  • gamma gamma 3 months ago 100%

    Like a normal horsey, but the square it leaves behind remains on fire, destroying the next piece to land on it.

    Only the most recent square it was on remains on fire.

    15
  • shell Shell Scripting New 2024 POSIX Standards specify features for sh and standard shell utilities
    Jump
  • gamma gamma 3 months ago 100%

    IMO the NUL-delimited options are by far the biggest win for shell scripting. $' ' will be the most commonly used addition, but "$(printf '...')" was always an option before. You don't really have an alternative read -d ''.

    3
  • programming Programming POSIX.1-2024 has been published
    Jump
  • gamma gamma 3 months ago 100%
  • shell
    Shell Scripting gamma 3 months ago 92%
    New 2024 POSIX Standards specify features for sh and standard shell utilities https://ieeexplore.ieee.org/document/10555529

    The document itself is paywalled like all the POSIX specifications, so here are some highlights courtesy of [some comments at HackerNews](https://news.ycombinator.com/item?id=40679809), especially from [a-french-anon](https://news.ycombinator.com/item?id=40679809#40680535). * [`readlink` and `realpath`](https://austingroupbugs.net/view.php?id=1457) * [`find -print0`, `xargs -0` and `read -d`](https://austingroupbugs.net/view.php?id=243) * [`find -iname`](https://austingroupbugs.net/view.php?id=1031) * [`sed -E`](https://austingroupbugs.net/view.php?id=528) * [`set -o pipefail`](https://austingroupbugs.net/view.php?id=789) * [`$' '` strings](https://austingroupbugs.net/view.php?id=249)

    12
    1
    jerboa Jerboa Minor text rendering bug
    Jump
  • gamma gamma 3 months ago 100%

    Strange, I don't see this behavior on my device. Not sure what information would be relevant to debugging this though.

    3
  • steamdeck Steam Deck Do you play non-steam games?
    Jump
  • gamma gamma 4 months ago 100%

    A few from Itch, Parallel Launcher from Flatpak for SM64 hacks

    5
  • linux Linux XWayland 24.1 Released With Explicit Sync, Better Rootful Experience
    Jump
  • gamma gamma 4 months ago 100%

    It's probably the biggest deal for games running in xwayland

    3
  • programmerhumor Programmer Humor Finally something worse than “looking for 10yrs of SwiftUI experience”
    Jump
  • gamma gamma 4 months ago 81%

    That's a latrine. They're talking about a fancy light fixture.

    7
  • steamdeck Steam Deck I Upgraded The Steam Deck - 16GB vs 32GB of RAM.
    Jump
  • gamma gamma 5 months ago 100%

    Also, monetization

    4
  • linux Linux Switching to Wayland as a WM user
    Jump
  • gamma gamma 5 months ago 100%

    How is it compared to wofi?

    1
  • rpgmemes RPGMemes d6 base, d12, d8, d10, %ile, d20, d4.
    Jump
  • gamma gamma 5 months ago 100%

    If you say "a 10d10", I know what you mean, but "10d10" is definitely the sum of 10 10-sided dice.

    6
  • linux Linux Do you daily drive Wayland, if so since when, if not when will you?
    Jump
  • gamma gamma 6 months ago 100%

    More people should be like you.

    1
  • linux Linux Do you daily drive Wayland, if so since when, if not when will you?
    Jump
  • gamma gamma 6 months ago 100%

    Exact same. Sway's 1.0 release was March of 2019, and it did everything I needed.

    Even playing games on my desktop, Xwayland worked fine for me.

    4
  • programmer_humor Programmer Humor Touch a file in Linux
    Jump
  • gamma gamma 6 months ago 100%

    Nope. If you open a nonexistent path and you have permissions to write to that directory, then that file is created.

    36
  • linux Linux Niri release 0.1.3 - the horizontally scrolling tiling wayland WM
    Jump
  • gamma gamma 6 months ago 100%

    8GB memory + two Firefox profiles makes things difficult on my laptop.

    6
  • linux Linux Is there a downside to Flatpak?
    Jump
  • gamma gamma 7 months ago 100%

    Others have mentioned disk usage and desktop integration. There is some truth to them, but shared runtimes keeps disk uasge down (although worse than native apps). Desktop launchers now search /var/lib/flatpak/exports/share/applications by default, but I'm still having issues with themes in one or two niche apps.

    Trust is the big one. The benefit of your distro's packages is that they are maintained by a limited number of maintainers. Flatpaks have a much, much larger number of maintainers, which is where sandboxing comes in. Flathub now marks apps with lax permissions as "potentially unsafe", which is a huge step in communicating this to the average user.

    Most desktop apps can get away with having next to no access, as long as they support the appropriate XDG desktop portals.

    Ultimately, your mileage will vary, as there are many classes of application which are ill-suited to being sandboxed. Program launchers, programming languages, IDEs, file managers are a few.

    7
  • programmerhumor Programmer Humor What's stopping you from coding like this ?
    Jump
  • gamma gamma 7 months ago 100%

    Move the keyboard to the floor

    2
  • rpgmemes RPGMemes Different perspectives
    Jump
  • gamma gamma 7 months ago 100%

    I grew up with Fahrenheit, but switched my weather app to use Celsius for a while, and I've internalized it pretty well. It works fine. The "human experience" angle doesn't work anyway because that experience is very locale-dependent.

    12
  • shell
    Shell Scripting gamma 8 months ago 88%
    Release fish 3.7.0 (released January 1, 2024) github.com

    This release of fish includes a number of improvements over fish 3.6.4, detailed below. Although work continues on the porting of fish internals to the Rust programming language, that work is not included in this release. fish 3.7.0 and any future releases in the 3.7 series remain C++ programs. ## Notable improvements and fixes - Improvements to the history pager, including: - The history pager will now also attempt subsequence matches (#9476), so you can find a command line like `git log 3.6.1..Integration_3.7.0` by searching for gitInt. - Opening the history pager will now fill the search field with a search string if you’re already in a search (#10005). This makes it nicer to search something with `↑` and then later decide to switch to the full pager. - Closing the history pager with enter will now copy the search text to the commandline if there was no match, so you can continue editing the command you tried to find right away (#9934). - Performance improvements for command completions and globbing, where supported by the operating system, especially on slow filesystems such as NFS (#9891, #9931, #10032, #10052). - fish can now be configured to wait a specified amount of time for a multi-key sequence to be completed, instead of waiting indefinitely. For example, this makes binding `kj` to switching modes in vi mode possible. - The timeout can be set via the new `fish_sequence_key_delay_ms` variable (#7401), and may be set by default in future versions.

    7
    0
    anarchychess AnarchyChess How does this move make sense?
    Jump
  • gamma gamma 9 months ago 100%

    If you're looking for legitimate advice, you're in the wrong community. Anarchychess is for chess memes.

    That said, what my noob brain sees:

    • it attacks white's c pawn
    • it activates black's queen
    • it prevents Qa4+, allowing black to castle

    Edit: Qa4, not Qh4

    26
  • linux Linux What's your favorite music player on Linux?
    Jump
  • gamma gamma 9 months ago 100%

    I used to use Strawberry, but my collection has grown enough that I can't just sync it everywhere, so I use Jellyfin now. I still use Strawberry's library management to move files into album artist/album/00 - track.ext though. Someday I'll dig into id3v2 to just write a script instead.

    3
  • linux Linux New Linux user here. Is this really how I'm supposed to install apps on Linux?
    Jump
  • gamma gamma 9 months ago 100%

    You're deluded if you think that "everybody" let alone a large minority of people say that the Linux desktop is "good, perfect and polished".

    4
  • rpgmemes RPGMemes What everyone really wants this Christmas.
    Jump
  • gamma gamma 9 months ago 100%

    Our group did a two-part Microscope-like after a "season" of 14 sessions to wrap up a ton of loose ends and set up the next season. It was super satisfying to zoom in on only what the players wanted to see and resolve.

    Our first session of January is going to be another Microscope session too, we've got a giant pointcrawl to backtrack and see the fallout of our action or inaction.

    5
  • rpgmemes RPGMemes Monster Girls Hit Different
    Jump
  • gamma gamma 10 months ago 100%

    Its incredibly common to be thrown by this. Like many memes, the original incarnations were to be taken at face value, but then a layer of irony got applied, and the ironic/self-deprecating variant became the norm.

    2
  • linux Linux Just install EndeavorOS lol
    Jump
  • gamma gamma 10 months ago 100%

    If you use EndeavourOS, know that you shouldn't ask for support on the Arch forums, its a policy they have.

    2
  • steamdeck Steam Deck Introducing Steam Deck OLED - November 16
    Jump
  • gamma gamma 10 months ago 100%

    The upside of not changing the I/O is accessory compatibility.

    2
  • steamdeck Steam Deck Introducing Steam Deck OLED - November 16
    Jump
  • gamma gamma 10 months ago 100%

    Nope, confirmed different mobo.

    1
  • shell
    Shell Scripting gamma 1 year ago 97%
    After a multi-year hiatus, an org transfer with new admins and maintainers, jq 1.7 has been released! github.com

    Check out the newest version of everyone's favorite^[citation needed] command line json processing tool! Highlights include *significant* speed improvements (>10x on some of my workloads), new flags, new builtins, and a litany of bugfixes.

    36
    3
    shell
    Shell Scripting gamma 1 year ago 100%
    How do you shell expand your variables and why?

    x-post from !programming@programming.dev: https://programming.dev/post/2165136

    3
    4
    shell
    Shell Scripting gamma 1 year ago 100%
    What are the most inscrutable lines of $SHELL you've ever written?

    I'm sure some of you have absolute monstrosities of sigils (I know I do, in my .zshrc alone). Post them without context, and try and guess what other users's lines are. If you want to provide context or guess, use the markdown editor to spoiler-tag your guesses and explanations!

    27
    48
    shell
    Shell Scripting gamma 1 year ago 100%
    jq-shell: Functions for bringing json structures useful to shell github.com

    This came out of playing around with `curl` and the Lemmy API. I wanted a repeatable way to declare a bunch of shell parameters from a json object, so I wrote a `jq` module! Take a look at the README for examples, or once you install, run ```shell source <( curl 'https://programming.dev/api/v3/community?id=267' | jq -r 'import "shell" as shell; .community_view | shell::param' ) ``` Currently this project only provides a `param` function, and only supports Bash and Zsh. If I think of other useful helper functions, I may add them to the project. This uses `_` as a default prefix for each parameter. This is so things like `{"PATH": "..."}` generate `typeset _PATH='...'` and don't mangle your $PATH, for example. The prefix can be customized by passing in a string: `param("mypfx")`. Before declaring a `1.0`, I'm planning on expanding shell support, and have the function determine how to output using the the `$SHELL` parameter: ```fish # This does not work (yet!) eval (curl $URL | jq -r ' import "shell" as shell; "fish" as $SHELL | .community_view | param ') ``` Always up for feedback!

    9
    0
    shell
    Shell Scripting gamma 1 year ago 100%
    [ysh] (2/3) Sketches of YSH Features https://www.oilshell.org/blog/2023/06/ysh-sketches.html

    YSH, or the shell formally known as oil, is touted as a possible upgrade path from Bash. This is the first in a three-part series of posts re-introducing the language. 1. [Reviewing YSH](https://programming.dev/post/21093) 2. Sketches of YSH Features *(you are here)* 3. YSH, Narrow Waists, and Perlis-Thompson Problems *(Not yet released)*

    7
    0
    shell
    Shell Scripting gamma 1 year ago 100%
    [ysh] (1/3) Reviewing YSH https://www.oilshell.org/blog/2023/06/ysh-review.html

    YSH, or the shell formally known as oil, is touted as a possible upgrade path from Bash. This is the first in a three-part series of posts re-introducing the language. 1. Reviewing YSH *(you are here)* 2. [Sketches of YSH Features](https://programming.dev/post/21130) 3. YSH, Narrow Waists, and Perlis-Thompson Problems *(Not yet released)*

    5
    7
    shell
    Shell Scripting gamma 1 year ago 100%
    Tracing is your friend!

    A huge part of programming in general is learning how to troubleshoot something, not just having someone else fix it for you. One of the basic ways to do that is by [tracing](https://en.wikipedia.org/wiki/Tracing_(software)). Not only can this help you figure out what your script is doing and how it's doing it, but in the event that you need help from another person, posting the output can be beneficial to the person attempting to help. (If your shell isn't listed and you know how to enable tracing, comment below and I'll add it to the table!) Shell | How to enable tracing ---|--- Bash | `set -x` or `set -o xtrace` Fish | `set fish_trace on` sh | `set -x` Zsh | `set -x` or `setopt xtrace` Also, writing scripts in an IDE that supports your language. syntax highlighting can immediately tell you that you're doing something wrong. If an IDE isn't an option and you're using Bash or Sh, you can paste your script into https://www.shellcheck.net/ (Inspired by [this post on /r/bash](https://old.reddit.com/r/bash/comments/xcejrb/set_x_is_your_friend/))

    18
    7
    shell
    Shell Scripting gamma 1 year ago 100%
    Here's a sed tutorial I wrote a few years ago xpmo.gitlab.io

    Feedback is still welcome, either here or as Merge Requests to my [Gitlab Pages repo](https://gitlab.com/xPMo/xpmo.gitlab.io).

    16
    3