Skip to content

Instantly share code, notes, and snippets.

View jrnt30's full-sized avatar

Justin Nauman jrnt30

View GitHub Profile
@jrnt30
jrnt30 / secret.rb
Created March 16, 2016 13:47 — forked from sethvargo/secret.rb
Example Chef extension to extract secrets from HashiCorp's Vault
# Please see the following blog post for more information:
#
# https://www.hashicorp.com/blog/using-hashicorp-vault-with-chef.html
#
resource_name :vault_secret
property :path, String, name_property: true
property :destination, String
@jrnt30
jrnt30 / Stopcallinghome.txt
Created December 15, 2015 19:49 — forked from CHEF-KOCH/Stopcallinghome.txt
Windows 10 seems to be an privacy nightmare, here is how you can stop the home calling function
Microsoft's Windows 10 has permission to spy on you
Well first of all "spying" is a bit misleading, it's written down in the eula/terms what can be collected, the major problem is that
this will be collected even on the first installation without getting any chance to change that.
Available Tools:
Destroy Windows 10 Spying
DoNotSpy10
@jrnt30
jrnt30 / ec2tags.rb
Last active August 29, 2015 14:16 — forked from mlehner616/ec2tags.rb
require 'facter'
require 'json'
if Facter.value("ec2_instance_id") != nil
instance_id = Facter.value("ec2_instance_id")
region = Facter.value("ec2_placement_availability_zone")[0..-2]
tags = Facter::Util::Resolution.exec("aws ec2 describe-tags --region #{region} --filters \"Name=resource-id,Values=#{instance_id}\" --query 'Tags[*].{value:Value,key:Key}'")
parsed_tags = JSON.parse(tags)
parsed_tags.each do |tag|