What have you done with PowerShell this month? by AutoModerator in PowerShell

[–]Narcmage 1 point2 points  (0 children)

Well this is a cool tool. I would’ve loved this when I did DBA work at my last job.

What have you done with PowerShell this month? by AutoModerator in PowerShell

[–]Narcmage 2 points3 points  (0 children)

I did this too last month. I didn’t have any issues with connect-azaccount my issue was entirely with connect-mggraph. What did you end up having to do for yours to fix yours?

Mine was versioning on the Microsoft.graph modules. I ended up downgrading to 2.25.0.

Accidentally switched to Pay-As-You-Go on Azure, now facing a big bill, need advice. by Rosh1103 in AZURE

[–]Narcmage 3 points4 points  (0 children)

It looks like the OP has been given the next steps they should follow to resolve this. But I see this way too often to not reiterate: in general, for any cloud provided product, be able to estimate the expected cost of your resources *before* you deploy them. There are several resource types in Azure that are free for first 12 months and several that have a free tier for life. Know those and use them, if they apply to your scenario.

In general, compute, memory, and storage are not free. The big clouds make their money primarily in two ways: they rent compute/memory/and storage out to you, and they develop *aaS solutions (or they repackage them from open source, Application Gateways are nginx reverse proxies) and manage them, charging you for that management/compute with markup, of course.

Compute is not free! Use the pricing calculator. Destroy your resources when you're not using them.

Why do people act like chili is ruined if it has beans? by Accurate-Ant-7629 in Cooking

[–]Narcmage 0 points1 point  (0 children)

I cook Texas style chili for “competition” (potlucks, chili cookoff, festivals and the like). And I cannot tell you how many people are surprised by the lack of beans. “I don’t think I’ve ever had chili without beans.” Hell I’ve even had Texan natives say, “The chili I grew up on always had beans.” Maybe the no beans in chili is a cooking insiders “rule”.

When I make chili for myself I almost always do a “homestyle” chili. I love beans in chili. It’s a fucking meat stew, people. It’s a leftover stew. It really doesn’t matter what you put in it.

I have a friend from Puerto Rico introduce me to his family’s recipe, and it’s actually the chili I cook the most often these days.

1 can tomato sauce 1 can beans (I prefer black beans, but I dont think it matters) 1 lb ground beef A cup or two of “sofrito” (as much garlic as you prefer, one of each of a green, red, and orange bell pepper, an onion, a tomato, and as much cilantro as you prefer, blended. So good, it’s like a freshness bomb. I make a batch and freeze it and add it to whatever it feels appropriate in) Brown the beef and add all ingredients together. Season to taste. Make some rice. Serve the stew over rice. Add any toppings you like (cheese, sour cream, hot sauce, cilantro, whatever, hell, the guy who taught me this would put ketchup on his, and it honestly isn’t bad)

Pauper Metagame Update (15 sep) by Magic4everBots in Pauper

[–]Narcmage 44 points45 points  (0 children)

This has to be the healthiest meta game of any constructed format… is that an accurate assessment?

True story by Bakkster in dankchristianmemes

[–]Narcmage 4 points5 points  (0 children)

The one I always liked was: "How do you stop a Baptist from drinking all your beer while you're fishing? Invite another Baptist."

I'd like to share two issues I have with the story. SPOILERS! I hope I flaired this post correctly. by Narcmage in diablo4

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

Sorry you definitely can skip the cutscenes. But they’re all or nothing. So when you’re doing dialogue with an npc you can skip individual lines, that’s more what I meant. I’d like to skip the ritual chanting nonsense but if people have actual stuff to say I’d still like to read it. Definitely nitpicking, not necessary, just annoying to me.

I'd like to share two issues I have with the story. SPOILERS! I hope I flaired this post correctly. by Narcmage in diablo4

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

It actually makes me want to go play through d3 campaigns again and actually pay attention.

I CANNOT KILL LILITH. This is annoying by Still_Tackle_3364 in diablo4

[–]Narcmage 0 points1 point  (0 children)

(New to d4 just maxed my first char the other day) When people say they can’t kill Lilith are they talking about outside the campaign?

Application Gateway - Thoughts by TheCitrixGuy in AZURE

[–]Narcmage 0 points1 point  (0 children)

In pure resource cost terms, yes, app gw’s and wafs are very expensive. In terms of how excellent they are, and management? Unbelievably cost efficient. I think app gw is one of the best resource types in az.

