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
import time | |
import random | |
# win32com does not come with python | |
from win32com.client import Dispatch | |
xlApp = Dispatch("Excel.Application") | |
xlApp.Visible = 1 | |
xlApp.Workbooks.Add() | |
# http://web.archive.org/web/20090916091434/http://www.markcarter.me.uk/computing/python/excel.html | |
# http://stackoverflow.com/questions/510348/how-can-i-make-a-time-delay-in-python | |
time.sleep(.5) |
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
' !!! Moved to here: https://github.com/jgstew/tools/blob/master/VBS/msiGetProperty.vbs | |
' written by James Stewart ( @jgstew ) | |
' public domain, use at your own risk | |
' this vbs script will get msi property values | |
' the default is to get "ProductName" | |
' the default can be changed by renaming the file, or changing the initial msiProperty value | |
' Example: msiGetPropertyProductVersion.vbs will get ProductVersion |
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
' !!! Moved to here: https://github.com/jgstew/tools/blob/master/VBS/zipGetFilesList.vbs | |
' zipGetFilesList.vbs | |
' Written by James Stewart ( @jgstew ) | |
' Public Domain - use at your own risk |
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
# parse character stats from http://arcticmud.org/ | |
# - likely works with other MUDs | |
import re | |
# http://regexr.com/397kv | |
# http://www.pythonregex.com/ | |
# Str (?P<Str>\d+) Int (?P<Int>\d+) Wis (?P<Wis>\d+) Dex (?P<Dex>\d+) Con (?P<Con>\d+)( Cha )*(?P<Cha>\d+)* | |
# Str (\d+) Int (\d+) Wis (\d+) Dex (\d+) Con (\d+) | |
def main(sCharStats): | |
import re | |
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
# example FizzBuzz | |
def FizzBuzz(iMax = 100): | |
for num in xrange(1,iMax+1): | |
msg = '' | |
if num % 3 == 0: | |
msg += 'Fizz' | |
if num % 5 == 0: | |
msg += 'Buzz' | |
print msg or num | |
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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "AWS CloudFormation Template to create a BigFix Evaluation root server within the resource limits of the AWS Free Tier." | |
} |
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
__RelaySelect_Automatic=1 | |
_BESClient_Resource_StartupNormalSpeed=1 | |
_BESClient_Download_RetryMinutes=1 | |
_BESClient_Download_CheckAvailabilitySeconds=120 | |
_BESClient_Resource_WorkIdle=20 | |
_BESClient_Resource_SleepIdle=500 | |
_BESClient_PowerHistory_EnablePowerHistory=1 | |
_BESClient_Comm_WakeOnLanForwardingEnable=1 | |
_BESClient_Comm_CommandPollEnable=1 | |
_BESClient_Comm_CommandPollIntervalSeconds=7200 |
NewerOlder