I hereby claim:
- I am pysysops on github.
- I am pysysops (https://keybase.io/pysysops) on keybase.
- I have a public key whose fingerprint is 90F7 C804 1422 7534 8086 1ACE DFEB 9ADD 84E1 DD5E
To claim this, I am signing this object:
| local _M = {} | |
| -- Initialize a cache on the module level with up to 1000 entries | |
| local lrucache = require("resty.lrucache") | |
| local c, err = lrucache.new(1000) | |
| if not c then | |
| return error("failed to create the cache: " .. (err or "unknown")) | |
| end | |
| function _M.go() |
| #!/usr/bin/env python | |
| import sys | |
| import urllib | |
| import urllib2 | |
| import socket | |
| import json | |
| import argparse | |
| import time | |
| from urlparse import urlparse |
| #!/usr/bin/env bash | |
| # This script calls a python script to output | |
| # current alerts on the current system when SSH'd | |
| # in. | |
| if [ "$SSH_TTY" ] | |
| then | |
| python /etc/profile.d/show_alerts.py | |
| fi |
| <ns0:data-stream-collection xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:ns0="http://scap.nist.gov/schema/scap/source/1.2" xmlns:ns1="http://www.w3.org/1999/xlink" xmlns:ns10="http://checklists.nist.gov/xccdf/1.2" xmlns:ns12="http://www.w3.org/2000/svg" xmlns:ns14="http://cpe.mitre.org/dictionary/2.0" xmlns:ns2="urn:oasis:names:tc:entity:xmlns:xml:catalog" xmlns:ns3="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:ns5="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:ns6="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:ns7="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" xmlns:ns8="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns:ns9="http://scap.nist.gov/schema/ocil/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="scap_org.open-scap_collection_from_xccdf_ssg-rhel7-xccdf-1.2.xml" schematron-version="1.2"> | |
| <ns0:data-stream id="scap_org.open-scap_datastream_from_xccdf_ssg-rhel7-xccdf-1.2.xm |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| for b in $(git branch -r | grep -v HEAD | cut -f 2 -d'/') | |
| do | |
| git checkout $b && git pull origin $b $@ | |
| done |
| #!/usr/bin/env python | |
| """ | |
| Simple Salty Jinja2 linter | |
| """ | |
| import re | |
| import sys | |
| import os.path | |
| from functools import reduce | |
| from jinja2 import BaseLoader, TemplateNotFound, Environment, exceptions | |
| import yaml |
| #!/bin/bash | |
| set -eu -o pipefail | |
| roman_numerals=$(echo $1 | tr a-z A-Z) | |
| # Test that it is valid | |
| [[ "${roman_numerals//[IVXLCDM]/}" == "" ]] || \ | |
| { echo Roman numerals ${roman_numerals} contains invalid characters ; \ | |
| exit 1 ;} |
| #!/bin/bash | |
| set -eu -o pipefail | |
| number=$1 | |
| # Test that it is valid | |
| [[ "${number//[0-9]/}" == "" ]] || \ | |
| { echo Number ${number} contains invalid characters ; \ | |
| exit 1 ;} |
| gem install aws_assume_role | |
| echo 'awsassume () { eval `aws-assume-role environment set -p $@`; }' >> ~/.bashrc | |
| echo 'awsconsole () { eval `aws-assume-role console -p $@`; }' >> ~/.bashrc |