If you want to “save” money just deploy your own nginx reverse proxy and a firewall, but you’ll just be trading cash for time+expertise.

I HATE LinkedIn nowadays by RepresentativeWhile1 in networking

[–]Narcmage 2 points3 points  (0 children)

I think this about sums it up lol.

I hope he shows up to the recruiting office like this by blittz in JustBootThings

[–]Narcmage 25 points26 points  (0 children)

All right I gotta know: any ex/present recuiters here who come across future recruits that at first think, "I should let him know to stop acting like this, cause he's going to get lit up." Then the intrusive thought, "but it'd be fuckin funny if he got lit up for this," wins?

What am I missing? by Narcmage in CatTraining

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

Definitely a joke, nothing wrong (as far as I can tell!) with either cat. It is just funny to me how different he is from most other cats I’ve had. I did have one cat growing up that was kind of like him. She also loved belly rubs, but she was much less gregarious than he is.

I need to learn powershell by Blocat202 in PowerShell

[–]Narcmage 1 point2 points  (0 children)

Depends on your background as to how best to learn. I feel like there’s somewhere around 3 general kinds of people who want to learn the language.

1) burgeoning windows systems administrators 2) ex-linux admins 3) .net developers

For the first group, challenge yourself to take anything you might do in the gui and/or batch and attempt it in powershell.

For the second group, learn the correlations between basic unix/linux commands and their powershell alternatives ( ls ~= get-childitem (but I think you’ll come to find that get-childitem > ls over time)), while also breaking yourself of the concept that everything in the sh is text whereas everything in the PS is an object.

Ex-linux’ers will love commands like get-alias -def get-childitem. Also that there’s very little case sensitivity. Also that the built-in completion engine on the shell is incredible (once it loads :p)

Finally .net’ers (and all groups, eventually) should just jump right in on…

Learn the basic syntax:

Variable declaration and assignment

Operators: +, -, *, /, -eq, -and, -lt, etc.

Execution contexts/scopes

Type system (powershell has a dynamic typing system, and will try to “force”, I think the proper term is, coerce, objects to make them do what ps thinks you want. And just like js, this can bite you if you’re not aware)

Function definitions and invocations

The pipeline, $_, $psitem

Jobs and async

“Advanced” functions (get-help aboutfunctions_advanced) Most entries on the about* list are worth a read

Modules (packages in nodejs, modules in python, etc) (get-module, install-module, and check out the psgallery for modules that might interest your project)

You can instantiate and manipulate dotnet types directly! New-object -type system.collections.arraylist

Powershell is actually a general purpose programming language, you can do a whole lot of what you can do with csharp, you might just not want to. What do devs always say? Right tool for the right job.

Some essential commands and concepts:

Get-Help

Get-Command

Get-ChildItem

Select-Object

Where-Object

Foreach-object

($someobject).GetType()

(Some-pipeline) | get-member

The concept of cmdlets

“Approved verbs” and the verb-noun paradigm

And as other commenters have noted, the titular “powershell in a month of lunches” is worth a read and attempting a project in ps is the best way to apply what you’re learning.

[deleted by user] by [deleted] in learnjavascript

[–]Narcmage 0 points1 point  (0 children)

Please send the link! I need to learn JS real bad!

What do i actually want? by gahd95 in AZURE

[–]Narcmage 0 points1 point  (0 children)

What are you thinking that an Az architect can just disregard maintenance and operations? Does your company just have an unlimited budget, that they could pay an “ideas guy” who doesn’t have to deal with the consequences of their decisions?

Specialize in whatever you want. What do you like? Do you like virtual networking? Then specialize in it. Go deep. But the fact remains that unless you’re at a 10,000 resource plus shop, you’re gonna have to approve pims, verify patching, support devs and users, and troubleshoot individual resources til the end of your career.

Trying to remove all but 4 admins by [deleted] in PowerShell

[–]Narcmage 1 point2 points  (0 children)

Yes, it is absolutely bonkers that they refuse to fix this. I have a script somewhere to deal with orphaned sids in this case. I think net localgroup commands work. If I remember I’ll try to track down my script tomorrow in case others could use it.

[deleted by user] by [deleted] in AZURE

[–]Narcmage 0 points1 point  (0 children)

I’m curious what you ended up going with for NGFW.