Skip to content

Instantly share code, notes, and snippets.

View seven62's full-sized avatar

Sean Cochran seven62

  • KC
View GitHub Profile
@seven62
seven62 / generate-ssh-key.sh
Created March 29, 2021 18:09 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@seven62
seven62 / local-mirrors.repo
Last active January 29, 2021 16:47 — forked from dcode/local-mirrors.repo
Quick dirty script to maintain local repo mirrors. Serve up with httpd, nginx, or whatever
# Add this file to /etc/yum.repos.d/local-mirrors.repo
# Change the IP below accordingly
[mirror-base]
name=Base mirror
baseurl=http://192.168.100.10/base
enabled=1
cost=500
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
@seven62
seven62 / macos-setup.sh
Last active September 20, 2021 16:04
Script and readme to configure a new mac
#!/bin/bash
#set -eux
# Create Profile Directories
mkdir ~/{bin,code,dev}
# Install CLI Tools
clear

Pyenv Lab

This lab is written specifically for issued macbooks.

Step 1 - Installation

  1. Install the Brew package manager if you don't have it:
  • $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
@seven62
seven62 / pyenv-notes.md
Last active June 7, 2020 14:22
pyenv-notes

PYENV

or how I learned to stop worrying and get things done with python

focusing on "weapon-system" macOS cross-platform, including windows to some extent https://github.com/pyenv/pyenv


Keybase proof

I hereby claim:

  • I am seven62 on github.
  • I am seven62 (https://keybase.io/seven62) on keybase.
  • I have a public key ASBHrGq438xHIP0HnVsV4u4ID7cRTe35THGO58J_foMQLgo

To claim this, I am signing this object:

# E & K on RHEL
These are high level instructions to get a simple stack up and running. Logstash not included.
## Installation
### Elasticsearch

ROCK Sensor Hardware Options

This document is a list of hardware that has been used for development and home use as a ROCK sensor. The first option would be to repurpose a machine if possible (minimum specs below). If your budget permits you can build a powerful system in a small form factor for under $1000.

Some of the more important aspects to look for are IPMI for baremetal remote management, dual Intel NICs, quiet, and relatively low-power. You don't want to have to wear hearing protection while sitting next to your infrastructure.

Sensor Hardware Options

Repurposed Hardware

# Operation Home Lab
This document serves as a guide to getting started with building a home lab environment
### Scale
A home lab can mean anything from a hosting a few virtual machines all the way to purchasing hardware to practice with basic NSM infrastructure.