This gist is for Linux. For windows is the same thing.
create a file .login_info
as below:
connect your.server.url
usernanme
# https://stackoverflow.com/questions/39928401/recover-db-password-stored-in-my-dbeaver-connection | |
import sys | |
import base64 | |
print(sys.argv[1]) | |
PASSWORD_ENCRYPTION_KEY = b"sdf@!#$verf^wv%6Fwe%$$#FFGwfsdefwfe135s$^H)dg" |
# https://stackoverflow.com/questions/39928401/recover-db-password-stored-in-my-dbeaver-connection | |
# requires pycryptodome lib (pip install pycryptodome) | |
import sys | |
import base64 | |
import os | |
import json | |
from Crypto.Cipher import AES |
# MIT No Attribution | |
# | |
# Copyright 2022 Ben Kehoe | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
# software and associated documentation files (the "Software"), to deal in the Software | |
# without restriction, including without limitation the rights to use, copy, modify, | |
# merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
# permit persons to whom the Software is furnished to do so. | |
# |
# Add field | |
echo '{"hello": "world"}' | jq --arg foo bar '. + {foo: $foo}' | |
# { | |
# "hello": "world", | |
# "foo": "bar" | |
# } | |
# Override field value | |
echo '{"hello": "world"}' | jq --arg foo bar '. + {hello: $foo}' | |
{ |
Examples of processing QTI data with Python.
I attempted to use pyslet
, which was designed for this purpose,
but I found it awkward to use and its documentation unclear. Instead, I tried to use beautifulsoup4
, but I
learned that library doesn't support XPath to query for specific elements of the data. I turned to using the
simple XML processing library lxml
. It has similarities to other XML parsing libraries I've used before, but
it has many unique features of its own.
Note that of the examples below, each does something a little differently. They don't all have the same output.
That's because they were mostly tests to see whether we preferred working with one library over another. Some
## Initial setup you should only have to do this once | |
# Checkout docker stacks project | |
git clone https://github.com/jupyter/docker-stacks | |
cd docker-stacks/base-notebook | |
# Clone the telemetry in this directory, this is currently a private repo. | |
git clone https://github.com/educational-technology-collective/hwf-jupyterlab-telemetry | |
# git needs to be added to base image |
jupyter: | |
image: jupyter/datascience-notebook | |
environment: | |
- PASSWORD=${PASSWORD} | |
nginx: | |
image: nginx | |
links: | |
- jupyter |