This file contains hidden or 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
| from google.oauth2 import service_account | |
| from googleapiclient.discovery import build | |
| import datetime | |
| import csv | |
| SCOPES = ['https://www.googleapis.com/auth/calendar', | |
| 'https://www.googleapis.com/auth/admin.directory.user', | |
| 'https://www.googleapis.com/auth/admin.directory.resource.calendar' | |
| ] | |
| KEY_FILE = 'credentials-prod.json' |
This file contains hidden or 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 hidden or 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 hidden or 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: |