Skip to content

Instantly share code, notes, and snippets.

View gregelin's full-sized avatar

Greg Elin gregelin

  • RegScale, Inc.
  • Knoxville, TN
  • 09:16 (UTC -04:00)
View GitHub Profile
@gregelin
gregelin / parsing_docx_footnotes.md
Last active September 28, 2017 19:00
Notes on parsing MS word docx footnotes
@gregelin
gregelin / main.yml
Last active August 29, 2015 14:20 — forked from Stubbs/main.yml
- name: Install Packages Needed To Compile PHP 7
apt: pkg={{ item }} state=latest
with_items:
- git
- autoconf
- bison
- libxml2-dev
- libbz2-dev
- libmcrypt-dev
- libcurl4-openssl-dev
@gregelin
gregelin / playbook-govready-macbook.yml
Created March 11, 2015 14:03
Battleschool Ansible playbook for setting up a Macbook Pro.
---
- hosts: workstation
tasks:
- name: print from playbook
debug: msg="in playbooks/playbook.yml"
- name: easy install pip
easy_install: name=pip
sudo: yes
  • GovReady CentOS 6.5 checklist
  • This is the most current instructions to making an accreditation-ready CentOS VM.
  • Updated 01.04.2015

Set up

Start tracking time Start retrospective card Open terminal

We will be role-playing data scientists for a hands-on experience using data and compute. I recommend students work in pairs.

Here is a check list for class.

  • Bring laptop

  • Know how to access to Command Line

Unix 'Simon says' commands

You type the command: Computer will:
ls, ls -alh list files in current directory
pwd show name of present working directory
cd <directory> change directory to specified directory
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "GateOne instance on Ubuntu 12.04 to support web based SSH access",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type" : "String",
@gregelin
gregelin / excerpt-ssg-rhel6-oval.xml
Last active May 11, 2018 07:21
Comparison of SCAP-Security-Guide XCCDF and OVAL XML to EasySCAP YAML version
<definition class="compliance" id="oval:ssg:def:671" version="1">
<metadata>
<title>Verify /etc/passwd Permissions</title>
<affected family="unix">
<platform>Red Hat Enterprise Linux 6</platform>
</affected>
<description>This test makes sure that /etc/passwd is owned by 0, group owned by 0, and has mode 0644. If
the target file or directory has an extended ACL then it will fail the mode check.</description>
<reference source="swells" ref_id="20130831" ref_url="test_attestation"/>
<reference source="ssg" ref_id="file_permissions_etc_passwd"/></metadata>
@gregelin
gregelin / excerpt-ssg-rhel6-xccdf.xml
Last active August 29, 2015 14:04
SCAP-Security-Guide XCCDF file Excerpt showing rule and entire SCAP-Security-Guide XCCDF file for RHEL 6 (January 2014)
<Rule id="file_permissions_etc_passwd" selected="false" severity="medium">
<title xml:lang="en-US">Verify Permissions on passwd File</title>
<description xmlns:xhtml="http://www.w3.org/1999/xhtml" xml:lang="en-US">
To properly set the permissions of <xhtml:code>/etc/passwd</xhtml:code>, run the command:
<xhtml:pre xml:space="preserve"># chmod 0644 /etc/passwd</xhtml:pre>
</description>
<reference href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf">AC-6</reference>
<reference href="http://iase.disa.mil/cci/index.html">225</reference>
<reference xmlns:dc="http://purl.org/dc/elements/1.1/" href="test_attestation">
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management