soc.octade.net is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.

This server runs the snac software and there is no automatic sign-up process.

Admin email
social@octade.net

Search results for tag #bash

[?]R.L. Dane :Debian: :OpenBSD: :FreeBSD: 🍵 :MiraLovesYou: [he/him/my good fellow] » 🌐
@rl_dane@polymaths.social

I feel a madness slowly creeping into my mind, and it whispers to me,

"Write your own version of the #ed editor in #bash, just for giggles."

NOOOO!! I WILL NOT!!

THERE ARE FOUR LIGHTS!
THERE ARE FOUR LIGHTS!
THERE ARE FOUR LIGHTS!

:BlobCatBlankieScared:

    [?]R.L. Dane :Debian: :OpenBSD: :FreeBSD: 🍵 :MiraLovesYou: [he/him/my good fellow] » 🌐
    @rl_dane@polymaths.social

    In the #shell #functions I should have written years ago category...

    function fedilinktousername {
        grep -oE 'https?://[^/]+/@[^/ ]+' |sed -E 's|https?://|@|; s|/@|@|; s/(@[^@]*)(@[^@]*)/\2\1/'
    }
    
    function fediusernametolink {
        grep -oE '(@[^@ ]+){2}' |sed -E 's|(@[^@ ]+)@([^@ ]+)|https://\2/\1|'
    }
    
    rld@Intrepid:~$ clipo
    https://polymaths.social/@rl_dane/statuses/01KVJCAG6Y4C1KTGBDBECH2778
    rld@Intrepid:~$ clipo |fedilinktousername 
    @rl_dane@polymaths.social
    rld@Intrepid:~$ clipo |fedilinktousername |fediusernametolink 
    https://polymaths.social/@rl_dane
    rld@Intrepid:~$ 
    

    #UnixShell #ShellScripting #Unix #bash #ksh

      [?]hgrsd » 🌐
      @hgrsd@hachyderm.io

      Are you a coder and user?

      I've been trying to steer clear from LSPs when developing Zig and wanting to use ctags instead. But there are two issues with this:

      1) ctags doesn't natively support Zig symbols; and
      2) I miss being able to go-to-definition for Zig builtin functions and the std lib

      codeberg.org/hgrsd/ztags is a simple tool (in bash) that solves this.

      It bundles a Zig ctags grammar and automatically fetches the Zig source, generates tags for it, and then appends it to your project's tags so you can navigate freely between your project's symbols and Zig's stdlib code.

      Hope this might be useful for some other Zig devs too. Please boost if you'd like, so that they might see it :)

        [?]Dendrobatus Azureus » 🌐
        @dendrobatus_azureus@polymaths.social

        You and me both my internet friend; I've built quite a few interesting sites using pure HTML which have run for years with very little maintenance, due to their almost static nature

        @rl_dane

        #Firefox #CPU #usage #Dillo #HTML #pure #nostalgia #browser #light #sh #bash

          [?]Dendrobatus Azureus » 🌐
          @dendrobatus_azureus@polymaths.social

          The mistake you maybe making is that you consider Firefox to be a browser.

          Firefox has stopped being a browser decades ago

          A browser doesn't need hundreds and hundreds of Engineers to be maintained, a massive project with multiple use angles and cases does

          Firefox does so many (bad) things you can almost consider it a mini operating system

          A alpha level Operating System, riddled with security bugs

          It's always fantastic to be able to go somewhere in dillo and just have fun, amazing yourself with a speed that pages load

          @rl_dane

          #Firefox #CPU #usage #Dillo #browser #light #sh #bash

            [?]R.L. Dane :Debian: :OpenBSD: :FreeBSD: 🍵 :MiraLovesYou: [he/him/my good fellow] » 🌐
            @rl_dane@polymaths.social

            Seriously, why didn't I put this in my ~/.bashrc like... YEARS ago? 😆

            year=$( date +%Y)
            month=$(date +%m)
            day=$(  date +%d)
            

            #Unix #UnixShell #shell #ShellScripting #bash #bashrc

              OCTADE boosted

              [?]Brian Monroe » 🌐
              @paradoxguitarist@mastodon.online

              So I DO love me some python, but I just want to say that is awesome.

              I had no idea this was a thing:

              echo "${variable/$inTheString/$replacesIt}"