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
/* * * * * * * | |
Tristan Madden | |
08/18/2019 | |
* * * * * * * */ | |
PImage img1; | |
PImage img2; | |
PImage imgMask; | |
//This is the number of frames the animation will loop if record == true | |
int totalFrames = 60; | |
boolean record = 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
/********************* | |
*Function: addLocation | |
*Description: This function is called every time a form is submitted. Firstly, it adds the name of the store | |
* to the location column. The Column is a hard-coded value, while the row is automatically populated. | |
* Secondly, the entry is duplicated to a secondary spreadsheet called "Aggregate". | |
*@param {Event Object}: e | |
*@returns {Nothing}: N/A | |
**********************/ | |
function addLocation(e) { | |
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
/************** | |
*Function: onFormSubmitDebug | |
*Description: Sends an email containing form data. This is useful for debugging. | |
*@param {Event Object}: e | |
*@returns: N/A | |
**************/ | |
function onFormSubmitDebug(e) { | |
var target_id = "REDACTED"; | |
var target_spreadsheet = SpreadsheetApp.openById(target_id); |
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
SETLOCAL EnableDelayedExpansion | |
::Step 1. Define the source path. | |
SET SOURCE="payload" | |
::Step 2. Define the file name that you will be reading your targets from. | |
SET FILE_NAME= targets.txt | |
::Step 3. Define the path to save the log to. | |
set LOG_PATH="log.txt" |
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
# Get connected to Exchage Online Management | |
Import-Module ExchangeOnlineManagement | |
Connect-ExchangeOnline -UserPrincipalName <UPN> |
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
# Connect to Exchage Online Management | |
Import-Module ExchangeOnlineManagement | |
Connect-ExchangeOnline | |
#Connect to Azure Active Directory | |
Import-Module AzureAD | |
Connect-AzureAD |
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
# Tristan Madden | |
# 2021-09-16 | |
# trimad.github.io | |
# Get connected to Exchage Online Management | |
Import-Module ExchangeOnlineManagement | |
Connect-ExchangeOnline -UserPrincipalName <UPN> | |
# Get a list of all mailbox aliases | |
# Source: https://docs.microsoft.com/en-us/powershell/module/exchange/get-mailbox?view=exchange-ps |
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
/* Tristan Madden | |
* 2017-07-18 | |
* trimad.github.io */ | |
//int [] A = {2, 5, 3, 0, 2, 3, 0, 3}; | |
int [] A = {6, 0, 2, 0, 1, 3, 4, 6, 1, 3, 2}; | |
int []B = new int[A.length]; | |
void setup() { | |
countingSort(A); |
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
#Get connected to Exchage Online Management | |
Import-Module ExchangeOnlineManagement | |
Connect-ExchangeOnline -UserPrincipalName <UPN> |
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
/*pull the image*/ | |
docker pull mysql:latest | |
/*Run a container on port 3306 with while setting an environment variable*/ | |
docker run --name revms -p 3306:3306 -e MYSQL_ROOT_PASSWORD=SUPERSECUREPASSWORD -d mysql | |
/*Access the container with an interactive SSH terminal*/ | |
docker exec -it revms bash | |
/*Login to mysql with a username and password. Note that there is no space between the '-p' and the password.*/ | |
mysql -u root -pSUPERSECUREPASSWORD | |
/*Create a database*/ | |
create database revdb; |