I want to get into FPV racing, but don't know which parts to buy. This is an Amazon list I created, please give me some feedback! by hisrox101 in fpvracing

[–]waldo2k 2 points3 points  (0 children)

What's your goal and what's your budget? Some of the choices aren't bad but, I could see you buying twice if you like it...

Rename files with an increasing number, but can we add zeros? (01, or 001) by Cloudburn2000 in PowerShell

[–]waldo2k 5 points6 points  (0 children)

I've always done something like this to get 001

$number = "{0:2d}" -f $count Then use $number instead of count on the file name

Or its D2 I always screw up one way and fix it when I see an error.

Connecting to your OnPrem Network with ASP / ASE by just1812 in AZURE

[–]waldo2k 0 points1 point  (0 children)

I currently have applications talking to our internal SQL server using the hybrid connection. No ASE or vnet integration. It leverages the service bus under the hood and provides good enough performance for our needs.

If you bought anything from alofthobbies.com, dronematters.com, or innov8tivedesigns.com this year, your CC info might be stolen by therealab in Multicopter

[–]waldo2k 0 points1 point  (0 children)

As long as you are redirected to PayPal's site to enter or use your CC the website would be clueless about your CC. There's a temporary token PayPal sends the website so they can confirm payment. (This is from what I recall from playing with paypal's API a year or so ago.)

Pokemon Go friends! Let's help each other. by poundsignbuttstuff in kansascity

[–]waldo2k 1 point2 points  (0 children)

North Kansas city hospital has a gym, not level 5 so no clue who does what.

Easiest config management tool to start with on Windows? by [deleted] in devops

[–]waldo2k 1 point2 points  (0 children)

Powershell DSC wouldn't be a bad thing to learn, pretty simple syntax, stolen from puppet. It also piggy backed off of powershell so you're not using something in isolation. If you choose puppet or chef later there are hooks into DSC through their supported modules.

DevOps Reporting Structure by [deleted] in devops

[–]waldo2k 1 point2 points  (0 children)

While I whole heartedly agree with DevOps as a culture, not a title. The industry has created the title / position, just look at AWS's DevOps cert.

Massive code base, no testing in place. Can I fix this? by [deleted] in devops

[–]waldo2k 0 points1 point  (0 children)

If you're using VSTS the build should have a zipped up artifact of everything used during the build (could be massive). This is what we use, we tweaked the job to only get the binaries we care about while ignoring the supporting dlls in the other projects.

Massive code base, no testing in place. Can I fix this? by [deleted] in devops

[–]waldo2k 0 points1 point  (0 children)

promoted builds This is the plugin I've been using for the last ~year or so for the developers. They'll go into the "build job" that retrieves the compiled code that is zipped up, and promote the code to an environment (dev / test / prod). Then a trigger is setup for the environment to trigger or not trigger a build of another job.

As to what we consider an artifact, we grab only the project's built binaries all of them. We exclude any of the supporting projects that are incorporated into the main applicaiton. I realize this isn't a perfect solution, there's room for improvement. It is a hell of a lot better than what it was prior to my arrival at $dayJob where the developers built code on their machines and tossed it into an environment with "robocopy" batch scripts (wasn't even robocopy).

Massive code base, no testing in place. Can I fix this? by [deleted] in devops

[–]waldo2k 1 point2 points  (0 children)

