Skip to content

Instantly share code, notes, and snippets.

@ezeeetm
ezeeetm / nationWideEats.ps1
Created March 12, 2016 03:39
scrapes stuff
$locations = @(
@('3747','Plaza One'),
@('3743','Plaza Three')
)
$restaurants = @(
'Claddagh''s Irish Pub',
'Mikey''s Late Night Slice',
'Greek Street',
'Phy Pho Phom',
# Note: the script below is to determine the SMB version of a standalone Windows system
# If you are checking a file server or other system with known active SMB connections, simply run Get-SmbConnection in admin shell,
# and observe the various negotiated SMB dialects of the individual sessions
$loopBack = dir \\localhost\c$
$smbVer = Get-SmbConnection -ServerName localhost | Select Dialect | Sort-Object -Unique
$smbVer
<#
This will return something like:
@ezeeetm
ezeeetm / dloadCleanup.ps1
Last active December 19, 2017 19:01
for nate...
<#
.SYNOPSIS
deletes files on login by file age and a list of file name regular expressions
.DESCRIPTION
srsly man, that's all it does.
.EXAMPLE
.\dloadCleanup.ps1
#>
@ezeeetm
ezeeetm / main.py
Created December 22, 2017 00:06
Automating Vulnerability Management on AWS with TripWire IP360
#!/usr/bin/env python
import xmlrpclib
import ssl
import logging
import os
import sys
import time
logging.basicConfig(level=logging.DEBUG)
from sagemaker import get_execution_role
role = get_execution_role()
bucket='sagemaker-12272017t1706'
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.