Skip to content

Instantly share code, notes, and snippets.

package main
import (
"bufio"
"fmt"
"log"
"math"
"os"
"strconv"
)
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"'
#!/usr/bin/python
"""return the product of all ints in a list except the current index"""
def get_products(values):
"""relies on range and len to produce an index"""
output = []
for i in range(len(values)):
lst = []
for value in values: