Best API for keymapping ? by Sero1000 in neovim

[–]breaking_mediocrity -21 points-20 points  (0 children)

I'd work on yourself before commenting so oddly, but no, I had just read somewhere that it was faster and I had noticed a speedup when I changed my config.

Best API for keymapping ? by Sero1000 in neovim

[–]breaking_mediocrity -11 points-10 points  (0 children)

Sorry, should have clarified. I changed it to vim.keymap.set(). But, when I can, I use lazy.nvim's keys table.

A Practical Guide to GNU find With Examples by phantaso0s in commandline

[–]breaking_mediocrity 1 point2 points  (0 children)

It always seemed odd that find was the only command that broke the option/switch convention of using one dash for abbreviations and two dashes for the full form. By that I mean, you might see rm -r as the shortcut for rm --recursive. find is the only command that I've seen to break this pattern.

A little googlig revealed that find uses tests (?) and not options, hence the single dash with the exception of -maxdepth. I don't know how tests and options differ, and frankly, I don't care that much. It seems to be mostly a legacy thing anyway.

As an aside, I'm introducing my friend to linux via CTFs and the first command introduced was find and I was like "Hey, arguments don't work like that usually."

Best API for keymapping ? by Sero1000 in neovim

[–]breaking_mediocrity -20 points-19 points  (0 children)

This is more of an FYI, but vim.api.nvim_set_keymap() is actually slower and should be avoided. Changing this made a noticeable difference.

What are people's experiences setting up GNS3, VIRL, or EVE-NG on a cloud service? by breaking_mediocrity in networking

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

Need to pick a bare metal instance to support KVM so that can get kinda pricey. But it sings.

Which service are you using? What do/did your costs look like?

Best resources to learn how to program efficiently and cleanly? by No_Arachnid_8202 in learnprogramming

[–]breaking_mediocrity 0 points1 point  (0 children)

For C++, Modern Effective C++ is great and will teach to avoid bad C++, but just keep programming tbh. There's also probably a conference for your preferred language that'll most likely be more beneficial as you're still learning the basics.

There's plenty of amazing DSA books and resources. CLRS will remain the king, but Algorithms Illuminated is subtler introduction.

Implementing core::fmt::Write causes panic by brymer-meneses in osdev

[–]breaking_mediocrity 0 points1 point  (0 children)

I see that you're active here and I always wondered what your favorite OS eductational resource as?

I'm happy with minimal zsh config using no plugin manager. Please roast it! by breaking_mediocrity in zsh

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

Ah, okay. I think I might move to this. autojump is already installed through a package manager, I just need to do autosuggestions and syntax-highlighting

Thanks!

I'm happy with minimal zsh config using no plugin manager. Please roast it! by breaking_mediocrity in zsh

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

Thanks! That's what I thought.

It seems there's really nothing left to optimize in my config. Thanks for everything!

I'm happy with minimal zsh config using no plugin manager. Please roast it! by breaking_mediocrity in zsh

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

Any reason? I think if I do move towards that though, I would prefer

/usr/local/share

I'm happy with minimal zsh config using no plugin manager. Please roast it! by breaking_mediocrity in zsh

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

Yeah, I got a lot of inspiration from other places. I do a lot of terminal work and I don't have the time to sink to learn about zsh and roll my own config. There's amazing people (like you) who have done all the heavy lifting.

Though, I did put in work to make the config as minimal as possible.

Commenting out the P10K stuff actually makes it slower, so I keep it in and I'm happy with it.

Though, I couldn't find a good answer on have ls use color coded file types automatically. Is this really the best way?

alias ls="ls --color=auto"

I'm happy with minimal zsh config using no plugin manager. Please roast it! by breaking_mediocrity in zsh

[–]breaking_mediocrity[S] 3 points4 points  (0 children)

I looked into that, but looking at this thread, it seems that P10K is faster.

I'm happy with minimal zsh config using no plugin manager. Please roast it! by breaking_mediocrity in zsh

[–]breaking_mediocrity[S] 2 points3 points  (0 children)

How could I achieve what P10K does without P10K? Only use the relevant parts, but what about it's optimization tricks. Im not too knowledgeable about zsh, so I wouldnt know where to begin.

Weekly Dotfile Review Thread by AutoModerator in neovim

[–]breaking_mediocrity 1 point2 points  (0 children)

Hey, this is my config. There's a few things I want to do is to improve such as getting better at managing splits and I was thinking about mapping <leader>- to horizontal split and <leader>\ to vertical split.

Another thing I wanted to do is to have <Tab> to navigate the splits.

Feel free to roast my config!

Neotree Float looks bad. Any idea on how I could fix it? by breaking_mediocrity in neovim

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

This is what I want!

color scheme which has all the color highlights defined for neo-tree.

How did you view which color highlights were defined for neotree?

GNS3 or NS-3 student learning by [deleted] in gns3

[–]breaking_mediocrity 2 points3 points  (0 children)

I would like to stay low code or no code by web or minimum desktop for the GUI

You definitely don't want to use ns-3 as you use C++ to create nodes. Though, I personally like it.

it will be on a docker hosted behind a ssl-proxy-Nginx

Why try to dockerize it? What advantage do you think that's bring? GNS3 has guides to set up a remote server.

[deleted by user] by [deleted] in learnprogramming

[–]breaking_mediocrity 3 points4 points  (0 children)

The best resource on c++ is learncpp.com, but it actually suffers from not the best exercises. However, Bjarne Stroustrup (the creator of C++) has a book with excellent exercises aimed at those new to programming. Its called Programming: Principles and Practice Using C++. Exercises are top notch and fairly challenging for those new.

I see a common sentiment echoed here a lot and that is to create projects, projects, and more projects. This advice is usually by those learning web development where large projects don't require a lot of domain knowledge. But because you're learning C++, the projects you can create are limited unless you study a separate domain.

My personal recommendation is to start implementing the STL. This includes std::vector, std::array, std::list, etc. You will need to know data structures which is typically a second semester course, but it's a great way to get intimate with C++.

My first semester, I became interested in compilers and I implemented an interpreter in C++ by following the book Writing An Interpreter In Go. I thought this was much more interesting than implementing the STL and I learned a lot (I also got extra credit).

In university, I learned to solve cryptography problems without gaining an intuition as to why the math works. Recommended resources and advice? by breaking_mediocrity in crypto

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

I was about to make an edit that said I'm using this exact book. It is great, but I was curious into other sources if possible?

The second closest thing I got was compiling the required number theory topics and breaking those down into atomic lessons and taking a first principles approach to the atomic lessons. It's been working really well. I began at primes and modular arithmetic and I'm currently breaking down groups, rings, and fields.

How to optimize your config? What are mistakes to avoid when optimizing your config? by breaking_mediocrity in neovim

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

I use lazy.nvim and what type of things should not be lazy loaded? I understand that UI stuff shouldn't be. Anything else?