This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"math" | |
"os" | |
"strconv" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |