Keybase proof
I hereby claim:
- I am jgstew on github.
- I am jgstew (https://keybase.io/jgstew) on keybase.
- I have a public key whose fingerprint is CD05 F604 988E 929F 916D CEB0 B357 6906 E7DC 153A
To claim this, I am signing this object:
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "AWS CloudFormation Template to create a BigFix Evaluation root server within the resource limits of the AWS Free Tier." | |
} |
# 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 | |
# 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 | |
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) |
import os | |
def getLoggedOnUserName(): | |
return os.getenv( "LOGNAME", os.getenv("USERNAME") ) | |
# another UNIX option: pwd.getpwuid(os.getuid())[0] | |
# http://stackoverflow.com/questions/12821946/how-can-i-remove-the-white-characters-from-configuration-file | |
def getStrippedFile(filename): |
I hereby claim:
To claim this, I am signing this object:
" <br/> \n// Flagged as a potential virus " + | |
$('#basic-info > div > div > table > tbody > tr:has(> td:contains("Detection ratio:") ) > td:nth-child(2)').text().trim().split(' / ')[0] + | |
" times <br/> \n// TrID: " + | |
$('div#file-details.extra-info > div > div > table > tbody').children('tr:has(> td.field-key:contains("TrID") )').children('td.field-value').text().trim() + | |
" <br/> \n// Comments: " + | |
$('#file-details > div > div:has( > span:contains("Comments") )').contents().filter(function() { return this.nodeType == 3; }).text().trim() + | |
" <br/> \n// ProductName: " + | |
$('#file-details > div > div:has(> span:contains("Product"))').contents().filter(function() { return this.nodeType == 3; }).text().trim() + | |
" <br/> \n// ProductVersion: " + | |
$('#file-details > div > div:has( > div:contains("ProductVersionNumber") )').children('div.floated-field-value').text().trim() + |
#version=DEVEL | |
# Reference: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/sect-kickstart-syntax.html | |
# System authorization information | |
auth --enableshadow --passalgo=sha512 | |
# Use CDROM installation media | |
install | |
cdrom | |
# Use text install |
<img height='70%' src='<?Relevance "data:image/png;base64," & unique value of (concatenations of values of it) of results of bes properties "base64 encoded screenshot" ?>'/> |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style> | |
table, th, td { | |
border: 1px solid black; | |
border-collapse: collapse; | |
} | |
th, td { | |
padding: 5px; |