Any extra tips or tricks are welcome!
Yesterday I learned that set -x enables trace for a bash, sh, or zsh script and prints the trace to the terminal.
Any extra tips or tricks are welcome!
Yesterday I learned that set -x enables trace for a bash, sh, or zsh script and prints the trace to the terminal.
24 Comments
mug9145@chat.maiion.com · 6 pts · 3y
Newsboat, an RSS reader https://newsboat.org/
chaoticAnimals@programming.dev · 1 pts · 3y
Interesting :)
sisyphean@programming.dev · 5 pts · 3y
I really like jless. You can pipe the JSON output of a cURL command into it and it displays it in a really nice, easy to read way with collapsible arrays and objects.
sirnak@lemmy.world · 2 pts · 3y
Why haven't I heard of this before?? Absolute gamechanger o_O
mim@lemmy.sdf.org · 4 pts · 3y
Taskwarrior.
Algae@programming.dev · 4 pts · 3y
My answers (mostly running in powershell - not that it makes much of a difference!)
Rust-based utilities I couldn't live without:
fd(fd-find) for finding my filesrg(ripgrep) for string searchessd(sed) for search and replacedust(dust) for information about my directorieslsd(aliased tolsorl) for replacingDirbat(better cat) - for when the help pages are too longOther stuff I love:
htop- I just learned you can run this in WSL to see all your system cores. It's pretty!nvim- obviously. The best vim. Even works in VSCodeFiveAcres@programming.dev · 4 pts · 3y
In Bash, I like to use cdargs
sudo apt-get install cdargs
It allows you to set up shortcuts on the fly,
cv sdbackup
rather than cd /media/user/Backup Plus/ MyFiles/current/sdbackup
cv with no argument will give you a list to select from current shortcuts
dark776174657273@lemmy.sdf.org · 1 pts · 3y
Of those mentioned, this one intrigues me most. Thanks!
attn_dfct_dev@programming.dev · 4 pts · 3y
RandomDevOpsDude@programming.dev · 3 pts · 3y
I write a lot of bash scripts that end up running in automation in some fashion.
Is pretty standard for me.
-eexit on error-o pipefailexit on pipeline fail-uerror on unset variables-xtracefallenpixel@programming.dev · 3 pts · 3y
Always partial to yq and jq. No easier way to interact with kubernetes outputs on the fly.
nevalem@programming.dev · 2 pts · 3y
Don't forget about fq!
RandomDevOpsDude@programming.dev · 2 pts · 3y
How I have never heard of yq, I'm unsure, but thank you as I'm sure it will make life easier
Andy@programming.dev · 2 pts · 3y
I don't know about k8s work in particular, but I enjoy jello and yamlpath more than jq and yq.
chaoticAnimals@programming.dev · 2 pts · 3y
I'm a pretty big fan of
icdiff. This utility allows you to compare two files to see what has been added or removed by using colorful fonts to highlight values.https://github.com/jeffkaufman/icdiff
Andy@programming.dev · 3 pts · 3y
Another good one is riff (riffdiff on crates.io).
EDIT: for single-column view, that is
cd_slash_rmrf@programming.dev · 0 pts · 3y
I recently learned about diffsitter which uses tree-sitter for meaningful diffs
gamma@programming.dev · 2 pts · 3y
pv, which is like cat, simply copying files or stdin to stdout, but prints statistics to the terminal.
A related tip:
ddisn't special in the way most people use it. This works too, if you're root:pv my-fav-distro.iso > /dev/sdc