Skip to content

Instantly share code, notes, and snippets.

View mayormaier's full-sized avatar
☁️
in the clouds

Andrew mayormaier

☁️
in the clouds
View GitHub Profile
@mayormaier
mayormaier / lla-unlabeled.r
Last active December 11, 2022 20:28
Unlabeled Log Linear Analysis
# Get the data and factor it as needed
data = data.frame()
# Create contingency tables
data.table = xtabs(~A + B + C, data=data)
# Create models
library(MASS)
model.0 = loglm(~A + B + C + A:B + A:C + B:C + A:B:C, data = table.phishingABC, fit=TRUE)
model.1 = loglm(~A + B + C + A:B + A:C + B:C, data = table.phishingABC, fit=TRUE)
@mayormaier
mayormaier / nessus-s3-policy.json
Created October 3, 2022 18:05
Nessus Agent AWS S3 Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::nessus-agents"
},
{
@mayormaier
mayormaier / awscp.sh
Created May 18, 2022 02:27
Copying local files to aws s3
aws s3 cp . s3://bucket-name --recursive --exclude "exclude-path"
@mayormaier
mayormaier / wisdompedmed.local.conf
Created May 12, 2022 20:31
nginx conf for nginx tutorial
server {
listen 80 default_server;
root /var/www/wisdompetmed.local;
server_name wisdompetmed.local www.wisdompetmed.local;
index index.html index.htm index.php;
access_log /var/log/nginx/wisdompetmed.local.access.log;
@mayormaier
mayormaier / euclid-extended.py
Created March 24, 2022 03:16
Uses the extended euclidian algorithm to find the multiplicative inverse of two numbers, a and b.
# If a and b are positive integers, then there are always integers m and n so that the GCD of a and b equals m·a+n·b.
# i.e., Since the GCD of 210 and 45 is 15, we should be able to write 15 as a sum of multiples of 210 and 45.
# Finding multiplicative inverses mod p
a = 3276
b = 29
print("Finding Multiplicative Inverse of", a, "and", b)
if a < b:
temp = a
@mayormaier
mayormaier / keybase.md
Created October 20, 2021 02:25
My Keybase Info

Keybase proof

I hereby claim:

  • I am mayormaier on github.
  • I am mayormaier (https://keybase.io/mayormaier) on keybase.
  • I have a public key ASDjgdtsB6_4LFTVMo9P-1ykKzmuwotP9-mujCzuFrc65Qo

To claim this, I am signing this object: