This file contains hidden or 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
/* | |
* Copyright (c) 2018 Nike, inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License") | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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 groovy | |
import com.caseyscarborough.colorizer.Colorizer | |
/** | |
* The dependencies | |
*/ | |
@Grapes([ | |
@Grab(group='com.caseyscarborough.colorizer', module='groovy-colorizer', version='1.0.0') | |
]) |
This file contains hidden or 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 python3 | |
import boto3 | |
import base64 | |
import json | |
import argparse | |
import requests | |
def get_token(url, account_id, name, region): |
This file contains hidden or 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 groovy.json.JsonBuilder | |
import org.joda.time.DateTime | |
import org.joda.time.DateTimeZone | |
import org.joda.time.format.DateTimeFormatter | |
import org.joda.time.format.ISODateTimeFormat | |
import java.security.KeyPair | |
import java.security.KeyPairGenerator | |
import java.security.PrivateKey | |
import java.security.PublicKey |
This file contains hidden or 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 com.amazonaws.auth.BasicAWSCredentials | |
import com.amazonaws.internal.StaticCredentialsProvider | |
import com.amazonaws.services.kms.AWSKMSClient | |
import com.amazonaws.services.kms.model.EncryptRequest | |
import groovy.json.JsonBuilder | |
import groovy.transform.Field | |
import groovyx.net.http.HTTPBuilder | |
import org.joda.time.DateTime | |
import org.joda.time.DateTimeZone | |
import org.joda.time.format.DateTimeFormatter |
This file contains hidden or 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 com.amazonaws.Request | |
import com.amazonaws.auth.AWS4Signer | |
import com.amazonaws.auth.BasicSessionCredentials | |
import com.amazonaws.http.HttpMethodName | |
import com.amazonaws.internal.EC2MetadataClient | |
import com.amazonaws.services.securitytoken.model.AssumeRoleRequest | |
import com.amazonaws.services.securitytoken.model.transform.AssumeRoleRequestMarshaller | |
import com.amazonaws.util.json.Jackson | |
import groovyx.net.http.* |
This file contains hidden or 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
jfield@fieldju-~/Development/GIT Projects/abops-15:30:45> vagrant up | |
rm -rf cfengine | |
cp -r policies/cf-sketch-runfile.cf policies/controls policies/core policies/def.cf policies/failsafe policies/failsafe.cf policies/highlander policies/libraries policies/policy_server policies/services cfengine/masterfiles | |
Reading dev_projects.conf | |
Found project download mapped to port 9090. | |
Found project fly-download-mobile mapped to port 9091. | |
[default] VM already created. Booting if it's not already running... | |
[default] Clearing any previously set forwarded ports... | |
[default] Forwarding ports... | |
[default] -- 22 => 2222 (adapter 1) |
This file contains hidden or 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
[12-11-21 09:06:23.785] {http://*:8080-6} SessionImpl[aaajIarWqykyq-pKw5JSt,/rb-foreman]: can't serialize session | |
java.io.NotSerializableException: cnwk.foreman.service.ForemanDaoImpl$$EnhancerByCGLIB$$be119208 | |
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164) | |
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518) | |
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483) | |
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400) | |
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158) | |
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518) | |
at |
This file contains hidden or 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
public List<EditorialReview> getReviewsToBePublished() { | |
final AbstractScopedEntitySearch<EditorialReview> search = | |
new AbstractScopedEntitySearch<EditorialReview>() { | |
@Override | |
protected Class<EditorialReview> getType() { | |
return EditorialReview.class; | |
} | |
@Override | |
public String getQueryString() { |