Skip to content

Instantly share code, notes, and snippets.

View delize's full-sized avatar
💭
I may be slow to respond.

Andrew Doering delize

💭
I may be slow to respond.
View GitHub Profile
Facter.add('bitlocker_status') do
confine osfamily: 'Windows'
confine kernelmajversion: '10.0'
setcode do
require 'json'
bitlocker_status = {}
powershell = 'C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe'
cmd = '"Get-BitlockerVolume -MountPoint C: | ConvertTo-Json"'
@delize
delize / list-group-sample.py
Created August 12, 2016 19:46 — forked from sharifsalah/list-group-sample.py
Demo script to retrieve a list of Google Groups in a Google Apps domain based on the Directory API / Admin SDK. Requires access to an account with read access to groups and as well as a project with access to the the Admin SDK service.
#
# Copyright 2013 Sharif Salah
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software