Realtims OS metrics dashboard
- Ansynchronous Communication
- Server side push
- Websockets
A graph generator for the marks of students from CSV files
| import sys | |
| import os | |
| from PIL import Image | |
| # Include the \n to ensure extact match and avoid partials from 111, 211... | |
| OBJECT_ID = "\n11 0 obj" | |
| def replace_image(filepath, new_image): |
| Question 1 | |
| Answer 1 | |
| Question 2 | |
| Answer 2 |
| diff --git a/clusterapp.py b/clusterapp.py | |
| index 46d85d1..685b482 100644 | |
| --- a/clusterapp.py | |
| +++ b/clusterapp.py | |
| @@ -4,9 +4,6 @@ from clustermgr.application import create_app, init_celery | |
| from clustermgr.extensions import celery | |
| from flask.cli import FlaskGroup | |
| -app = create_app() | |
| -init_celery(app, celery) |
| from oxdpython import Client | |
| client = Client("/location/to/conf") | |
| client.register_site() | |
| auth_url = client.get_authorization_url() | |
| # code = parse_callback_url_querystring() # Refer your web framework | |
| # state = parse_callback_url_querystring() # Refer your web framework | |
| tokens = client.get_tokens_by_code(code, state) | |
| user = client.get_user_info(tokens.access_token) | |
| # The claims can be accessed using the dot notation. | |
| print user.username |
| macroset = { | |
| "oxObjectClass": "oxPublished:4", | |
| "oxReserved": "oxOrgOID:0", | |
| "oxSyntax": "oxPublished:1", | |
| "oxOrgOID": "1.3.6.1.4.1.48710", | |
| "oxSomething": "oxAttribute:0", | |
| "oxThird": "oxSomething:3", | |
| "oxMatchRules": "oxPublished:2", | |
| "oxPublished": "oxOrgOID:1", | |
| "oxAttribute": "oxPublished:3", |
| #!/usr/bin/python | |
| # Requires JSON Merge library | |
| # wget https://github.com/avian2/jsonmerge/archive/master.zip | |
| # unzip master.zip | |
| # cd jsonmerge-master | |
| # python setup.py install | |
| # Also requires ldif.py in same folder |
| #!/usr/bin/python | |
| # Requires JSON Merge library | |
| # wget https://github.com/avian2/jsonmerge/archive/master.zip | |
| # unzip master.zip | |
| # cd jsonmerge-master | |
| # python setup.py install | |
| # Also requires ldif.py in same folder |
service gluu-server-2.4.4 login
wget https://raw.githubusercontent.com/GluuFederation/community-edition-setup/master/static/scripts/export_opendj.py| Today's Research | |
| ================ | |
| OpenDJ Setup steps in Setup.py | |
| ------------------------------ | |
| * installObject.configure_opendj_install() | |
| - sets the load ldif command | |
| - sets the ldap_backend_type | |
| - writes the ldap password to file ldapPass | |
| * installObject.setup_opendj() | |
| - add_ldap_schema |