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
import json | |
import boto3 | |
import pickle | |
import sys | |
region_name = 'REGION' | |
queue_name = 'QUEUE-NAME' | |
aws_access_key_id = 'ACCESS-KEY-ID' | |
aws_secret_access_key = 'SECRET-ACCESS-KEY' | |
delete_messages = True |
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
""" | |
This sample script demonstrates how to iterate through the people | |
objects in a list and pull their giving records for a specific fund. | |
""" | |
import pypco | |
### Constants (change these for your environment) ### | |
# App IDs and Secrets |
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
if ((Test-Path -Path "C:\Program Files (x86)\Teams Installer\setup.json") -eq $false) { | |
if ((Test-Path -Path "C:\IntunePSTeamsInstall") -eq $true) { | |
Remove-Item -Path "C:\IntunePSTeamsInstall" -Recurse -Force | |
} | |
New-Item -Path "C:\IntunePSTeamsInstall" -ItemType Directory -Force > $null | |
Set-Location -Path "C:\IntunePSTeamsInstall" | |
Add-Content "install.log" -Value (((Get-Date).DateTime.toString()) + " Downloading installer file.") | |
Invoke-WebRequest -Uri "https://aka.ms/teams64bitmsi" -OutFile "Teams_windows_x64.msi" -UseBasicParsing | |
$found_file = Test-Path -Path "Teams_windows_x64.msi" | |
Add-Content "install.log" -Value (((Get-Date).DateTime.toString()) + " Done downloading installer file. Files is present: $found_file") |
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
# Script Variables | |
$LOGGING_SUBDIR = "custom_deploy\logs" | |
# Setup logging environment | |
## Make directory if it doesn't exist | |
$log_dir = ($env:ProgramData + "\" + $LOGGING_SUBDIR) | |
$log_path = ($log_dir + "\examview_install.log") | |
if (! (Test-Path -Path $log_dir)) { |
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
import csv | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as ec | |
DEPT_ID = '12345' | |
PASSWD = '12345' | |
HOST = 'example.com' |
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
using System; | |
using Azure.Security.KeyVault.Secrets; | |
using Azure.Identity; | |
namespace kvtest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |