I hereby claim:
- I am datadavev on github.
- I am davev (https://keybase.io/davev) on keybase.
- I have a public key ASDHLQuHSfde1UsrYARjAKou8ZhihNznA1PqHoh1sSO4-wo
To claim this, I am signing this object:
#!/usr/bin/env /usr/bin/python | |
#https://gist.github.com/vdave/b6289c7edcd831b3ba75c6d11347e4ff | |
# | |
# Manages structured content in Finder Comments | |
# | |
# The finder comment is treated as a block of text with a section treated | |
# as a JSON object. The JSON section is delimited in a manner similar to | |
# ssl certificates with a BEGIN and END line delimiting the JSON object. | |
# |
#!/bin/sh | |
## | |
# Keegan is a very nice AI image evaluation tool. | |
# https://keegan.regaind.io/ | |
# | |
# Keeganize automates processing of an image and capturing the results. | |
# https://gist.github.com/vdave/9506b3ba1988f7cea0434ec7a8ac49f5 | |
# | |
# Output is stored as a finder comment in the metadata for the image file. | |
# Note that there's no error checking so things can go fubar |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
''' | |
MOVED TO: https://github.com/DataONEorg/DataONE_Operations/blob/master/scripts/d1verifytoken | |
This copy no longer updated. | |
Verify a DataONE bearer token | |
''' | |
# Stdlib |
#!/usr/bin/env python | |
''' | |
MOVED TO: https://github.com/DataONEorg/DataONE_Operations/blob/master/scripts/d1logintoken | |
This copy no longer updated. | |
Login to DataONE using ORCID and retrieve token. | |
This script uses Selenium to control a Chrome web browser to log on to |
#!/usr/bin/env python | |
''' | |
Python script to show the size of images (bytes) on each slide | |
Requires pptx installed: | |
pip install -U python-pptx | |
''' | |
import os |
#!/bin/bash | |
show_validity=0 | |
function showHelp() { | |
cat << EOF | |
Show a certificate from a remote service. | |
Usage: |
import time | |
import urllib | |
from selenium import webdriver | |
import extruct | |
import pprint | |
import clipboard | |
pid = "https://pasta.lternet.edu/package/metadata/eml/knb-lter-fce/1224/1" | |
#The view service is broken by not accepting an escaped path element | |
#url = "https://search.dataone.org/view/" + urllib.parse.quote_plus(pid) |
#!/bin/bash | |
# Dump a cert or show dates valid | |
# | |
# e.g. to show valid dates: | |
# ./certshow -d google.com:443 | |
show_validity=0 | |
function showHelp() { | |
cat << EOF |
""" | |
Returns a partially rendered DataONE view, without the additional javascript | |
being executed. | |
This script is proof of concept only, and will only handle a single | |
request at a time since the single Chrome driver instance is reused. | |
Could recreate the driver for each request or use a pool of drivers. | |
Given a URL that starts with "https://search.", load the page using | |
Selenium and allow javascript to execute until the desired content |