Hope this will save you hours of research on how to use your browser (Chrome/Chromium/Firefox) to load PIV card using Smart Card reader (SCR3310) to do Single Sign-On such as login.gov.
$ sudo apt install libpam-sss
$ sudo apt install opensc-pkcs11
import requests | |
from time import sleep | |
CKAN_URL = 'https://catalog.data.gov' | |
# call api and get the list of harvest sources | |
harvest_source_url = f'{CKAN_URL}/api/action/package_search?fq=(dataset_type:harvest)&rows=1000' | |
response = requests.get(harvest_source_url) | |
harvest_sources = response.json()['result']['results'] |
Hope this will save you hours of research on how to use your browser (Chrome/Chromium/Firefox) to load PIV card using Smart Card reader (SCR3310) to do Single Sign-On such as login.gov.
$ sudo apt install libpam-sss
$ sudo apt install opensc-pkcs11
1. set an initial timestamp, any message prior to it will be ignored, so that we dont have tons of issue created on the launch. | |
2. filter out certain messages, such as notification when a NewRelic issue is close. | |
3. auto close the issue if an issue-close NewRelic message or OK email are received. | |
4. remove the need fpr env variable GITHUB_USER. | |
5. apply lables to certain top priority messages such as prod server down notifications. |
#!/bin/bash | |
mkdir -p /var/solr/data/ckan | |
# add solr authentication | |
cat <<SOLRAUTH > /var/solr/data/security.json | |
{ | |
"authentication":{ | |
"blockUnknown": true, | |
"class":"solr.BasicAuthPlugin", |
#!/bin/bash | |
# Run this script on FCS inventory-harvester-xyz | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
AWS_DEFAULT_REGION=us-gov-west-1 | |
service_name=inventory-db |
#!/bin/sh | |
################ | |
# USAGE: sh ckan_sync.sh > sync.log | |
################ | |
tmpfile='./ckan_ids.txt' | |
while read id | |
do |
#!/usr/bin/env python | |
``` | |
USAGE: python find-duplicate-ho-id.py > ids.txt | |
``` | |
import urllib2 | |
import json | |
import math | |
import sys |