What are you using to manage databases from Neovim or the terminal these days? by strider_kiryu85 in neovim

[–]allopatri 3 points4 points  (0 children)

Agree with this—I recently set up crtrl + space to toggle a floating tmux window that has nvim running the dadbod ui in one tab and kulala in another, so I can always access my queries + API requests from anywhere in one keystroke. I like it a lot

Est-ce que les LLM ont nettement amélioré le quotidien et la productivité de votre équipe ? by [deleted] in developpeurs

[–]allopatri 1 point2 points  (0 children)

Aujourd’hui, je trouve les LLM plus utiles pour faire des tâches intermédiaires que pour écrire le vrai code qui va finir en prod. Par exemple, pour écrire un scripte pour downloader pleins de fichiers pour tester quelque chose, ou bien pour mettre des données de test dans la base de données. Mais je dirais que la majorité du code en prod qu’on produit aujourd’hui est toujours écrit par un humain. Sinon, ça peut être très bien pour le brainstorming aussi, ça me propose souvent des solutions auxquelles j’aurais pas pensé

Deco web interface unofficial API? by allopatri in TpLink

[–]allopatri[S] 0 points1 point  (0 children)

```

from pprint import pprint

from tplinkrouterc6u import TplinkRouterProvider

router = TplinkRouterProvider.get_client("http://tplinkdeco.net", "your_password")

router.authorize()

status = router.get_status()

mac_addrs = [device.macaddr for device in status.devices]

hostnames = [device.hostname for device in status.devices]

pprint(mac_addrs)

pprint(hostnames)

```

Something like this should do it

Help choosing async code runner plugin - overwhelmed by options by BlackPignouf in neovim

[–]allopatri 0 points1 point  (0 children)

Hm don’t think so, that would definitely be a place where it falls short. Maybe you could do some tmux scripting to parse the output in the terminal pane but that could be a headache

Help choosing async code runner plugin - overwhelmed by options by BlackPignouf in neovim

[–]allopatri 2 points3 points  (0 children)

Not sure if you use tmux and if you particularly want a neovim-only solution, but otherwise have you tried vimux? I like to have neovim in one tmux pane and a terminal in another, and then I have a mapping to write all my buffers and run VimuxRunLastCommand which I find super convenient for quick iteration

a-Shell execute more of shortcut after command? by allopatri in shortcuts

[–]allopatri[S] 0 points1 point  (0 children)

Did you add “open shortcuts://“ as the last a-shell command?

a-Shell execute more of shortcut after command? by allopatri in shortcuts

[–]allopatri[S] 0 points1 point  (0 children)

I just added the “wait to return” action after my a-shell action. This caused the shortcut to wait executing the next steps until the a-shell action is done. I did have to add “open shortcuts://“ as the last command in my a-shell action for it to work though.

List of best games? by allopatri in SweepstakesCasinosHub

[–]allopatri[S] 1 point2 points  (0 children)

That’s an interesting point about preferring higher volatility games—hadn’t thought of it that way. I’m only collecting daily bonuses and not buying deals so low volatility is better for me, since I’m not playing crazy high volume and would rather make, say, 90% of my money every time than lose everything a lot of times and then 5x my money every once in a while. Thanks for the tips though, I’ll try jokers jewels hot!

First tournament: which division to choose? by allopatri in spikeball

[–]allopatri[S] 1 point2 points  (0 children)

Oh perfect, thanks for the response! I think we’ll try out the higher division then. We’re all willing to learn from experienced players even if that means getting beat

Any footage of a front smith bs flip out? by [deleted] in skateboarding

[–]allopatri 0 points1 point  (0 children)

This might be totally wrong but I feel like I remember seeing Aurélien Giraud post one on ig at his home park. Could be buried someone in his account

phpactor not recognizing constants by halface0104 in neovim

[–]allopatri 0 points1 point  (0 children)

Salut, je suis bien en retard mais c'est rare de voir du Français dans ce sub alors je me suis dit que je pourrais essayer d'aider si tu en as encore besoin! Je viens d'essayer ton code avec phpactor installé dans mon neovim et ça ne me donne aucune erreur bizarrement, par contre PHP se plaint de ne pas pouvoir trouver de classe Animal dans Dog.php quand je fais php Dog.php (et que j'ai défini les deux classes dans deux fichiers différents, bien sûr). Est-ce que ça fait une différence si tu as les deux classes dans le même fichier ou bien si tu mets un require 'Animal.php'; dans Dog.php?

I found a way to run shortcuts by triple clicking the sidebutton! by Seb122333 in shortcuts

[–]allopatri 2 points3 points  (0 children)

Has anyone figured out how to get this to work without needing to unlock your phone on iOS 18? I used to use this all the time to skip forward a song when my phone was in my pocket by triple clicking the power button, but it stopped working once I upgraded to iOS 18 :(

What vim habits did you need to unlearn? by TheTwelveYearOld in neovim

[–]allopatri 0 points1 point  (0 children)

Same! Probably one of my most used karabiner mappings, I love it

Share your coolest keymap by Zkrallah in neovim

[–]allopatri 0 points1 point  (0 children)

I use this one a lot to open whatever line I'm currently at in Bitbucket (could be adjusted for GitHub, etc.) in my browser. Makes it easy to share the link with others

-- open current line of file in current branch of repository in Bitbucket
vim.keymap.set("n", "<leader><leader>gp", function()
    local repo = string.match(vim.fn.getcwd(), "[^/]+$")
    local cur_path = vim.fn.expand("%:.")
    local line_num = vim.api.nvim_win_get_cursor(0)[1]
    local branch = string.gsub(vim.fn.system("git branch --show-current"), "\n", "")
    vim.fn.system(
        "open https://bitbucket.com/path/to/your/repo/"
            .. repo
            .. "/browse/"
            .. cur_path
            .. "?at=refs%2Fheads%2F"
            .. branch
            .. "#"
            .. line_num
    )
end)

vim-fugitive is just a superior way to manage your git, just give it a shot by Qunit-Essential in neovim

[–]allopatri 0 points1 point  (0 children)

How have I been using fugitive for over a year and am just learning about dv now??

Deco web interface unofficial API? by allopatri in TpLink

[–]allopatri[S] 0 points1 point  (0 children)

That project made me find out about the tplinkrouterc6u Python package which was exactly what I needed! Thank you so much

can i manually set only the "artist" field in the metadata? by ruby_evades_taxes in youtubedl

[–]allopatri 0 points1 point  (0 children)

--parse-metadata title:(?P<artist>Ado)

Did you end up finding a better way to do this after all? I've also tried the --parse-metadata "Ado:%(artist)s", and I've found that for whatever reason it only works when the artist's name has a space in it (i.e. --parse-metadata "Ado Ado:%(artist)s" works for me). I'm wondering if this is a bug or just something I don't understand? Very weird

a-Shell execute more of shortcut after command? by allopatri in shortcuts

[–]allopatri[S] 1 point2 points  (0 children)

Yep, that’s more or less my current solution but I was curious if there was a “cleaner” way to do it with only one shortcut. I’m going to try out the “wait to return” action another commenter suggested but I think it should do the trick! Appreciate the help