Skip to content

Instantly share code, notes, and snippets.

View 40a's full-sized avatar

40a

View GitHub Profile
robocopy /b /mir "C:\EmptyDir" "C:\DirToEmpty"
@40a
40a / Invoke-Sqlcmd3.ps1
Created March 10, 2014 15:34
Invoke-Sqlcmd3
Function Invoke-Sqlcmd3 {
<#
.SYNOPSIS
Runs a T-SQL script on one or more Instances of SQL
.DESCRIPTION
Runs a T-SQL script. Invoke-Sqlcmd2 only returns message output, such as the output of PRINT statements when -verbose parameter is specified.
Paramaterized queries are supported.
# Author: Sunny Chakraborty. 2014 (@sunnyc7)
# BasedOn: Matt Graeber's beautiful work with Powershell Lambda functions.
# Powershell Magazine Source: http://www.powershellmagazine.com/2013/12/23/simplifying-data-manipulation-in-powershell-with-lambda-functions/
# Code: get-continiouscounterpoll.ps1
# Source: https://gist.github.com/9579625
<#
You can copy list of counters in counter-paths.txt.
Please avoid using * based counter paths. Instead use (_total)
##################################################
#
##################################################
param(
[Parameter(Mandatory = $true)][String]$subscriptionId,
[Parameter(Mandatory = $true)][String]$storageAccountName,
[Parameter(Mandatory = $true)][String]$affinityGroupName,
[Parameter(Mandatory = $true)][String]$imageName = 'MSFT__Windows-Server-2012-Datacenter-201208.01-en.us-30GB.vhd',
[Parameter(Mandatory = $true)][String]$adminPassword,
##################################################
#
##################################################
param(
[Parameter(Mandatory = $true)][String]$subscriptionId,
[Parameter(Mandatory = $true)][String]$storageAccountName,
[Parameter(Mandatory = $true)][String]$affinityGroupName,
[Parameter(Mandatory = $true)][String]$imageName = 'MSFT__Windows-Server-2012-Datacenter-201208.01-en.us-30GB.vhd',
[Parameter(Mandatory = $true)][String]$adminPassword,
configuration MongoDB {
param (
[string[]]$ComputerName = $env:ComputerName
)
node $ComputerName {
File SetupFolder {
Type = 'Directory'
DestinationPath = "C:\setup"
Ensure = 'Present'
}
<!-- Azure Region: europewest -->
<add ipAddress="157.55.9.112" subnetMask="255.255.255.240" allowed="true" />
<add ipAddress="157.55.12.0" subnetMask="255.255.255.240" allowed="true" />
<add ipAddress="157.55.10.0" subnetMask="255.255.255.224" allowed="true" />
<add ipAddress="157.55.10.32" subnetMask="255.255.255.224" allowed="true" />
<add ipAddress="157.55.10.64" subnetMask="255.255.255.192" allowed="true" />
<add ipAddress="65.52.128.0" subnetMask="255.255.224.0" allowed="true" />
<add ipAddress="94.245.97.0" subnetMask="255.255.255.0" allowed="true" />
<add ipAddress="137.116.192.0" subnetMask="255.255.224.0" allowed="true" />
<add ipAddress="157.55.8.64" subnetMask="255.255.255.192" allowed="true" />
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.

Adrian -

I appreciate that you spent time in writing this post. I know I've been up until 2am writing similarly long ones as well. I will take responsibility for having what is likely an irrational response (I blame Twitter for that) to the term "NoOps", but I invite you to investigate why that might be. I'm certainly not the only one who feels this way, apparently, and thus far have decided this issue is easily the largest distraction in my field I've encountered in recent years. I have had the option to simply ignore my opposition to the term, and just let the chips fall where they may with how popular the term "NoOps" may or may not get. I have obviously not taken that option in the past, but I plan to in the future.

You're not an analyst saying "NoOps". Analysts are easy (for me) to ignore, because they're not practitioners. We have expectations of engineering maturity from practitioners in this field of web engineering, especially those we consider leaders. I don't have any expectations from analysts,

function Send-NetworkData {
[CmdletBinding()]
param (
[Parameter(Mandatory)]
[string]
$Computer,
[Parameter(Mandatory)]
[ValidateRange(1, 65535)]
[Int16]