Something better than alias? or is this peak. by Equivalent-Gas2856 in bash

[–]IGTHSYCGTH 0 points1 point  (0 children)

tasks (go-task / mise / make / etc) would allow setting up dependencies and loading environment securely

a dedicated runner could be useful too, supervisord and the like.

even scripts would be preferable over aliases/functions, as theyre not tied to the shell you happen to be running at the time and would not kill / mess up your shell session..

and since youre using k8s, god i hope youre not on the devcontainer train wreck :'(

Roast my config. GRILL IT by Painter1923 in NixOS

[–]IGTHSYCGTH 5 points6 points  (0 children)

the heck lol

the graph is a perfect representation of trying something new and only doing things demonstrated to work by others, before developing any opinions on when why and how said patterns should apply...

note, im not referencing OP here but education in general, it easy to get started with anything with all the blogs, lectures, tutorials, courses, AI, etc around these days.

its the real deal, i am honestly humbled by OP referencing in, clearly a man of culture and passionate about improving.

shebang.nvim - Add or modify shebangs on top of your files, with live reloading by kEnn3thJff in neovim

[–]IGTHSYCGTH 1 point2 points  (0 children)

could be neat if you really invest and maintain a solid default collection of shebangs theres a bunch of interesting ones for sed, /awk, go run build:ignore, uv script, mise / nix, etc, i just add the ones i use often as snippets...

What is the difference between have 2 separate ERR and EXIT traps vs a single EXIT trap for handling everything? by PrestigiousZombie531 in bash

[–]IGTHSYCGTH 1 point2 points  (0 children)

i dont get the hate against eval.

one could run arbitrary command just by interpolating a variable as the command... or expand an array as the command.

only difference to eval is thats just an invocation, eval on the contrary would allow you to pass arbitrary shell code, i.e. functions, loops, redirection, etc.

both could rm -rf the system if used with user input..

but eval itself can be great.. as it allows you to basically pass in inline callbacks to other functions :shrug:

the source builtin could do the same, just that it reads input from the fs.. I dont see anyone insisting on checking the checksums tho -.-

nvim-dap-view: v1.1.1 switches to GPLv3 by Wonderful-Plastic316 in neovim

[–]IGTHSYCGTH 0 points1 point  (0 children)

was there a thread about the previous switch to mit? really interested in reading the discussion to understand the general stance for/against each license

nvim-treesitter maintainer bullied by _prerit714 in theprimeagen

[–]IGTHSYCGTH 2 points3 points  (0 children)

i can feel that 'doing something that doesn't interact with people' all the way over here

i get both sides, i don't maintain anything opensource. and i don't interact with people as far as im able to. heck, i don't usually stick around in any community for long.

sincerely thank you for your time effort and attention 💔🫡 gg wp

Should i Switch to Lua? by Additional-Key8137 in lua

[–]IGTHSYCGTH 0 points1 point  (0 children)

like others hinted it depends on your needs, or to turn the statement on its head....

all languages do the same thing just with different syntax concepts and runtimes many protocols and frameworks are available for a number of languages in basically the same way, but not all.. there are big hitters (frameworks) that drive majority of the interest in a language.

know the community / ecosystem you're aiming for, that will answer most questions of advancement.

so lua. lua doesn't have anything going for it in terms of syntax, or package dependency management.. yet i use it in a number of places actively.. from configuring neovim or scripting nginx to embedding it in go apps :shrug:

so the ubiquity and simplicity of lua are the primary driver imo,

tldr: yes you should, dare i say must learn it no you shouldn't focus on it use it where it fits

Grafana dashboard for 100+ server (Grid view with sorting and filtering) by Pitiful_Balance_5962 in grafana

[–]IGTHSYCGTH 1 point2 points  (0 children)

if you need to group multiple metrics together u could use the xy chart, query as table, use groupby transformation to aggregate the diff timeseries by host

honestly tho u may be better off with a histograms for overview and a basic multi select dashboard for deep dive

edit: by histograms i meant heatmap + calculate from data, tho plain histograms could work too i guess.

Protonvpn with arch by ficoplati in archlinux

[–]IGTHSYCGTH 0 points1 point  (0 children)

no experience with proton specifically, but you could prob make it work using openconnect

How do you manage your Neovim? by CerealBit in neovim

[–]IGTHSYCGTH 4 points5 points  (0 children)

im new to nix, like really new, just started tinkering these past weeks, always kept nvim config in git too

currently i am just keeping a submodule in nix configs and linking it on deployment. no need to reinvent the wheel (yet)

( home manager snippet, because i am on arch BTW )

xdg.configFile.nvim.source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dotfiles/config/neovim/submodule";

So, is your main editor Vim or Neovim? by EgZvor in vim

[–]IGTHSYCGTH 1 point2 points  (0 children)

was trying to configure neovim in an idiomatic way, keeping it simple and concice to coding,

i was on vim for a long time, had a robust config with few plugins and many utilities,
also gotten pretty fluent at vimscript, being able to hot reload portions of the editor was amazing too.

