Skip to content

Instantly share code, notes, and snippets.

View gregelin's full-sized avatar

Greg Elin gregelin

  • Chicago, IL
  • 23:12 (UTC -06:00)
View GitHub Profile
@gregelin
gregelin / control_masonry_compliancelib.gliffy
Created October 13, 2015 17:17
Control Masonry plan with assets available from compliancelib after packaging some code from GovReady/800-53-server prototypes Raw
{"contentType":"application/gliffy+json",
"version":"1.3",
"stage":{"background":"#FFFFFF",
"width":1518,
"height":975,
"nodeIndex":193,
"autoFit":true,
"exportBorder":false,
"gridOn":true,
"snapToGrid":true,
@gregelin
gregelin / control-masonry+800-53-server-pieces.gliffy
Last active September 30, 2015 01:27
Control Masonry plan with assets available from GovReady/800-53-server
{"contentType":"application/gliffy+json",
"version":"1.3",
"stage":{"background":"#FFFFFF",
"width":1518,"height":975,"nodeIndex":186,"autoFit":true,"exportBorder":false,"gridOn":true,"snapToGrid":true,"drawingGuidesOn":true,"pageBreaksOn":false,"printGridOn":false,"printPaper":"LETTER",
"printShrinkToFit":false,"printPortrait":true,"maxWidth":5000,"maxHeight":5000,"themeData":{"uid":"com.gliffy.theme.blue_sweater",
"name":"Blue Sweater",
"shape":{"primary":{"strokeWidth":2,"strokeColor":"#003068",
"fillColor":"#CCD5E1",
"gradient":false,"dropShadow":false,"opacity":1,"text":{"color":"#010B14"}},"secondary":{"strokeWidth":2,"strokeColor":"#006800",
"fillColor":"#CCE0CC",
@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>