Skip to content

Instantly share code, notes, and snippets.

FROM aquasec/trivy:latest
RUN apk --no-cache add curl
RUN mkdir /root/.cache/trivy/db -p && curl -L https://github.com/aquasecurity/trivy-db/releases/latest/download/trivy-offline.db.tgz | tar -zxvf - -C /root/.cache/trivy/db/
@chashtag
chashtag / gen_xor.py
Created October 18, 2022 02:23
Generates a xor of given charset to produce target string
#!/usr/bin/env python3
import sys
import string
from random import choice
target = sys.argv[1]
mkxor = []
charset = string.ascii_letters + string.digits
docker pull redhat/ubi8;for x in $(docker run --rm redhat/ubi8 find /usr/bin -type f -executable -print| dos2unix);do echo RlJPTSByZWRoYXQvdWJpOApBUkcgZW50cnkKRU5WIGVudHJ5PSRlbnRyeQpFTlRSWVBPSU5UICRlbnRyeQ==|base64 -d|docker build - -t $(basename $x) --build-arg entry=${x};done
@chashtag
chashtag / galaxy.yml
Last active July 22, 2022 03:52
Ansible galaxy requirements file for RH Satellite 6.11
collections:
- a10.acos_axapi
- a10.acos_cli
- abaez.containers
- abaez.hashicluster
- abalage.elasticstack_podman
- abdulhasiba.mycollection
- abhaysinghshekhawat.kubernetes_multinode_cluster
- abhinavg97.rr_io
- acch.spectrum_scale_test
@chashtag
chashtag / 51_nested_in_vmware
Last active February 10, 2021 17:31 — forked from RabidCicada/51_nested_in_vmware
Before running 'hosted-engine --deploy', Put this file in /usr/libexec/vdsm/hooks/before_vm_start/51_nested_in_vmware on the ovirt node
#!/usr/bin/python
import os
import hooking
from ovirt_hosted_engine_setup import constants as ohostedcons
class NestedInVMWareHook(object):
@chashtag
chashtag / hosted_engine_custom.env
Created February 10, 2021 17:29 — forked from RabidCicada/hosted_engine_custom.env
Before running 'hosted-engine --deploy', Put this in /etc/ovirt-hosted-engine-setup.env.d/hosted-engine-custom.env. Edit to replace <LOCATION OF QEMUWRAPPER>
export LIBGUESTFS_HV=<LOCATION OF QEMUWRAPPER>/qemu-wrapper.sh
%pre
cd /tmp
rpm2cpio /run/install/repo/Packages/redhat-virtualization-host-image-update*|cpio -ivd
squashfs=$(find / |grep -E 'redhat.+squashfs.img$')
ln -s $squashfs /tmp/squashfs
%end
text
lang en_US.UTF-8
timezone America/New_York --isUtc
keyboard --vckeymap=us --xlayouts='us'