Skip to content

Instantly share code, notes, and snippets.

View gregelin's full-sized avatar

Greg Elin gregelin

  • RegScale, Inc.
  • Knoxville, TN
  • 15:39 (UTC -04:00)
View GitHub Profile

PDF Liberation Hackathon - Federal Communications Commission Challenge

Note: this was originally an Federal Communications Commission challenge at the PDF Liberation Hackathon. The original information can be found here: https://github.com/pdfliberation/pdf-hackathon/blob/master/challenges/fcc-daily-releases.md

PDF Liberation Hackathon - Federal Communications Commission Challenge

"As part of regular business process, the Federal Communications Commission writes and releases many documents. These documents are public notices, rule-makings, proposed rules and many other prose based discussions of technical issues relating to spectrum, broadcasting, broadband, media and other communications issues. In general the legal industry has a need for these documents to not only contain the proper history, content and technical discussions, but also contain standard formatting that the legal industry has developed. This combination of content and formatting fundamentally requires the FCC to release PDF documen

Variables
==========
predefined variables :
- inventory_hostname (fqdn) (normally the same as ansible.fqdn)
- inventory_hostname_short
To know the return codes returned by ansible modules, just use plain ansible -vvv to see them :
ansible -i ~/ansible/arrfab.net/hosts/hosts.cfg -vvv -m copy -a 'src=files/sysinfo dest=/etc/sysinfo' tungstene.arrfab.net
tungstene.arrfab.net | success >> {
"changed": true,
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@gregelin
gregelin / README.md
Created February 20, 2014 15:14 — forked from oodavid/README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@gregelin
gregelin / GOVREADY.yaml
Created May 13, 2014 13:41
Apache example file (using Apache)
---
###################
# About this file #
###################
# This is a Jekyll content page for GovReady(TM) Clearinghouse technology listing.
# The content of this page drives the displayed content.
# Syntax for this file is YAML.
# Comments: lines begininging with '#' is a comment and will be ignored.
# Use file extension `.yaml` to get syntax coloring.
#
@gregelin
gregelin / govready.apache.yaml
Created May 15, 2014 11:10
GovReady listing data for Apache
---
###################
# About this file #
###################
# This is a Jekyll content page for GovReady(TM) Clearinghouse technology listing.
# The content of this page drives the displayed content.
# Syntax for this file is YAML.
# Comments: lines begininging with '#' is a comment and will be ignored.
# Use file extension `.yaml` to get syntax coloring.
#
@gregelin
gregelin / package_list.md
Created June 1, 2014 15:20
Generate a human readable list of packages on Linux, RHEL, CentOS, Fedora

Commandline

rpm -qa --queryformat '|%{NAME} | % {SUMMARY}|\n' | sort > packages.txt

Output (snippet) cat packages.txt

|abrt-addon-ccpp | abrt's C/C++ addon|
|abrt-addon-kerneloops | abrt's kerneloops addon|
# ---------------------------------------------------------------------------
#
# 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
@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">