Skip to content

Instantly share code, notes, and snippets.

# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# - https://github.com/mitre/caldera
#
#```
#vagrant up
#```
#
#Caldera will be running on http://172.30.1.2:8888 and only available from the current host and between local VMs.
@0x646e78
0x646e78 / Vagrantfile
Created May 14, 2020 14:57
Almost Kube
Vagrant.configure("2") do |config|
config.vm.define "k8smaster" do |k8smaster|
k8smaster.vm.box = "generic/ubuntu1804"
k8smaster.vm.hostname = "k8smaster"
k8smaster.vm.network "private_network", ip: "192.168.10.2"
k8smaster.vm.provider "vmware_fusion" do |v|
v.memory = 6144
v.cpus = 3
end
end
@0x646e78
0x646e78 / Vagrantfile
Last active October 7, 2022 00:03
Vagrant lab for Kubernetes with VMware Fusion
Vagrant.configure("2") do |config|
config.vm.define "k8smaster" do |k8smaster|
k8smaster.vm.box = "generic/ubuntu1804"
k8smaster.vm.hostname = "k8smaster"
k8smaster.vm.network "private_network", ip: "192.168.10.2"
k8smaster.vm.provider "vmware_fusion" do |v|
v.memory = 6144
v.cpus = 3
end
end
@0x646e78
0x646e78 / dd-dash-debug
Last active March 18, 2020 06:37
Datadog debug output for No results dashboard issue
2020/03/18 06:26:21 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2020/03/18 06:26:21 [INFO] Terraform version: 0.12.21
2020/03/18 06:26:21 [INFO] Go runtime version: go1.12.13
2020/03/18 06:26:21 [INFO] CLI args: []string{"/usr/bin/terraform", "apply", "-auto-approve"}
2020/03/18 06:26:21 [DEBUG] Attempting to open CLI config file: /root/.terraformrc
2020/03/18 06:26:21 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/03/18 06:26:21 [INFO] CLI command args: []string{"apply", "-auto-approve"}
2020/03/18 06:26:21 [DEBUG] New state was assigned lineage "c9b38a89-fcce-92a1-389e-706ecf19bdca"
@0x646e78
0x646e78 / Gitlab-Docker-certbot.md
Last active March 11, 2019 18:50
gitlab inside docker with certs from Let's Encrypt

Running gitlab inside docker with certs from Let's Encrypt

This will serve SSH and HTTPS (with which I got an A+ from testssl).

Creates three docker containers:

  • gitlab-prostgres
  • gitlab-redis
  • gitlab, which is linked to the other two. This contains nginx, sshd, git, gitlab.
alert(1);
@0x646e78
0x646e78 / scantastic-docker
Created August 2, 2016 11:20
Dockerfile for scantastic
FROM sebp/elk:latest
MAINTAINER auraltension "auraltension@riseup.net"
RUN apt-get update
RUN apt-get install -y git nmap masscan python-pip
RUN pip install requests elasticsearch xmltodict numpy
RUN git clone https://github.com/maK-/scantastic-tool
@0x646e78
0x646e78 / gist:8b8af776647657b579cc
Last active August 29, 2015 14:22
ossec-syscheck-decoder.sh
#!/usr/bin/env bash
# This requires bash 4+
# $ ./ossec-syscheck-decoder.sh
# File: /etc/sudoers
# Date: Tue Jun 2 15:45:45 AEST 2015
# # of changes: 0 changes
# File Size: 4002 Bytes
# File Mode: 100440
@0x646e78
0x646e78 / wordlist_length_limit.md
Last active August 2, 2016 11:21
Find wordlists of length n and shorter
#/usr/bin/env bash
LIST=$1
LEN=$2

for i in $(cat $LIST); do
  [ ${#i} -le $LEN ] && echo $i 
done