- monitoring
- is this the job of our container runner (i.e. cloud foundry)
- how to kick off?
- orchestration if there are several apps/containers that need to run? Is this part of cloud foundry or another piece that may be required?
- what's the guidance of how to provide data to be used?
- should it be the job of the python code to acquire (from files via scp, query a db)? Something else?
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
async void Main() | |
{ | |
// baby first names https://github.com/hadley/data-baby-names | |
var fnames = ReadFileAsync(@"C:\temp\depersonal\bfnames.csv"); | |
// surnames https://github.com/fivethirtyeight/data/blob/master/most-common-name/surnames.csv | |
var lnames = ReadFileAsync(@"C:\temp\depersonal\surnamesClean.csv"); | |
var testNames = ReadFileAsync(@"c:\temp\depersonal\nbaPlayers.csv"); | |
var r = new Random(); | |
int Max = 3; | |
var result = new int[Max]; |
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
sequenceDiagram | |
VNDLY->>+Workday: Raise Contract End (via Connector) | |
CML->>+VNDLY: update PO and extend date | |
VNDLY->>+Workday: send new PO (via file) | |
Workday->>+Workday: Reject change of PO, because of Contract End |
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
sequenceDiagram | |
WebsiteCheck ->> Scanner: Does WebsiteA exist? | |
Scanner ->> WebsiteA: Get Request | |
WebsiteA ->> Scanner: Yes, but redirect to WebsiteB | |
Scanner ->> WebsiteB: Get Request | |
WebsiteB ->> Scanner: Good Response | |
Scanner ->> WebsiteCheck: Yes, but it is really WebsiteB | |
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
function GraphMe { | |
[CmdletBinding] | |
param( | |
[Parameter()] | |
[Hashtable] $something | |
) | |
<# | |
max_value = max(count for _, count in data) | |
increment = max_value / 25 |
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
$d2 = dir -recurse -filter *.doc | |
$word = new-object -comobject Word.Application | |
$NotFound = @() | |
$errors = @() | |
$d2 | ForEach-Object { | |
$doc = $null | |
try{ | |
$f = $_; |
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 alpine:latest as base | |
from python:3.7.3-alpine as base | |
from base as builder | |
RUN apk add --no-cache python3 python3-dev py-pip build-base | |
# create directory to copy files to | |
RUN mkdir /install/ | |
WORKDIR /install |
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
<# | |
https://gist.github.com/kstrauss/eb99f398d191426038067ab15a6a951a | |
Get filenames of PDF files, which are supposed to match the customer names in the sales Requests/Commission reports. | |
Potentially this should be limited to only a set of files from a certain period ?? | |
#> | |
Cd 'Z:\CUSTOMER SERVICE\Customer Executed Contracts\ENDURE MARKETING' | |
$fnames = dir *.pdf | %{ $_.basename} | |
<# | |
Go copy the customer names you want to compare against. (i.e. go to excel and select the customer |
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
digraph G { | |
graph [fontsize=10 fontname="Verdana" compound=true]; | |
node [shape=record fontsize=10 fontname="Verdana"]; | |
subgraph cluster_Development { | |
style=filled; | |
color=lightgrey; | |
label = "Development"; | |
ReadSpecs -> PhysicalSentIntegration; | |
ReadSpecs -> PhysicalReceivedIntegration; |
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
void Main() | |
{ | |
var closer = new Subject<Tuple<WindowState, IList<long>>>(); | |
closer.Select(c => { | |
if (c.Item1 == WindowState.Open) | |
{ | |
return $"Should email, with an event of {c.Item2.Single()}"; | |
} | |
else |
NewerOlder