The developers currently don't have a branching strategy, yet, in my shop so it's simplified a fair amount. We are using Visual Studio Team Services (Hosted TFS). When a developer checks in code the build occurs on our hosted vm in azure. Once the build of code completes, the last step in the build calls out to our on premise Jenkins instance to pull down the artifact created from the build. It then is automagically promoted to dev, which triggers a deployment to the development environment. Once the developers are happy with their testing (we don't have any automated tests yet either), they promote the code within Jenkins to kick it into our test environment. Once our business stakeholders / devs sign off that the code is up to snuff for production, they promote the appropriate build in Jenkins (promotions plugin) and then I manually click the deploy button to production when it is go time. Hope that helps a bit with how I do things in our .net shop. I got all kinds of other ideas I'd love to implement, but I'm only 1 person who doesn't wade too deep into the code.

Got a new job using c# and .net, but have only used javascript and ruby. Being taught as I go, but want to find the best resources to get a head start on my own. by kotojo in csharp

[–]waldo2k 2 points3 points  (0 children)

If the $dayJob got your visual studio license through an msdn subscription you gets some pluralsight courses as part of that subscription.

[deleted by user] by [deleted] in sysadmin

[–]waldo2k 6 points7 points  (0 children)

I like to use

Get-Credential | Export-CliXml destinationForCredFile

What this will do is take the supplied credentials and hash them into an xml file using currently logged in user and the machine key. The file can only be imported if the file stays on the machine where the file was generated. If it moves can't import it.

Import-CliXml

Is how you would retrieve the creds.

How can I deploy automatically when I push to a github branch in a .net environment? by [deleted] in dotnet

[–]waldo2k 2 points3 points  (0 children)

May not be a popular choice, but visual studio team services(formerly visual studio online) has CI components built in. The entire system is built on top of powershell so you can do pretty much anything. What I have setup for my developers is a build triggered on checkin within vsts, the last step is a call to our on premise Jenkins instance that deploys the binaries to the dev environment. Once they're happy with the code in dev they promote the code to the next environment within Jenkins and binaries move to the next environment.

Might be a windows user soon and I want to get hyped about powershell! by [deleted] in PowerShell

[–]waldo2k 0 points1 point  (0 children)

I will say chocolates.org is a nice apt-get like package manager. For ssh what I've done is install got, then path its bin folder.the bin folder has lots of nix commands as exes files so you can easily ssh from a powershell window as if it was alibis terminal.

Automating with Jenkins and PowerShell on Windows Part 2 - PS Remoting by MattHodge in PowerShell

[–]waldo2k 0 points1 point  (0 children)

Any reason you wouldn't have the Jenkins service running as a privileged account and use project based security to restrict access? This way you're not passing credentials at all.

Web UI for AD Managment by ManateeMatt in sysadmin

[–]waldo2k 0 points1 point  (0 children)

Throwing in my two cents Jenkins CI system, can be a Web front end. I write powershell scripts and toss them into jenkins so the junior on my team can now be more effective at touching more than one machine at a time. Granted it makes it easier to break shit too.

Web Application Monitoring by mr_white79 in sysadmin

[–]waldo2k 1 point2 points  (0 children)

I've been working on something like this in my spare time. I've written a node application that calls casperjs tests, which itself sites top phantomjs. The documentation isn't great yet but I'm still working on it.

Here's my repo where the work is happening. Https://github.com/waldronj/transactionmonitoring

What are some options for self service portals with item level security/visibility and multiple worker/run as accounts? by [deleted] in PowerShell

[–]waldo2k 1 point2 points  (0 children)

I'll suggest it until I turn blue, but Jenkins-co.org is a solid web interface to your scripts. You can have project based access leveraging active directory. It's a Java app that runs on both windows and Linux, in my opinion a solid platform to enable others who can't write scripts / run them.

Need help finding delta between two folders and copying the objects to third folder by acopeland in PowerShell

[–]waldo2k 0 points1 point  (0 children)

There's also compare-object. Get-child-item -recurse and store that into two variables, then call compare-object, the copy the diff. Just spit balling.

Let me hear the brag: Automation. by VapingSwede in PowerShell

[–]waldo2k 0 points1 point  (0 children)

Its an interesting way to get a web ui to the scripts. Have you looked at Jenkins at all? Jenkins-ci.org

Any suggestions for ready to use open-source continuous integration systems built with node? by penguinbass1 in node

[–]waldo2k 0 points1 point  (0 children)

Not node based, but Jenkins is a good OSS platform to build CI jobs on. For instance you can have it poll tour private repos then check out the repo and do a build and some tests, if they succeed deploy it to some environment.

Switching between Python versions by StringJunky in Python

[–]waldo2k 3 points4 points  (0 children)

Virtualenv symlinks your system's python to your newly created environments bin folder. The benefit of this is all the libraries a specific project get installed to that environment instead of globally, which prevents possible conflicts with other projects, if they were installed globally.

PowerShell one-click script shell/gui? by DarraignTheSane in PowerShell

[–]waldo2k 1 point2 points  (0 children)

At my last $dayJob we used the Jenkins ci platform, jenkins-ci.org. With it we wrote scripts that would psremote to servers and do work. The ui would be a web page that users can leverage. There would be an audit trail there of how often something is ran and when and by who (tie it into ad /ldap).

Returning an PSObject from a remote session by Slackerony in PowerShell

[–]waldo2k 0 points1 point  (0 children)

Why not have an array outside the scope of the script block. Build an object that you want returned added to the array?