This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run this script on FCS catalog-harvester-xyz | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
AWS_DEFAULT_REGION=us-gov-west-1 | |
service_name=catalog-db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
package_list=($(jq -r '.result' package_list.json)) | |
function check_status () { | |
while ! (cf tasks catalog | grep -q "$1 .*\(SUCCEEDED\|FAILED\)"); do | |
sleep 1 | |
done | |
if (cf tasks catalog | grep -q "$1 .*SUCCEEDED"); then | |
echo "Success: $2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM solr:8.11-slim | |
ADD security.json $SOLR_HOME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var TurndownService = require('turndown') | |
const fs = require('fs'); | |
fs.readFile(process.argv[2], 'utf8', (err, data) => { | |
if (err) { | |
console.error(err); | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json, sys | |
json_build = {} | |
with open('summary', 'r') as summ: | |
items = summ.readlines() | |
for i in items: | |
title = i.split(']')[0].split('[')[-1] | |
link = i.split('](#')[1].split(')')[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.pkl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nltk.corpus import wordnet | |
import json | |
import re | |
def compare_two_words(a, b): | |
aw = wordnet.synsets(a) | |
bw = wordnet.synsets(b) | |
# Take the first definition |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import xmltodict | |
with open('dmarc.xml', 'rb') as d: | |
dmarc = xmltodict.parse(d) | |
success = 0 | |
fail = 0 |