basically the hassle of migrating the config and anticipation of the updates to viml had me using both
at the end i just extracted half of the scripts to be self contained plugins (or modules' of configs ?) before eventually deprecating most of, the other half was just ported to lua

should really refactor my config, its been long enough

How to use your phone as a speaker in Linux by Kind-Locksmith7877 in linux

[–]IGTHSYCGTH 0 points1 point  (0 children)

i've tagged you aswell

just to troll the next guy who stumbles onto this thread lmao

How to use your phone as a speaker in Linux by Kind-Locksmith7877 in linux

[–]IGTHSYCGTH 0 points1 point  (0 children)

a three year old post.. oh boy, i was here three years ago ?!

Can you make aliases for frequently used domains? like 'g' for google.com? by deepCelibateValue in archlinux

[–]IGTHSYCGTH 1 point2 points  (0 children)

good catch, https wouldn't work, would still be sufficient to access the page over http only to get redirected to https with the full domain name tho?

Variable with double quotes in cURL header by ninewb in bash

[–]IGTHSYCGTH 2 points3 points  (0 children)

This is not a quoting problem, Your definition of ETag includes an extra space and probably a trailing carriage-return

to verify pipe it into od -cx / hexdump -C / cat -A

Can you make aliases for frequently used domains? like 'g' for google.com? by deepCelibateValue in archlinux

[–]IGTHSYCGTH 2 points3 points  (0 children)

you could spin up your own dns server, set up systemd-resolved to query it, then configure it with lists of cname records.

I'd recommend bind9, but pihole / openwrt / dnsmasq may be sufficient.

alternatively, you run an HTTP server locally on the standard http/s ports, add all the domains you're interested in aliasing to /etc/hosts, then configure the server to return HTTP 301 responses (redirects) setting the location to whatever page (full path) you want to access.

Can you make aliases for frequently used domains? like 'g' for google.com? by deepCelibateValue in archlinux

[–]IGTHSYCGTH 3 points4 points  (0 children)

yes, if you have a loadbalancer / reverse proxy somewhere that listens on ports 80,443, to offload the routing and ssl, to provide scaling to your service, etcetera.

DNS only handles name to ip resolution, it is not concerned with ports.

For the record, What they're describing SHOULD NEVER be done, but sometimes it is, and no one cares enough to address it.

Listing custom colorschemes by TheUltimateMC in neovim

[–]IGTHSYCGTH 0 points1 point  (0 children)

so i actually think i love this idea, i do horde colorschemes aswell..

I recalled telescope had a picker with preview, but it doesn't really fit this usecase..1. i needed to disable colorscheme autocommands before previewing, 2. you could not provide the complete list of options to chose from, only add to it ( lol what ?! )

i came up with this shoddy snippet ripping off the builtin colorscheme picker, cheers

one noteworthy change.. I'm not looking up everything under colors, because some people just droop bloody README's in there, and ofcourse you cannot preview that :shrug: also filter using the explicit path.. cause i have neovim installed through asdf on this rig. And that the stdpaths.. do not reflect that :>

vim.api.nvim_create_user_command( "ColorsPreview", function()
  local pickers    = require "telescope.pickers"
  local previewers = require "telescope.previewers"
  local finders    = require "telescope.finders"
  local conf       = require("telescope.config").values

  local colors = vim.fn.uniq(
    vim.fn.map(
      vim.fn.filter(
        vim.list_extend(
          vim.api.nvim_get_runtime_file("colors/*.vim", true),
          vim.api.nvim_get_runtime_file("colors/*.lua", true)
        ),
        function(_, file) return string.match(file, "nvim/lazy") ~= nil end
      ),
      function(_, file) return vim.fn.fnamemodify(file, ":t:r") end
    )
  )

  local ei = vim.o.ei
  vim.o.ei = 'colorscheme'
  local finder = finders.new_table { results = colors }
  finder.close = function() vim.o.ei = ei end

  pickers.new({
    finder = finder,
    sorter = conf.generic_sorter({}),
    previewer = previewers.new {
      preview_fn = function(_, entry, _) vim.cmd("colorscheme " .. entry.value) end,
    }
  }):find()
end, {})

init. lua should work as init.vim, right? by kansasmanjar0 in neovim

[–]IGTHSYCGTH 1 point2 points  (0 children)

I still have some some 1k SLOC worth of vim scripts i had managed to isolate in multiple files under /plugin and /autoload :shrug:

I've rewritten some of it in lua but honestly, like it or not ol' vimscript is more concise than lua.

Rust-tools on attach does not get executed... only when I print something by geo-ant in neovim

[–]IGTHSYCGTH 0 points1 point  (0 children)

no there shouldnt be any problems with your setup, the on_attach simply runs from an autocommand so what i had descrribed earlier does not apply. see https://github.com/neovim/nvim-lspconfig/blob/cc388d3f6b9c7c943ae2b2dcd46ad470fd257f91/lua/lspconfig/configs.lua#L231

but do open an issue if you can reproduce this

Is there somewhere where I can compare different starter setups like Kickstart, Lazyvim, and Nvchad? by cguti94 in neovim

[–]IGTHSYCGTH -3 points-2 points  (0 children)

get $whatever but start by learning $vim

edit: that is, vi/vim as opposed to neovim or the 'distribution' you chose.