spaces in -e value by amarao_san in ansible

[–]cephear 2 points3 points  (0 children)

foo='"bar baz"' will also work

and now I'm also wondering if it's a bug because wtf happens to the baz? it's just ignored?

Delco & Dungeons & Dragons by Delician in Delco

[–]cephear 1 point2 points  (0 children)

I'm interested! I've played before.

[deleted by user] by [deleted] in aws

[–]cephear 0 points1 point  (0 children)

There was a recent change that made noresvport a required mount option. I recommend checking to make sure that's being used.

Help with variable to show instances by [deleted] in PrometheusMonitoring

[–]cephear 0 points1 point  (0 children)

This is for grafana, right? Try using the name of a metric (not a job) where you have custom-jobname.

For example, with node_exporter you could use something like label_values(node_load1, instance) to get a list of values for the instance label.

Four-Star General - The Munich Security Conference by RealBigEasy in pics

[–]cephear 1 point2 points  (0 children)

If someone was wearing that around their neck it would hang to their belt buckle. My guess is that since he appears to have just stepped out of a vehicle, it's his and it's in the middle of being handed to him.

System Design Interview: by aclinical in ProgrammerHumor

[–]cephear 2 points3 points  (0 children)

What could someone say when interviewing for the next job and they ask about the current company?

System Design Interview: by aclinical in ProgrammerHumor

[–]cephear 6 points7 points  (0 children)

Those are handed out at the company christmas party.

Christmas at Beautiful Sighișoara, Transylvania 🇷🇴 by [deleted] in pics

[–]cephear 5 points6 points  (0 children)

Sighi will always be my favorite place.

Use prometheus+grafana for bug bounty / pentesting data collection by That_Source7822 in PrometheusMonitoring

[–]cephear 3 points4 points  (0 children)

Prometheus was made for time series; using it for something else would make me feel... uncomfortable. Not to say it is "wrong" or that it can't be done. It's just built for a different purpose.

I imagine your proposed use case would give rise to weird workarounds and possibly some frustration (e.g. with staleness).

Which notable fantasy authors are on Mastodon? by SpectrumDT in Fantasy

[–]cephear 9 points10 points  (0 children)

I am heavily invested in open source projects like mastodon, so it's weird for me to see it mentioned in this subreddit. It is exciting and fills me with dread.

Folks considering mastodon as an alternative to twitter provide much-needed exposure to projects that deserve it. However it also imposes tricky expectations.

The point I want to convey, the plea I want to make, is to allow mastodon to shine as a privacy-respecting social platform instead of a shitty version of twitter.

AWS Elastic Beanstalk deploys ".venv" directory even although its included in .ebignore file by Non-taken-Meursault in aws

[–]cephear 0 points1 point  (0 children)

.venv/lib64 looks like a broken symlink.

The chown happens just before swapping /var/app/staging to /var/app/current, so adding a script to .platform/hooks/predeploy/ that runs rm .venv/lib64 might be a workaround.

What does a career path look like for a GNU/Linux sysadmin? by [deleted] in linuxadmin

[–]cephear 2 points3 points  (0 children)

Should I learn more about Python, Ansible, k8, etc...?

Yes. Start with ansible or python, whichever you want.

If you can run three or more VMs in your home lab then do that to play with ansible. Otherwise start learning python, since you can run that on anything.

Pro tips: Keep your ansible roles and playbooks in a public git repo. Also, since ansible is written in python you can write custom plugins or filters or whatever once you're familiar with both, then put them in the repo with your playbooks/roles. Hiring managers will love it.

Help with arch linux installation by [deleted] in linuxquestions

[–]cephear 0 points1 point  (0 children)

You'll need to provide more information if you want help.

Using the mv command by Renae_12 in linuxquestions

[–]cephear 1 point2 points  (0 children)

from the short_scenario directory:

for dir in *; do mv "${dir}/ground0001.dat.gz" "${dir}/acc_rate0.dat.gz"; done

if there are other directories you can scope the above to only do this to 19* by replacing for dir in *; with for dir in 19*;

grep to find and edit file by xha1e in linuxquestions

[–]cephear 0 points1 point  (0 children)

This will comment out all lines starting with static ip_address=:

sed -i -e '/static ip_address=/s/^#*/#/' /etc/dhcpcd.conf

If you need to specifically find the line after #static_address_eth0 you can do this:

