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 | |
# Dependencies: java 8 and curl | |
DEST=. | |
if [[ ! -f $DEST/jwk-gen.jar ]]; then | |
curl -s -o $DEST/jwk-gen.jar --location --remote-header-name --remote-name https://raw.githubusercontent.com/apereo/cas/master/etc/jwk-gen.jar | |
fi | |
function gen { |
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
# Use with | |
# include /etc/nginx/conf.d/cors; | |
# in your locations | |
# Allow static fonts | |
location ~* .(eot|otf|svg|ttf|woff|woff2)$ { | |
add_header Access-Control-Allow-Origin *; | |
} | |
set $cors ''; |
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 | |
# Put this, for instance in /usr/loca/bin/ and adapt to your LA node | |
# | |
# Used in conjuntion with this other script: | |
# https://gist.github.com/vjrj/2b077a2bb786227a517ca03f7e30cf4c | |
# | |
# Depends on jq (apt install jq) | |
# | |
USER=XXX |
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 | |
# | |
# Adapt urls and put this in your /usr/local/bin (for instance) and call it with your biocache-store like: | |
# check-mappings-in-ocurrences.sh dr100 dr102 | |
# | |
# Depends on jq (apt install jq) and https://pypi.org/project/xq/ | |
# | |
drs=$1 |
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 | |
# Usage "check-dr-linked-record-consumers.sh dr225 dr226" | |
# | |
ERRORS=0 | |
DEBUG=1 | |
drs=$1 | |
for dr in $(echo $drs | tr "," "\n") |
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
# | |
# A grc configuration we use to add colors to biocache-store logs | |
# used in conjuntion with AnsiColor plugin: | |
# http://wiki.jenkins-ci.org/display/JENKINS/AnsiColor+Plugin | |
# | |
# Usage: | |
# apt install grc | |
# put this file in /etc/grc.conf (for instance) | |
# | |
# Pipe bioache commands to grcat: |
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
// | |
// DEPRECATED | |
// Use: https://github.com/living-atlases/gbif-taxonomy-for-la | |
// | |
const parse = require("csv-parse/lib/es5"); | |
const transform = require('stream-transform'); | |
const fs = require('fs'); | |
var readStream = fs.createReadStream("./gbif-backbone/Taxon.tsv.orig"); |
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 | |
# Sample usage: | |
# $ la-components-table-row.sh "Elurikkus - Estonia" https://elurikkus.ee/en https://elurikkus.ee/en/collections/ https://elurikkus.ee/generic-hub/ https://elurikkus.ee/biocache-service/ https://elurikkus.ee/bie-hub/ https://elurikkus.ee/bie-index/ https://elurikkus.ee/lists/ https://elurikkus.ee/regions/ | |
# to get: | |
# | [Elurikkus - Estonia](https://elurikkus.ee/en) | [✓](https://elurikkus.ee/en/collections/) | [✓](https://elurikkus.ee/generic-hub/) | [✓](https://elurikkus.ee/biocache-service/) | [✓](https://elurikkus.ee/bie-hub/) | [✓](https://elurikkus.ee/bie-index/) | [✓](https://elurikkus.ee/lists/) | [✓](https://elurikkus.ee/regions/) | | |
# Order: | |
# | NodeName | Collectory | Biocache | BiocacheService | Species | SpeciesService | SpeciesLists | Regions | Images | Spatial | CAS | Sightings | Alerts | Volunteer | |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import csv | |
import urllib2 | |
import re | |
import json | |
from bs4 import BeautifulSoup |
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 | |
# | |
# A small unofficial script to check data mappings in LA collectory | |
# | |
# Installation: | |
# | |
# - Copy this script in /usr/local/bin of a collectory host (for instance) | |
# - Put 'docopts' in /usr/local/bin (See INSTALL of: https://github.com/docopt/docopts), or just | |
# download https://github.com/Sylvain303/docopts/releases/download/v0.6.3-alpha1/docopts and put | |
# in /usr/local/bin of a collectory |
NewerOlder