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
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"profiles": |
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
// crude first implementation for proof | |
document.addEventListener('DOMContentLoaded', () => { | |
// Select the node that will be observed for mutations | |
const targetNode = document.getElementById('modal-holder'); | |
// Options for the observer (which mutations to observe) | |
const config = { attributes: true, childList: true, subtree: true }; | |
// Callback function to execute when mutations are observed |
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
// listen for creation of a modal | |
$(document).on('click', '.modal-with-react', function() { | |
addChildListListener('modal-holder') | |
}) | |
export function addChildListListener(elementId){ | |
// Select the node that will be observed for mutations | |
const targetNode = document.getElementById(elementId) | |
// Options for the observer (which mutations to observe) |
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
<# | |
.SYNOPSIS | |
This script was created for use in ConfigMger Run Scripts | |
.DESCRIPTION | |
The Members | |
.PARAMETER Member | |
Specifies an array of users or groups that this cmdlet adds to a security group. | |
You can specify users or groups by name or security ID (SID). | |
.EXAMPLE | |
Add-LocalAdministrator.ps1 -Member 'domain\user' |
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
<# | |
.SYNOPSIS | |
This script was created for use in ConfigMger Run Scripts | |
.DESCRIPTION | |
The client log files will be copied to a network share | |
.PARAMETER Logshare | |
Specifies the target share upon which to save the log files | |
.EXAMPLE | |
Get-CMClientLogFiles.ps1 -Logshare '\\server\share' | |
#> |
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
# Add multiple accounts for testing based on a single email address | |
class TestAccountsService | |
MAX_TRIES = 10 | |
def self.call(emails) | |
email_addresses = [] | |
Array(emails).each do |email| | |
email.downcase! | |
name = name_from_email(email) | |
create_support_user(email, name) |
OlderNewer