Skip to content

Instantly share code, notes, and snippets.

View Trimad's full-sized avatar
😡
AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH

Scream Skellygore Trimad

😡
AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
View GitHub Profile
@Trimad
Trimad / Open_Simplex_Noise_Texture_Blending.pde
Created April 7, 2022 22:30
Blending Textures With Open Simplex Noise
/* * * * * * *
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;
@Trimad
Trimad / ddr.js
Created April 7, 2022 22:27
Daily Donation Report
/*********************
*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) {
@Trimad
Trimad / ar.js
Created April 7, 2022 22:22
Aggregate Report
/**************
*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);
@Trimad
Trimad / robomirror.bat
Created April 7, 2022 22:14
Robo Mirror
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"
# Get connected to Exchage Online Management
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName <UPN>
@Trimad
Trimad / 0_combining_cmdlets
Last active November 17, 2021 20:29
Combining Cmdlets
# Connect to Exchage Online Management
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline
#Connect to Azure Active Directory
Import-Module AzureAD
Connect-AzureAD
@Trimad
Trimad / calendar_permissions.ps1
Last active April 13, 2022 00:26
PowerShell commands for managing calendar permissions.
# 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
@Trimad
Trimad / counting_sort.pde
Last active April 13, 2022 03:12
Counting Sort
/* 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);
#Get connected to Exchage Online Management
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName <UPN>
@Trimad
Trimad / 1_mysql_container.txt
Last active February 5, 2020 20:59
MediaWiki in Docker
/*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;