Skip to content

Instantly share code, notes, and snippets.

View hardyoyo's full-sized avatar
🕺
husslin'

Hardy Pottinger hardyoyo

🕺
husslin'
View GitHub Profile
@hardyoyo
hardyoyo / mint_method.py
Last active October 5, 2020 16:56
Scratchpad for developing a Python method to mint DOIs via EZID, WIP
''' a scratch pad for developing the DOI minting method we will use with Janeway '''
# import os
import re
from urllib.parse import quote
import urllib.request as urlreq
from xmltodict import unparse
SHOULDER = 'doi:10.15697/' #for the actual plugin, get the value from the settings.py
USERNAME = 'apitest' #for the actual plugin, get the value from the settings.py
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:
Failed while enforcing releasability the error(s) are [
Dependency convergence error for org.codehaus.plexus:plexus-component-annotations:1.5.5 paths to dependency are:
+-info.freelibrary:bucketeer:0.0.1-SNAPSHOT
+-info.freelibrary:freelib-utils:0.8.10
+-org.apache.maven:maven-plugin-api:3.5.4
+-org.eclipse.sisu:org.eclipse.sisu.plexus:0.3.3
+-org.codehaus.plexus:plexus-component-annotations:1.5.5
and
+-info.freelibrary:bucketeer:0.0.1-SNAPSHOT
Exception in thread "main" java.lang.AssertionError
at jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:155)
at jdk.compiler/com.sun.tools.javac.util.Assert.check(Assert.java:46)
at jdk.compiler/com.sun.tools.javac.comp.Modules.enter(Modules.java:247)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.readSourceFile(JavaCompiler.java:837)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$ImplicitCompleter.complete(JavacProcessingEnvironment.java:1521)
at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:642)
at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1326)
at jdk.compiler/com.sun.tools.javac.code.Type$ClassType.complete(Type.java:1140)
at jdk.compiler/com.sun.tools.javac.code.Type$ClassType.getTypeArguments(Type.java:1066)
2 T Olive Oil
1 Onion, chopped
1 package of Field Roast Smoked Apple Sage Sausage, chopped
2 cloves of garlic, chopped (use jarrred, don't be a hero)
2 Cups wild rice mix (whatever you can find, bulk is great)
2 1/2 Cups Water
2 t Better Than Bouillon or 2 veggie bouillon cubes
Sauté onion in the cooker. Add garlic. Add field roast sauté a minute more,
Add rice, brown a bit more (3 or 4 minutes), stirring constantly. Add water
Adpated from https://www.hippressurecooking.com/pressure-cooker-risotto-in-7-minutes/
1, 2, or 3 chopped zuchini or squash, aim for about 2 cups
- add to measuring cup for broth/water
2 C arborio rice
4 C veggie broth (or water, if you use water, add in 1/4 t of better than bouilon per cup)
1 onion, chopped
1 swig of white wine
2 T olive oil
1 T butter
# Instant Pot Lentil Soup
1 T olive oil
1 T garlic, chopped
2 C / 1 large onion, chopped
2 large carots, chopped
2 large celery ribs, chopped (optional)
2 potatoes, chopped (optional)
3 C brown lentils
9 C water
Must remake target 'mutate'.
g++ -Wl,-O1 -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu -o mutate qxtglobalshortcut.o qxtglobalshortcut_x11.o qtsinglecoreapplication.o qtlocalpeer.o main.o widget.o returnbyscript.o defaulsearch.o config_parse.o setting.o plaintext.o listwidget.o singleapplication.o frequenceparse.o hotkey.o widgetthread.o listitem.o config.o doublelistitem.o gpixbuftoqicon.o theme.o qrc_icons.o moc_qxtglobalshortcut.o moc_qtsinglecoreapplication.o moc_qtlocalpeer.o moc_widget.o moc_setting.o moc_hotkey.o moc_plaintext.o moc_listwidget.o moc_singleapplication.o moc_widgetthread.o moc_listitem.o moc_doublelistitem.o -lX11 -L../libs -lboost_regex -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lfontconfig -lfreetype -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lQt5X11Extras -lQt5Widgets -lQt5Gui -lQt5Network -lQt5Core -lGL -lpthread
defaulsearch.o: In function `boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx
@hardyoyo
hardyoyo / my_first_deploy_fail.txt
Created April 4, 2018 17:40
error on running vagrant up with Vagrant Ansible Samvera
TASK [my_first_deploy : ensure default admin set with rake] ********************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "RAILS_ENV=production bundle exec rake hyrax:default_admin_set:create", "delta": "0:00:21.230832", "end": "2018-04-04 10:27:38.402570", "msg": "non-zero return code", "rc": 1, "start": "2018-04-04 10:27:17.171738", "stderr": "rake aborted!\nRSolr::Error::ConnectionRefused: Connection refused - {:params=>{:wt=>:json, :softCommit=>true}, :data=>\"[{\\\"system_create_dtsi\\\":\\\"2018-04-04T17:27:37Z\\\",\\\"system_modified_dtsi\\\":\\\"2018-04-04T17:27:37Z\\\",\\\"has_model_ssim\\\":\\\"Hydra::AccessControl\\\",\\\"id\\\":\\\"6b2447da-0ffc-4284-8100-5a991ff34a4d\\\"}]\", :headers=>{\"Content-Type\"=>\"application/json\"}, :method=>:post, :query=>\"wt=json&softCommit=true\", :path=>\"update\", :uri=>#<URI::HTTP http://your.production.server:8983/bl_solr/core0/update?wt=json&softCommit=true>}\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/rsolr-2.1.0/lib/rsolr/client.rb:194:in `rescu
@hardyoyo
hardyoyo / first_deploy_final_task_failure.txt
Created March 29, 2018 23:10
Failure of the final task in the first_deploy role in the ansible-samveral collection of roles
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "RAILS_ENV=production bundle exec rake hyrax:default_admin_set:create", "delta": "0:00:15.960132", "end": "2018-03-29 15:59:33.357757", "msg": "non-zero return code", "rc": 1, "start": "2018-03-29 15:59:17.397625", "stderr": "rake aborted!\nLdp::NotFound: <html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=ISO-8859-1\"/>\n<title>Error 404 </title>\n</head>\n<body>\n<h2>HTTP ERROR: 404</h2>\n<p>Problem accessing /fedora/rest/prod. Reason:\n<pre> Not Found</pre></p>\n<hr />\n</body>\n</html>\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:119:in `block in check_for_errors'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:117:in `tap'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:117:in `check_for_errors'\n/opt/nurax/shared/bundle/ruby/2.4.0/gems/ldp-0.7.2/lib/ldp/client/methods.rb:96:in `block in put'\n/opt/nurax/shared/bundle/ruby/2.4.0/
hpottinger@hpottinger-Oryx-Pro:~/workspace/lando-tomcat |-/ lando.dev rebuild -- -vvvv
verbose: Loading event pre-bootstrap priority 1
verbose: Loading event pre-bootstrap priority 1
info: Bootstrap starting...
debug: Boostrapping with appConfigFilename=.lando.yml, appsRoot=/home/hpottinger/Lando, appRegistry=/home/hpottinger/.lando/appRegistry.json, cache=true, composeBin=/usr/share/lando/bin/docker-compose, composeVersion=3.2, configFilename=config.yml, , dockerBin=/usr/bin/docker, dockerBinDir=/usr/share/lando/bin, engineId=1000, engineGid=1000, XDG_VTNR=7, MANPATH=:/home/hpottinger/.fzf/man, ORBIT_SOCKETDIR=/tmp/orbit-hpottinger, XDG_SESSION_ID=c2, XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/hpottinger, TERMINATOR_UUID=urn:uuid:2bea968c-967f-4f46-a802-48fe97a3efe2, IBUS_DISABLE_SNOOPER=1, CLUTTER_IM_MODULE=xim, SESSION=ubuntu, GIO_LAUNCHED_DESKTOP_FILE_PID=2706, GPG_AGENT_INFO=/home/hpottinger/.gnupg/S.gpg-agent:0:1, TERM=xterm, SHELL=/bin/bash, NLS_LANG=AMERICAN_AMERICA.UTF8, QT_LINUX_ACCESSIBILITY_ALWAYS