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
### Nicholas Leader | |
### 8.19.2019 | |
### Terraform main config for Lamda function with API | |
### see Python file for details on the actual function | |
### requires the API Terrform config as well. | |
### Terraform script expects Python file to be in S3 bucket | |
# Configure the AWS Provider | |
# credential reference https://www.terraform.io/docs/providers/aws/index.html#authentication | |
# API / Lamda reference https://learn.hashicorp.com/terraform/aws/lambda-api-gateway |
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
<# Nicholas Leader | |
6.9.2020 | |
Report on AD users that belong to certain AD groups | |
Including manager details | |
#> | |
#date stamp in string | |
$DateStamp = get-date -Format MM.dd.yyyy.mm | |
#What group you're looking for |
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
# Nicholas Leader | |
# 10.27.2021 | |
# AD group random sort | |
(Get-ADGroupMember 'Name_of_AD_group).name | sort-object -property {get-random} |
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
<# | |
Nicholas Leader | |
10.03.2022 | |
script to: | |
pull AD accounts with a preceding 'a-', that are enabled |
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 secrets | |
import datetime | |
today = datetime.date.today() | |
roomcleantasks = ["trash","books","stuffies","coloringbooks/magazines","clothes"] | |
print("") | |
print("For" + " " + str(today) + ", " + "Please pick-up" + " " + secrets.choice(roomcleantasks) + "!") | |
print("") |
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
# returns your current public / external IP via querying API | |
# Adapted from code ipify code samples: https://www.ipify.org/ | |
# May need to install 'requests' manully via PIP etc, as 'requests' isn't install by default with python | |
# console clear method - avoids another import https://stackoverflow.com/questions/72105595/clearing-console-in-python | |
import requests | |
ip = requests.get('https://api.ipify.org').text | |
# clearing the console output | |
print("\033c", end='') |
OlderNewer