[wafflepool][1] monitor It just quick and dirty code.
- python-rrdtool
- requests
Just clone this, and add minutely cronjob
Verifying that +mammadori is my openname (Bitcoin username). https://onename.io/mammadori |
def _post_multipart(self, selector, fields, files): | |
'''Post fields and files to an http host as multipart/form-data. | |
:param fields: a sequence of (name, value) tuples for regular form | |
fields | |
:param files: a sequence of (name, filename, value) tuples for data to | |
be uploaded as files | |
:returns: the server's response page |
from subprocess import Popen, PIPE | |
from os import environ | |
def source(script, update=True, clean=True): | |
""" | |
Source variables from a shell script | |
import them in the environment (if update==True) | |
and report only the script variables (if clean==True) | |
""" |
--- a/binsrc/dbpedia/vsp/description.vsp | |
+++ b/binsrc/dbpedia/vsp/description.vsp | |
@@ -102,9 +103,8 @@ | |
-- setup rdf alternative links | |
rdf_link := 'http://'|| http_request_header (http_request_header (), 'Host') | |
- ||'/sparql?default-graph-uri=http%3A%2F%2F'||replace(registry_get('dbp_graph'),'http://','')||'&query=DESCRIBE+<' || | |
- replace (page_resource_uri, '%', '%25') || '>'; | |
- gen_rdf_link := rdf_link; | |
+ ||'/sparql?default-graph-uri=http%3A%2F%2F'||registry_get('dbp_graph_abr')||'&query=DESCRIBE+<' || |
#!/bin/sh -e | |
# | |
# rc.local | |
# | |
# This script is executed at the end of each multiuser runlevel. | |
# Make sure that the script will "exit 0" on success or any other | |
# value on error. | |
# | |
# In order to enable or disable this script just change the execution | |
# bits. |
#!/bin/bash | |
VENV=$1 | |
if [ -z $VENV ]; then | |
echo "usage: runinenv [virtualenv_path] CMDS" | |
exit 1 | |
fi | |
. ${VENV}/bin/activate | |
shift 1 | |
echo "Executing $@ in ${VENV}" | |
exec "$@" |
diff --git a/core/src/main/scala/org/dbpedia/extraction/config/mappings/HomepageExtractorConfig.scala b/core/src/main/scala/org/dbpedia/extraction/config/mappings/HomepageExtractorConfig.scala | |
index 504dcc7..29a2b5d 100644 | |
--- a/core/src/main/scala/org/dbpedia/extraction/config/mappings/HomepageExtractorConfig.scala | |
+++ b/core/src/main/scala/org/dbpedia/extraction/config/mappings/HomepageExtractorConfig.scala | |
@@ -13,7 +13,6 @@ object HomepageExtractorConfig | |
"en" -> Set("website", "homepage", "web", "site"), | |
"es" -> Set("website", "homepage", "web", "site", "siteweb", "site web", "página", "sitio", "pagina"),/*cleanup*/ | |
"eu" -> Set("webgunea"), | |
- "it" -> Set("homepage", "sito", "sito web"), | |
"fr" -> Set("website", "homepage", "web", "site", "siteweb", "site web"),/*cleanup*/ |