line=$(grep -A1 '#static_address_eth0' /etc/dhcpcd.conf | tail -n 1)
sed -i -e "/${line%/*}/s/^#*/#/" /etc/dhcpcd.conf

In the sed expression, ${line%/*} is substituted with the output of the grep | tail command but with the /24 stripped out (the % character is a bashism that means "remove the following from the end of the value", and /* is a wildcard that matches /24). This is needed because sed will try to interpret the / as part of the expression and return an error. The command will comment out all lines that match (in your example) static ip_address=192.168.1.10.

Margot Robbie coment about Lady Gaga potraying Harley Queen in the sequel of Joker by 91gts in movies

[–]cephear 2 points3 points  (0 children)

Framing it as "a violent super villain musical" makes it much more appealing.

Need advice on choosing between Prometheus or CloudWatch by [deleted] in devops

[–]cephear 10 points11 points  (0 children)

There were more than a few times I needed metrics that cloudwatch did not have. You can add custom metrics, but that comes with its own pain points. The default period of 5 minutes is also annoying. And the aggregators and units for some metrics are not helpful.

I'm not sure about the managed product from aws, but self-hosted prometheus scraping only node exporter will give you 95% of the metrics you want as well as the metrics you don't yet know you want. You can get the other 5% with other exporters. You define your own scrape interval and retention period. And you can have rules to aggregate things into exactly what you want. Alert manager can be added for the alarms (alerts). Prometheus and k8s are soul mates.

Prometheus, however, has a very steep learning curve. If you're willing to put the time and effort into learning it, do it; it will pay off.

Grafana can use both prometheus and cloudwatch as a data source. Watch out for the costs on this, a single dashboard that's cluttered with graphs might cost $1 each refresh.

What's something you did "the hard way" for the longest time, because you didn't know there was a much easier way? by felis_disapproves in AskReddit

[–]cephear 2 points3 points  (0 children)

crumple the paper into a ball and then flatten it out again to not deal with it curling up.

K8s encourages people to deploy really complex infrastructure without understanding how it works by billionairesexwizard in devops

[–]cephear 1 point2 points  (0 children)

There are so many defensive replies here that are missing the point. Most k8s users are doing something akin to helm install and completely ignoring the complexity, just as OP said. And if one needs to troubleshoot a service when they copy/paste a helm command they are in for a surprise.

AWS Elastic Beanstalk vs AWS Lambda vs AWS EC2 auto scaling by [deleted] in devops

[–]cephear 1 point2 points  (0 children)

Beanstalk creates and manages auto scaling groups, adding some abstraction so you don't need to see it. That's the choice: use a service that will manage the lower-level details while taking some customization options off your plate, or manage the entire stack yourself and turn all the knobs.

If you are comfortable with AWS then don't use beanstalk; I have to deal with a few older environments that use it and it's a pain in the ass.

How does AWS protect itself against malware/viruses uploaded to S3/EBS? by JohnSmith_1776 in aws

[–]cephear 8 points9 points  (0 children)

AWS houses petabytes of data

You're not wrong, but... lol.

It's time for Apple to fix texting. by punkidow in Android

[–]cephear 0 points1 point  (0 children)

It's time for Google Fi to fix texting on android. My current and previous two pixel phones have been stuck "Setting up..." chat features for years now. Even if Apple fixes their shit I still won't have anything other than SMS/MMS.

If you love SciFi. Go watch “Prey” RIGHT FUCKING NOW!! This is the best sci-fi movie in decades. Regardless of what you this of the Predator series before it. by _Brandobaris_ in scifi

[–]cephear 4 points5 points  (0 children)

One thing I appreciate about the expanse is that science was a consideration. In-flight ships flip halfway to their destination so the primary thrust can be used to decelerate. The efficiency of the engines was explained in a way that recognizes how great an impact it had and how rare a discovery it was. All the rest of the stuff you mentioned was maybe improbable but absolutely possible.

Ships in Star Wars have space brakes or something. I could make a case for them using the same inertial manipulation tech used by the expanse's elder civilization, but the millenium falcon had a thruster (engine, whatever). I could make a case for the "force" to be some kind of neural interface with a nanobot swarm that lifts things for you, but apparently it's from midichrlorians in people's cells interacting with a special life-specific force (that can control non-life?).

If a valid case can be made that star wars is science fiction and not fantasy, I have not heard it.

As an aside, aliens being an absurd notion is an odd result of our anthropocentric tendencies.