This file contains hidden or 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 bash | |
# | |
# Assuming a directory of repositories, ensure they are all up-to-date if: | |
# 1. HEAD is one of: gh-pages, master, or main | |
# 2. there are no local modifications | |
# | |
# For example: | |
# cd git | |
# ./update_repos.sh creativecommons | |
# |
This file contains hidden or 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 | |
# | |
# Helper script to start services defined by docker compose and clean them up | |
# after they are stopped | |
# - launches docker if it is not currently running | |
# - requires macOS and Docker Desktop | |
# | |
set -o errexit | |
set -o errtrace | |
set -o nounset |
This file contains hidden or 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
<dcterms:isReplacedBy> | |
<cc:License rdf:about="http://creativecommons.org/licenses/by-nc-nd/4.0/"> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.ar"/> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.cs"/> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.da"/> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.de"/> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.el"/> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.en"/> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.es"/> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.eu"/> |
This file contains hidden or 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
diff --git pillars/3_HST/index/init.sls pillars/3_HST/index/init.sls | |
index f99434f..a38d64e 100644 | |
--- pillars/3_HST/index/init.sls | |
+++ pillars/3_HST/index/init.sls | |
@@ -27,5 +27,6 @@ states: | |
wordpress.apache2: {{ sls }} | |
wordpress.index: {{ sls }} | |
wordpress: | |
+ docroot: /var/www/index | |
multisite: False |
This file contains hidden or 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
--- legal_tools/management/commands/publish.py 2023-08-17 06:52:38 | |
+++ legal_tools/management/commands/publish.py.NEW 2023-08-17 06:52:29 | |
@@ -110,6 +110,17 @@ | |
return legal_code.get_redirect_pairs() | |
+def save_rdf(output_dir, tool): | |
+ # Function is at top level of module so that it can be pickled by | |
+ # multiprocessing. | |
+ relpath = os.path.join(tool._get_save_path(), "rdf") |
This file contains hidden or 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
index 97005a4..23ddca6 100644 | |
--- legal_tools/rdf_generator.py | |
+++ legal_tools/rdf_generator.py | |
@@ -129,6 +129,7 @@ def generate_rdf_file( | |
# ) | |
if tool_obj.jurisdiction_code: | |
+ logo_prefix = f"{foaf_logo_url}{tool_obj.unit}/{tool_obj.version}/{tool_obj.jurisdiction_code}" | |
g.add( | |
( |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
<?xml version='1.0' encoding='utf-8'?> | |
<rdf:RDF xmlns:cc="http://creativecommons.org/ns#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> | |
<cc:License rdf:about="http://creativecommons.org/licenses/by-nc-nd/2.0/"> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by-nc-nd/2.0/legalcode.en" /> | |
<cc:licenseClass rdf:resource="http://creativecommons.org/licenses/" /> | |
<cc:prohibits rdf:resource="http://creativecommons.org/ns#CommercialUse" /> | |
<cc:requires rdf:resource="http://creativecommons.org/ns#Attribution" /> | |
<cc:requires rdf:resource="http://creativecommons.org/ns#Notice" /> | |
<dcterms:creator rdf:resource="http://creativecommons.org" /> | |
<dcterms:hasVersion>2.0</dcterms:hasVersion> |
This file contains hidden or 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
<?xml version='1.0' encoding='utf-8'?> | |
<rdf:RDF xmlns:exif="http://www.w3.org/2003/12/exif/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> | |
<rdf:Description rdf:about="http://licensebuttons.net/l/by-nc-nd/2.0/80x15.png"> | |
<exif:height>15</exif:height> | |
<exif:width>80</exif:width> | |
</rdf:Description> | |
<rdf:Description rdf:about="http://licensebuttons.net/l/by-nc-nd/2.0/88x31.png"> | |
<exif:height>31</exif:height> | |
<exif:width>88</exif:width> | |
</rdf:Description> |
This file contains hidden or 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
<?xml version='1.0' encoding='utf-8'?> | |
<rdf:RDF xmlns:cc="http://creativecommons.org/ns#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> | |
<cc:License rdf:about="http://creativecommons.org/publicdomain/zero/1.0/"> | |
<cc:legalcode rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/legalcode.da" /> | |
<cc:legalcode rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/legalcode.de" /> | |
<cc:legalcode rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/legalcode.el" /> | |
<cc:legalcode rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/legalcode.en" /> | |
<cc:legalcode rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/legalcode.es" /> | |
<cc:legalcode rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/legalcode.eu" /> | |
<cc:legalcode rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/legalc |
This file contains hidden or 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
<?xml version='1.0' encoding='utf-8'?> | |
<rdf:RDF xmlns:cc="http://creativecommons.org/ns#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> | |
<cc:License rdf:about="http://creativecommons.org/licenses/by/3.0/es/"> | |
<cc:jurisdiction rdf:resource="http://creativecommons.org/international/es" /> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by/3.0/es/legalcode.ast" /> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by/3.0/es/legalcode.ca" /> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by/3.0/es/legalcode.es" /> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by/3.0/es/legalcode.eu" /> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by/3.0/es/legalcode.gl" /> | |
<cc:legalcode rdf:resource="http://creativecommons.org/licenses/by/3.0/es/legalcode.oc-aranes" /> |
NewerOlder