Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from sagemaker import get_execution_role | |
role = get_execution_role() | |
bucket='sagemaker-12272017t1706' |
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
#!/usr/bin/env python | |
import xmlrpclib | |
import ssl | |
import logging | |
import os | |
import sys | |
import time | |
logging.basicConfig(level=logging.DEBUG) |
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
<# | |
.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 | |
#> |
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
# 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: |
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
$locations = @( | |
@('3747','Plaza One'), | |
@('3743','Plaza Three') | |
) | |
$restaurants = @( | |
'Claddagh''s Irish Pub', | |
'Mikey''s Late Night Slice', | |
'Greek Street', | |
'Phy Pho Phom', |
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
<# | |
.SYNOPSIS | |
Command line utility for initiating blue-green deployments, to be called by a build step, or by another script, in a Jenkins job. | |
.PARAMETER region | |
Optional/has default value. Specifies the AWS region, e.g. 'us-east-1'. See script Param section for allowed values. | |
.PARAMETER environment | |
Required. Specifies a friendly name for the environment, e.g. 'dev'. See script Param section for allowed values. |
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
""" | |
wally.py - version 1.0 tested using Python 2.7.5 [MSC v.1500 32 bit (Intel)] on Windows 7 x64 | |
- Accepts command line arguments | |
- Opens simple IP:socket on a 4U2SEE LED wallboard | |
- Sends messages to control the behaviour of the 4U2SEE LED wallboard, defined by command line arguments and stdin | |
- Closes the socket | |
###################### | |
TODO | |
- add some minimal try/except error handling | |
- add minor debug verbose output |
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
<# | |
.SYNOPSIS | |
Command line utility for scheduled DR backups to an isolated offsite AWS account. | |
Logs to .\dailySnapShotLogs | |
.EXAMPLE | |
.\dailySnapShots.ps1 | |
Starts the long running script | |
.NOTES |
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
#accepted format: instanceId,Instance Name,Group,startTime,stopTime | |
#example (uncomment actual entries): | |
#i-c6e7bc27,LMS WebHead Golden Image,EVEN,1000,0100 | |
i-bc13aa91,OpenVPN,ALL,1100,2259 | |
i-80957b6c,SchoolPointe Jenkins 3.0,ALL,1100,2259 | |
#i-659e3f03,SchoolPointe Script Host I,ALL,0630,0930 | |
i-878ac3a6,SPWEB0A,EVEN,0900,1429 | |
i-24431c0a,SPWEB0D,ODD,0900,0100 | |
i-23eb9e09,SPWEB11,ODD,0900,0100 | |
i-7624515c,SPWEB12,EVEN,0900,1434 |
NewerOlder