Skip to content

Instantly share code, notes, and snippets.

<dependency>
<groupId>com.jayway.restassured</groupId>
<artifactId>rest-assured</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>json-path</artifactId>
</dependency>
<dependency>
@jwkidd3
jwkidd3 / dashboard
Last active October 30, 2019 13:32
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta4/aio/deploy/recommended.yaml
kubectl -n kubernetes-dashboard describe secret $(kubectl -n kubernetes-dashboard get secret | grep admin-user | awk '{print $1}')
kubectl proxy
http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
node {
script {
try {
// Context import fails if it already exists
sh 'zap-cli --zap-url zap -p 8000 --api-key 5364864132243598723485 --port 8000 context import /zap/data/WebGoat.context'
}
catch (Exception e) {
}
}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<configuration>
<context>
<name>WebGoat</name>
<desc/>
<inscope>true</inscope>
<incregexes>http://webgoat:8080.*</incregexes>
<tech>
<include>Db</include>
<include>Db.Firebird</include>
FROM jenkins/jenkins:lts
USER root
RUN apt-get update
RUN apt-get install -y python-pip
RUN pip install --upgrade pip
RUN pip install --upgrade zapcli
version: '3'
services:
jenkins:
build:
dockerfile: jenkins-dockerfile
context: .
ports:
- 8080:8080
- 50000:50000
#cloud-config
package_upgrade: true
write_files:
- path: /etc/systemd/system/docker.service.d/docker.conf
content: |
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd
- path: /etc/docker/daemon.json
content: |
Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "2.7.0"
name = "complete-example"
cidr = "10.10.0.0/16"
azs = ["us-east-1c", "us-east-1b"]
public_subnets = ["10.10.1.0/24", "10.10.2.0/24"]
https://kiddcorp.signin.aws.amazon.com/console
sudo yum -y install jq git
sudo pip install --upgrade pip
sudo ln -s /usr/local/bin/pip /bin
sudo pip install --upgrade awscli
curl -O https://releases.hashicorp.com/terraform/0.12.4/terraform_0.12.4_linux_amd64.zip
sudo unzip terraform_0.12.4_linux_amd64.zip -d /usr/bin/