Skip to content

Instantly share code, notes, and snippets.

@pburkholder
pburkholder / SSL_Cipher_Test.md
Last active April 16, 2020 01:31 — forked from warmfusion/SSL_Cipher_Test.md
Uses OpenSSL to test which SSL ciphers are supported on a given backend
Obtaining cipher list from OpenSSL 0.9.8zg 14 July 2015.
Testing ADH-SEED-SHA                   NO (sslv3 alert handshake failure)
Testing DHE-RSA-SEED-SHA               NO (sslv3 alert handshake failure)
Testing DHE-DSS-SEED-SHA               NO (sslv3 alert handshake failure)
Testing SEED-SHA                       NO (sslv3 alert handshake failure)
Testing ADH-AES256-SHA                 NO (sslv3 alert handshake failure)
Testing DHE-RSA-AES256-SHA             YES
Testing DHE-DSS-AES256-SHA             NO (sslv3 alert handshake failure)
Testing AES256-SHA                     NO (sslv3 alert handshake failure)
# Logon to Azure ARM
$Azure = Get-AzureRmEnvironment 'AzureCloud'
$Env = Login-AzureRmAccount -Environment $Azure -Verbose
# Select Subscription
Select-AzureRmProfile -Profile $Env
$Subscription = (Get-AzureRmSubscription | Out-GridView -Title "Choose a Source Subscription ..." -PassThru)
# Select Subscription Function
Function Subscription {
@pburkholder
pburkholder / lean_coffee.md
Created December 22, 2015 15:46 — forked from justinredd/lean_coffee.md
Lean Coffee

Lean Coffee

  • 60 - 90 minutes
  • 5 - 11 people

Materials

  • Table + chairs
  • PostIts and Pens
  • Timer
@pburkholder
pburkholder / devWrkstnConfig.ps1
Last active September 16, 2015 17:07 — forked from gryte/devWrkstnConfig.ps1
Windows Workstation Config for Dev Environment for Chef Cookbooks
# launch powershell with admin privileges
# run:
# install chocolately
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
# update to WMF 5 & powershell version 5
choco upgrade powershell -pre
# reboot machine
# launch powershell with admin privileges
@pburkholder
pburkholder / gist:dfa4b47e625e8f0784fe
Last active September 15, 2015 10:41 — forked from ncerny/gist:8d4aa3696e460668518f
Windows Development Kit for Chef
launch powershell with admin privileges
run:
Install-Package -name git -provider chocolatey
Install-Package -name chefdk -minimumVersion 0.6.0.1 -provider chocolatey
Install-Package -name atom -provider chocolatey
Open powershell window as user
apm install linter
@pburkholder
pburkholder / gist:a9cdde0b33be8d5e3c08
Created February 20, 2015 02:00 — forked from tyler-ball/gist:f7c16e814265f34260e9
Shared examples in rspec/serverspec.....

Create the following folder structure in your cookbook:

test
└── integrationq
    ├── helpers
    │   ├── serverspec
    │   │   ├── shared_serverspec_tests
    │   │   │   └── shared_tests2.rb
    │   │   └── spec_helper.rb
# Orgmapper snippet to output all nodes with client versions in all organizations to a JSON file
# To Use:
# 1) Start orgmapper
# 2) Load the script
# eval(::File.read("/path/to/orgmapper_all_client_versions.rb"))
# 3) output will be printed to the screen and also written to JSON_OUTPUT_FILE
JSON_OUTPUT_FILE = 'chef_versions.json'

Mapping Nodes to Organizations

Chef 11.x

You'll need to run this on the Server in Orgmapper, eg:

/opt/opscode/bin/orgmapper
orgmapper>> eval(::File.read("/path/to/code.rb"))
#!/usr/bin/env ruby -wKU
#
# by Kelan Champagne
# http://yeahrightkeller.com
#
# A script to generate a personal podcast feed, hosted on Dropbox
#
# Inspired by http://hints.macworld.com/article.php?story=20100421153627718
#
# Simply put this, and some .mp3 or .m4a files in a sub-dir under your Dropbox