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
| Add-Type -AssemblyName System.Windows.Forms | |
| Add-Type @" | |
| using System; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| public class APIFuncs { | |
| [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] | |
| public static extern int GetWindowText(IntPtr hwnd,StringBuilder lpString, int cch); | |
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
| #!/bin/bash | |
| # Script to regenerate the Clevis LUKS bindings (and to track the changes causing them.) | |
| # PCR# | |
| # Used by From Location Measured Objects Log Use Reported By | |
| # 0 | |
| # Firmware 💻 UEFI Boot Component Core system firmware executable code UEFI TPM event log n/a | |
| # 1 | |
| # Firmware 💻 UEFI Boot Component Core system firmware data/host platform configuration; typically contains serial and model numbers UEFI TPM event log n/a | |
| # 2 |
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
| import enum | |
| import functools | |
| import json | |
| import uuid | |
| from datetime import datetime, timedelta | |
| import pyrfc3339 | |
| import ruamel.yaml | |
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
| import csv | |
| import typing | |
| import typing as t | |
| import click | |
| from furl import furl | |
| from timelength.timelength import TimeLength | |
| class TimelengthType(click.ParamType): |
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
| # This is the list of leaf folders which exist in the entire sync infrastructure. | |
| # This file is processed as a list of command line arguments. | |
| # | |
| # Support syntax: | |
| # Template Controls - prevent templated lines from existing | |
| # --not-if : Don't template if device condition matches | |
| # --only-if : Template only if device condition matches | |
| # Share Controls - restrict hosts the folder is offered to (and whether they elect to receive it) | |
| # --not-shared-if: Don't offer this template result to a device if it matches | |
| # --only-shared-if: Only offer this template result to a device if it matches |
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
| # -*- coding: utf-8 -*- | |
| from __future__ import absolute_import, division, print_function | |
| __metaclass__ = type | |
| try: | |
| from __main__ import display | |
| except ImportError: | |
| from ansible.utils.display import Display |
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
| #!/bin/bash | |
| # See: https://stackoverflow.com/questions/59895/how-to-get-the-source-directory-of-a-bash-script-from-within-the-script-itself | |
| # Note: you can't refactor this out: its at the top of every script so the scripts can find their includes. | |
| SOURCE="${BASH_SOURCE[0]}" | |
| while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | |
| DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )" | |
| SOURCE="$(readlink "$SOURCE")" | |
| [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located | |
| done | |
| SCRIPT_DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )" |
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
| #!/bin/bash | |
| # Script to build a container from common gitlab CI parameters. | |
| declare -a logstack | |
| function log() { | |
| echo -e "\033[0;93m$*\e[0m" | |
| } | |
| function glog() { |
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
| # Project editorconfig file. | |
| root = true | |
| # Unix-style newlines with a newline ending every file | |
| [*] | |
| end_of_line = lf | |
| insert_final_newline = true | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true | |
| max_line_length = 120 |
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
| [defaults] | |
| nocows = 1 | |
| remote_tmp=/tmp | |
| inventory = inventory | |
| timeout=20 | |
| # vault-keyring.py uses the Python 'keyring' module to retrieve and store the | |
| # vault password. This should be reasonably cross-platform and you definitely | |
| # should have a working python environment if you're using this repo. | |
| #vault_password_file = vault-keyring.py |