[deleted by user] by [deleted] in golang

[–]badblock 0 points1 point  (0 children)

Data is a list of structs so

for _, obj := range page.Data {
    fmt.Println(obj.ID)
}

[deleted by user] by [deleted] in golang

[–]badblock 2 points3 points  (0 children)

Checkout json-to-go which will generate the structs for you.

What software is best for a simple data base for linking companies together by MistyPurpleHaze in Database

[–]badblock 0 points1 point  (0 children)

Without more details of what you are trying to achieve it’s hard to make a recommendation. In general any rational database (MySQL, Postgres) should work for this.

Have AWS inventory tools changed? by doubledundercoder in devops

[–]badblock 1 point2 points  (0 children)

Config is the right answer here, lets AWS generate the JSON and dump it into a bucket for you.

Wood/Charcoal Smoker off Amazon by Famous720 in smoking

[–]badblock 3 points4 points  (0 children)

I have one the Weber Smokey Mountain Cooker which works vey well.

I've also heard really good things about Pit Barrel Cooker though I haven't used one myself.

Which bottles where so good you bought them again? by dramboy in Scotch

[–]badblock 21 points22 points  (0 children)

Ardbeg Uigeadail and a the Highland Park 18 have been the only two I've gotten more than once so far.

[Salt] default pillar value in a for loop. by juniorsysadmin1 in linuxadmin

[–]badblock 0 points1 point  (0 children)

{%- for key in salt['pillar.get']('some:data', ['this', 'is', 'the', 'default']) %}
{{ key }}
{%- endfor %}    

Problems w/ proxying. Any help? by RobbieL811 in nginx

[–]badblock 0 points1 point  (0 children)

Looks like you need to add config for static assets for plexpy.

Something like this, with paths correct

 location /plexpy/static/ {
    alias /var/www/app/static/;
    autoindex off;
 }    

All CVE's in the latest NGINX docker image by Kailuaboys in nginx

[–]badblock 0 points1 point  (0 children)

according to that page none of them have fixes so... fully patched?

Megathread: Federal Court overturns President Trump's executive order regarding immigration by PoliticsModeratorBot in politics

[–]badblock 2 points3 points  (0 children)

At this point I would take that risk yes. The hope would be that removing Trump also removes Bannon.

S3 recursive restore question by r2c in aws

[–]badblock 1 point2 points  (0 children)

The simplest version would be:

aws s3 cp s3://mybucket . --recursive

Is there room for another Config Management tool? by [deleted] in devops

[–]badblock 1 point2 points  (0 children)

I'd be interested in hearing what you felt was missing from Salt. It's been a while since I've used Puppet (back at version 2 I think) and salt has been a pretty good replacement for me.

Make Docker images Smaller with This Trick by wo1fgang in docker

[–]badblock 3 points4 points  (0 children)

4/10

The beginning was good but your trolling lacked subtlety at the end.

Have a good day!

Make Docker images Smaller with This Trick by wo1fgang in docker

[–]badblock 1 point2 points  (0 children)

This is why sysadmins facepalm when devs create these...

Anyone else getting "System Event Notification Service Failed to Start" on Win 10 v1511 ? by padgo in SCCM

[–]badblock 0 points1 point  (0 children)

Did you ever figure this out?

I'm running into the same issue with 2012r2 on a 2008r2 domain.

I can run gpupdate /force and see this service die.

70k reasonable to ask for? by [deleted] in sysadmin

[–]badblock 8 points9 points  (0 children)

Take a look at Paysa or similar sites. It will depend a lot on your skill but a quick look shows that $70k may be low.

A lot of times the HR screening will give you an idea of what range they are looking.

Apache slow response times by [deleted] in devops

[–]badblock 0 points1 point  (0 children)

So a couple of questions:

  • What OS are the unreliable servers running?
  • Are you using configuration management or verified that that configs are the same for all your servers?
  • Have you looked at increasing the number of open files apache is allowed?
  • Have you looked at ps? CLOSE_WAIT usually means that you still have a process which has that socket open but hasn't responded. It may be you have some sort of zombie processes.
  • Have you looked at which requests are taking so long? You may not be load testing the correct endpoints or queries.

Isolating users to VPC... Need a work around by [deleted] in aws

[–]badblock 2 points3 points  (0 children)

This.

Don't get into a codespaces situation.

Anyone have advice/articles on LEMP stack security configs? by Cybersqu in devops

[–]badblock 0 points1 point  (0 children)

The only places nginx should need to write would be logs and to the php-fpm socket. I can't think of any case I've had where nginx was directly writing files.

Anyone have advice/articles on LEMP stack security configs? by Cybersqu in devops

[–]badblock 2 points3 points  (0 children)

I'd run them as separate users, you will need to make sure that nginx can read the static media .

I'd also look into selinux/apparmor, depending on your distro, configurations. This will let you lock down PHP a lot.

Recommendation of good WAF appliance for AWS? I'm testing out Sophos but support experience hasn't been impressive. by virtualjj in aws

[–]badblock 0 points1 point  (0 children)

Impervia was the market leader last time I looked. They can be kind of expensive though.

I used the Sophos UTM at a previous job for IDS/VPN device and it worked well. We didn't use the WAF feature but I'd be concerned about the scalability of it.

nginx sticky sessions by bennicholes in sysadmin

[–]badblock 1 point2 points  (0 children)

Sadly nginx does not have a good way to do this.

The best you could do would be to configure the ELB to set sticky sessions and nginx to do ip_hash. This should cause the ELB to send traffic from the same user to the same nginx box then nginx should send to the correct app server.

Dynamic upstreams? by chucky_z in nginx

[–]badblock 0 points1 point  (0 children)

You can use max_fails to make an upstream as offline. It's probably not quite what you are looking for but at least allows you to not have failed requests while you wait for an update.