Skip to content

Instantly share code, notes, and snippets.

View jas-'s full-sized avatar
🏃‍♂️

Jason Gerfen jas-

🏃‍♂️
View GitHub Profile
@jas-
jas- / packet-capture.sh
Last active November 19, 2022 17:04
A semi self aware packet trace tool; supports multiple packet capture tools such as tcpdump, tshark & snoop, monitors log disk for space constraints & can be configured to run for only a specified amount of time.
#!/bin/bash
#############################################################
# Functional description:
# Automates packet captures while safely monitoring disk
# space constraints for a specified amount of time.
#
# Supported OS:
# Solaris 10/11
# RHEL 5/6/7/8
@jas-
jas- / 4GBISO
Last active February 17, 2024 10:44
4.0GB Empty ISO
dd if=/dev/zero of=file.iso bs=516096 seek=9182 count=0
@jas-
jas- / readme.md
Last active February 26, 2024 09:43
Samba FS Active Directory Implementation

Samba Configuration for Active Directory

Kerberos realm authentication using LDAP authorization via MS Windows Active Directory

Some details on the SAMBA configuration. Original Samba, ADS, Winbind documention was found http://gentoo-wiki.com/HOWTO_Adding_a_Samba_Server_into_an_existing_AD_Domain.

Pre-Installation for Gentoo using emerge

This particular installation of Samba requires a few additional packages and features to ensure that Active Directory authentication works properly. In this first step we add the necessary use flags to the Gentoo Portage package system.

#!/bin/bash
# Create a timestamp
ts="$(date +%Y%m%d)"
# Determine running directory
cwd="$(pwd $(dirname $0))"
# Define build_file
build_file=