Skip to content

Instantly share code, notes, and snippets.

View gregn610's full-sized avatar
💭
very important stuff

Greg gregn610

💭
very important stuff
View GitHub Profile
@gregn610
gregn610 / cf.template
Created May 29, 2020 07:13
cloudformation template with templatebody sub
---
AWSTemplateFormatVersion: 2010-09-09
Description: "Conformance Pack of Operational Best Practices for Amazon S3 with Remediation."
Resources:
ConformancePackS3Operations:
Type: AWS::Config::ConformancePack
Properties:
ConformancePackName: "CyberOpsS3RemediationOperations"
FROM alpine:3.7
RUN mkdir /src
WORKDIR /src
RUN apk --no-cache --update add \
alpine-base \
alpine-sdk \
autoconf \
automake \
git \
{
"raw": {
"attributeTypes": [
"( 1.2.840.113556.1.4.149 NAME 'attributeSecurityGUID' SYNTAX '1.3.6.1.4.1.1466.115.121.1.40' SINGLE-VALUE )",
"( 1.2.840.113556.1.4.1703 NAME 'msDS-FilterContainers' SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )",
"( 1.2.840.113556.1.4.655 NAME 'legacyExchangeDN' SYNTAX '1.2.840.113556.1.4.905' SINGLE-VALUE )",
"( 1.2.840.113556.1.4.21 NAME 'cOMProgID' SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )",
"( 1.2.840.113556.1.4.2147 NAME 'msDNS-PropagationTime' SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' SINGLE-VALUE )",
"( 1.2.840.113556.1.6.18.1.301 NAME 'msSFU30KeyAttributes' SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )",
"( 1.2.840.113556.1.4.686 NAME 'domainID' SYNTAX '1.3.6.1.4.1.1466.115.121.1.12' SINGLE-VALUE )",
@gregn610
gregn610 / keras_simple_rnn.py
Created September 22, 2016 18:46
Keras SimpleRNN
batch_size = modelData.batch_size
timesteps = modelData.X_train.shape[1] #xshape[1]
input_dim = modelData.X_train.shape[2] #xshape[2]
in_neurons = input_dim +7
hidden_layers = 1
hidden_neurons = in_neurons
out_neurons = 3
ret_sequences = True
rnn_activation = 'relu'
dense_activation = 'linear'