Skip to content

Instantly share code, notes, and snippets.

View cdot65's full-sized avatar
🐒
💨

Calvin Remsburg cdot65

🐒
💨
View GitHub Profile
@cdot65
cdot65 / rancher_k3s_cluster_install.md
Created January 3, 2022 23:07
Install a cluster of servers using Rancher and their terrible docs

Create a HA cluster of k3s servers with Rancher

if you've ever tried to follow Rancher's documentation for standing up a k3s cluster, you'd understand why this document exists

offical docs

Tasks

  1. Install and setup database
  2. Install and setup load balancer
  3. Create DNS records
@cdot65
cdot65 / debug.yaml
Last active September 16, 2022 14:22
Ansible playbook to print installed Python packages
---
#------------------------------------------------------------------------
# Print out installed packages within virtual environment
#------------------------------------------------------------------------
- hosts: localhost
connection: local
tasks:
- name: create list of Python packages installed
ansible.builtin.shell: pip freeze
register: results
@cdot65
cdot65 / up-and-running-ansible-awx.md
Last active May 1, 2024 07:01
Install Ansible AWX on Rancher k3s

up-and-running-ansible-awx

A reference for spinning up Ansible AWX on top of a Kubernetes environment

k3s install

Install k3s with bash script

curl -sfL https://get.k3s.io | sh -

up-and-running-nautobot

A reference for spinning up Nautobot on top of a Kubernetes environment

k3s install

Install k3s with bash script

curl -sfL https://get.k3s.io | sh -
@cdot65
cdot65 / VM-Series on Proxmox.md
Last active November 11, 2024 01:11
Short steps required to spin up Palo Alto Networks' VM-Series on Proxmox

VM-Series on Proxmox

Special thanks to Zach Forsyth

Order of operations

  1. SSH into your Proxmox server
ssh root@pve1

Reclaim your inbox

If you are being barraged by automated recruiter trash, consider using the list below when setting up your email filters.

List of inbox abusers

- thecroxgroup.com
- idctechnologies.com
- dice.com
@cdot65
cdot65 / continuous_ping.py
Created March 29, 2023 20:32
Continuous Ping
import sys
import time
import platform
import subprocess
def continuous_traceroute(target, interval=1):
print(f"Starting continuous traceroute to {target} with an interval of {interval} seconds")
# Determine the appropriate command based on the operating system
command = "traceroute" if platform.system() != "Windows" else "tracert"
@cdot65
cdot65 / ntp.py
Created March 29, 2023 21:16
ChatGPT update NTP server
# Import necessary libraries
from netmiko import ConnectHandler
# Define list of devices
devices = [
{
'device_type': 'cisco_ios',
'ip': '192.168.1.1',
'username': 'admin',
'password': 'password'
@cdot65
cdot65 / autofocus_enrich_subnet.py
Created April 3, 2023 21:51
Enrich as subnet and get reputation for IP addresses from AutoFocus
import os
import sys
from typing import Dict, Optional
import requests
import json
import gzip
import boto3
import botocore
@cdot65
cdot65 / search.sh
Created July 15, 2023 13:09
Search for files that contain a pattern within nested subdirectories. Example: ```./search.sh "search string"```
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "You must enter exactly 1 command line argument (the string to search for)"
exit 1
fi
grep -rnw './' -e "$1"