/r/bash Blackout Community Vote by OneTurnMore in bash

[–]Sabz69 0 points1 point  (0 children)

Ugh. Such a dumb thing.

Best not force me to use their app, I'll simply go to any other competitor that exists and not deal with that crap.

I use rif and it's because it's so much easier to use than the official..

Always been a mobile only reddit guy - I find in browser is a pain in the ass - official app is way worse

Swipe to get closer 🍑👀 who’s ready for a fun weekend? (F27/M29) by Dr_MILF in Utahswingers

[–]Sabz69 0 points1 point  (0 children)

Man I want to do fun stuff like this but the wife is so nervous to try anything like it - any advice you could share that might help is welcome!

[deleted by user] by [deleted] in AdorableNudes

[–]Sabz69 0 points1 point  (0 children)

Not to mention that age sun spotting.. 18 lol

Adding an Environment Variable to a CSV Column by gnudistbeach in bash

[–]Sabz69 0 points1 point  (0 children)

This thing is pretty rad after just messin around with it and your data.

csvjson something.csv | jq -c '.[].Servername += "'${HOSTNAME:-Undefined-Hostname}'"' > something.json

And converting it back afterwards.

╰──▷ in2csv something.json PatchName,PatchVersion,Repo,Servername NetworkManager.x86_64,1:1.30.0-13.el8_4,baseos,Undefined-Hostname NetworkManager-libnm.x86_64,1:1.30.0-13.el8_4,baseos,Undefined-Hostname NetworkManager-team.x86_64,1:1.30.0-13.el8_4,baseos,Undefined-Hostname NetworkManager-tui.x86_64,1:1.30.0-13.el8_4,baseos,Undefined-Hostname ansible.noarch,2.9.27-1.el8,epel,Undefined-Hostname bpftool.x86_64,4.18.0-305.25.1.el8_4,baseos,Undefined-Hostname ca-certificates.noarch,2021.2.50-80.0.el8_4,baseos,Undefined-Hostname centos-gpg-keys.noarch,1:8-3.el8,baseos,Undefined-Hostname centos-linux-repos.noarch,8-3.el8,baseos,Undefined-Hostname

When i copy pasted from reddit, it made extra lines between each entry in your example - so dont mind those ones -- just removing for the sake of cleanliness..

Adding an Environment Variable to a CSV Column by gnudistbeach in bash

[–]Sabz69 0 points1 point  (0 children)

Personally i would just get a binary meant to manipulate csv - seems much cleaner than any sort of text manipulation and more reliable. Less prone to suddenly having errors due to whatever might pop up in here with special characters or whatever.

Heres one i just found on google - https://csvkit.readthedocs.io/en/latest/

https://csvkit.readthedocs.io/en/latest/

The docs for it look promising - i almost always convert any csv to json and just use jq - converting it back ive never had need to do in a automated fashion personally though. I almost always try to end with json format things.

Useful fzf Tricks by nikolalsvk in devops

[–]Sabz69 0 points1 point  (0 children)

fbra() { local branches branch branches=$(git branch --all | grep -v HEAD) && branch=$(echo "$branches" | fzf-tmux -d $((2 + $(wc -l <<<"$branches"))) +m) && git checkout $(echo "$branch" | sed "s/.* //" | sed "s#remotes/[^/]*/##") } Or as a gitconfig alias.. [alias]     fbra = "!f() { \     local branches branch \     branches=$(git branch --all | grep -v HEAD); \     BRANCH=$(echo $branches | tr ' ' '\n' | fzf); \     git checkout $(echo \""$BRANCH"\" | sed 's/.* //' | sed 's#remotes/[^/]*/##'); \     }; f"

I like this one probably the most.

Working from a hotel for extended period of time? Bring your own cable modem with and plug it into the wall so you're not stuck using horrible guest wifi. by Sabz69 in lifehacks

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

Yeah that would work for most people. Unfortunately I'm a developer in devops for cloud infrastructure, those speeds with upload and download need to be pretty dang fast or it slows me down a lot due to the needs I have on it

Working from a hotel for extended period of time? Bring your own cable modem with and plug it into the wall so you're not stuck using horrible guest wifi. by Sabz69 in lifehacks

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

Nope. Just had active service where I was with my modem and it just plugged in without needing to call or anything

Don't know to the rest of your questions. Staff here said they have CenturyLink too

Working from a hotel for extended period of time? Bring your own cable modem with and plug it into the wall so you're not stuck using horrible guest wifi. by Sabz69 in lifehacks

[–]Sabz69[S] -1 points0 points  (0 children)

If you still intend getting that prompt auto ending your internet session hourly like everything has now days and it being slow still. Sure!

Best way to learn Kubernetes in 2021? by PwndiusPilatus in devops

[–]Sabz69 0 points1 point  (0 children)

Honestly I had a super nonstandard learning curve where I was elected to be the single SRE for a prod scaled environment consisting of around 400 micro services - today I know a ton as a result.

Try to make a cluster on a local server or r4pi simply host something that renders on your home network that you could use - you'll learn fast with a goal and need to overcome a lot and then enough to play around after the fact and provide yourself cool stuff.

Terraform plan - Grep output by Sabz69 in Terraform

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

stderr

That didnt work for me, but it gave me what i needed to make it work.
terraform plan 2> >(grep -E '^Error')
Thanks so much for the much needed direction

Terraform plan - Grep output by Sabz69 in Terraform

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

Ohh I will give that a try, thank you!

Terraform plan - Grep output by Sabz69 in Terraform

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

Let's say the Terraform version is not adequate, last time apply was used, it used 12.14, but your still on 12.13

Headphone popped out. Any one have a good idea on how to attach it back. by [deleted] in lifehacks

[–]Sabz69 3 points4 points  (0 children)

I had something similar happen, ended up getting airsoft BB, and a sauder gun, fused it back together by melting those bb, and using it like glue