shell-bling-ubuntu
hyperfine
shell-bling-ubuntu | hyperfine | |
---|---|---|
7 | 75 | |
65 | 20,116 | |
- | - | |
8.1 | 8.1 | |
2 months ago | 15 days ago | |
Shell | Rust | |
The Unlicense | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
shell-bling-ubuntu
-
Ask HN: I want to learn to use the terminal, where do I start
Personally, I only really got into working at the shell once I started exploring all of the wonderful new programs that people have been writing to make it easy as pie to work with. I ended up collecting them all together into scripts I can `curl | bash` on any new Ubuntu machine: https://github.com/hiAndrewQuinn/shell-bling-ubuntu
Obviously these scripts won't work on Mac. But I do list the programs I install in it right in the README, including what I consider the "Holy Trinity": `rg` (really fast line searching), `fd` (really fast file finding), and `fzf` (best described with examples: see https://andrew-quinn.me/fzf). These all work on my wife's Mac identically to how they work on my own Linux box, and they make the experience of working at a shell much more pleasant.
Finally, install fish! https://mmazzarolo.com/blog/2023-11-16-my-fish-shell-setup-o... You can get back to Bash once you've gotten used to using the shell and find a reason to. Fish is much more pleasant, IMO, and I try to use it wherever I can these days.
-
Starship.rs: minimal, fast prompt for any shell
Yes! This is why I pair the two up in https://github.com/hiAndrewQuinn/shell-bling-ubuntu.
These context clues are especially important for newcomers to the command line. A CLI newbie who sticks with it might eventually progress to the point where they decide to ditch Starship, or to ditch fish, or to ditch both, but until they get to that point, the solid defaults and OOTB features of these two have a lot going for them.
-
Show HN: Inshellisense – IDE style shell autocomplete
Alternatively, if you simply wish to occasionally bring Copilot into your shell, you should know that Ctrl+X Ctrl+E (on bash) / Alt+E (on fish) will open your current shell line up in $EDITOR, which you may set to Vim or Neovim.
From there, :wq will drop the text back into your command line. If you have Copilot set up in either of those, then it will also work here.
I know from working on https://github.com/hiAndrewQuinn/shell-bling-ubuntu that Neovim's LazyVim setup now supports Copilot out of the box now. I never had much trouble setting up the Vim plugin either. YMMV.
-
Ask HN: How does `lnav` run its playground which you can just SSH into?
https://lnav.org/ has a feature that single handedly sold me on trying out the fantastic software: An SSH-reachable playground. It's right there above the fold on the first page: ssh://[email protected]
I want to build a similar playground for people who want to get familiar with the tools my Shell Bling Ubuntu repo provides ( https://github.com/hiAndrewQuinn/shell-bling-ubuntu ). Ideally it consists of a series of very simple tasks to get one's feet wet with each tool provided: Using fish's autocompletion, then using fzf's shell keybindings, then using rg instead of grep to search an enormous number of files for a single needle character in a million lines of wheat , and so on.
I have no clue how to do this safely. I've never seen how anyone else does it either. Can anyone provide me some pointers?
-
Cursor – The AI-First Code Editor
Alternatively, if you just want to integrate Copilot into Neovim and get on with your day, I recently discovered that the latest LazyVim integrates it as an extra.
I actually discovered this while working on Shell Bling Ubuntu, which is a couple of easy scripts to get you a bunch of modern command line tools nice and configured in one go, but you can just scroll down to "Add Copilot to Neovim" to see. It's refreshingly user friendly for NV configs.
https://github.com/hiAndrewQuinn/shell-bling-ubuntu
- GitHub - hiAndrewQuinn/shell-bling-ubuntu: A few scripts to be run on a fresh-off-the-presses Ubuntu VM, in order to get its shell nice 'n purdy.
- Show HN: 3 scripts to turn a stock Ubuntu live USB into a modern devbox
hyperfine
-
Measuring startup and shutdown overhead of several code interpreters
Check out the official hyperfine Github repo
-
Bun - The One Tool for All Your JavaScript/Typescript Project's Needs?
And then I used hyperfine to run the benchmarks on my MacBook Pro 14 M2 Max, and here are the results:
-
Faster tetranucleotide (k-mer) frequencies!
Search "benchmarking tools for linux" and decide that hyperfine is good for what I'm doing. Run Jennifer's new python script against my refactored perl and find that the python is 1.26 times faster for k=3 and 1.47 times faster for k=4. For the Covid-19 sequence, these are both on the order of hundreds of milliseconds.
- Hyperfine: A command-line benchmarking tool
- FLaNK Weekly 08 Jan 2024
-
Show HN: Inshellisense – IDE style shell autocomplete
> It is very possible to write sub 100ms procedures in TS, […]
I will not disagree with this statement because I don’t have a way to test inshellisense right now. Could you (or anyone with a working Node + NPM installation) please install inshellisense and post the actual numbers? Perhaps using a tool like hyperfine (https://github.com/sharkdp/hyperfine).
-
Firefox has surpassed Chrome on Speedometer
Yeah, while it's not as thorough as these tools, the method is at least reproducible and sane, and with ~10 or so samples, you get an interval with a nice confidence.
Another through method will be hyperfine[0], yet I wanted to provide a method which requires no installation and can be done in a whim, without jumps and hoops, with the tools already at hand.
[0]: https://github.com/sharkdp/hyperfine
-
How to optimize your config? What are mistakes to avoid when optimizing your config?
That is native and inbuild but I would suggest below options instead 1. Using lazy's Profile tab instead https://github.com/folke/lazy.nvim 2. Using a dedicated plugin to do this https://github.com/dstein64/vim-startuptime. 3. Using an external program hyperfine is one that I use https://github.com/sharkdp/hyperfine
-
How to remove all <br> from all of my .html files
Fair enough, although might I recommend using hyperfine for your testing? ;p
What are some alternatives?
inshellisense - IDE style command line auto complete
criterion.rs - Statistics-driven benchmarking library for Rust
hishtory - Your shell history: synced, queryable, and in context
fd - A simple, fast and user-friendly alternative to 'find'
butterfish - A shell with AI superpowers
ripgrep - ripgrep recursively searches directories for a regex pattern while respecting your gitignore
awesome-mac - Now we have become very big, Different from the original idea. Collect premium software in various categories.
kubeconform - A FAST Kubernetes manifests validator, with support for Custom Resources!
quinn - Async-friendly QUIC implementation in Rust
quiche - 🥧 Savoury implementation of the QUIC transport protocol and HTTP/3
ble.sh - Bash Line Editor―a line editor written in pure Bash with syntax highlighting, auto suggestions, vim modes, etc. for Bash interactive sessions.
bat - A cat(1) clone with wings.