Update 2020/05/19: I'm using PopOS 20.04. Works great!!
NOTE: At the moment Dell G3 series doesn't officially support Ubuntu 18.04.
This post on Reddit: https://www.reddit.com/r/Ubuntu/comments/b74vvb/ubuntu_1604_on_dell_g3/
Update - 04/04/2019
| # auto detects a good number of processes to run | |
| worker_processes auto; | |
| #Provides the configuration file context in which the directives that affect connection processing are specified. | |
| events { | |
| # Sets the maximum number of simultaneous connections that can be opened by a worker process. | |
| worker_connections 8000; | |
| # Tells the worker to accept multiple connections at a time | |
| multi_accept on; | |
| } |
Update 2020/05/19: I'm using PopOS 20.04. Works great!!
NOTE: At the moment Dell G3 series doesn't officially support Ubuntu 18.04.
This post on Reddit: https://www.reddit.com/r/Ubuntu/comments/b74vvb/ubuntu_1604_on_dell_g3/
Update - 04/04/2019
Express makes it easy to nest routes in your routers. But I always had trouble accessing the request object's .params when you had a long URI with multiple parameters and nested routes.
Let's say you're building routes for a website www.music.com. Music is organized into albums with multiple tracks. Users can click to see a track list. Then they can select a single track and see a sub-page about that specific track.
At our application level, we could first have a Router to handle any requests to our albums.
const express = require('express');| package de.tdlabs.keycloak.client; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import org.keycloak.OAuth2Constants; | |
| import org.keycloak.RSATokenVerifier; | |
| import org.keycloak.admin.client.Keycloak; | |
| import org.keycloak.admin.client.KeycloakBuilder; | |
| import org.keycloak.common.VerificationException; | |
| import org.keycloak.jose.jws.JWSHeader; | |
| import org.keycloak.representations.AccessToken; |
| package demo; | |
| import java.io.Serializable; | |
| import java.util.ArrayList; | |
| import java.util.Collection; | |
| import java.util.Collections; | |
| import java.util.HashMap; | |
| import java.util.HashSet; | |
| import java.util.LinkedHashMap; | |
| import java.util.List; |
| OpenIDConnectAuth.discover( | |
| vertx, | |
| new OAuth2ClientOptions() | |
| .setClientID("<your google auth client id>") | |
| .setClientSecret("<your google auth client secret>") | |
| .setSite("https://accounts.google.com") | |
| .setTokenPath("https://www.googleapis.com/oauth2/v3/token") | |
| .setAuthorizationPath("/o/oauth2/auth"), | |
| res -> { |
pip3 install cqlsh==4.1.1
cqlsh --version
# or...
sudo su root
pip install cqlsh==4.1.1
cqlsh --version| """ | |
| django (1.8) python3 LDAP (via ldap3) Authentication backend | |
| Assumes 'AUTH_INFORMATION' is defined in settings.py in the form: | |
| AUTH_INFORMATION = { 'LDAP'{ | |
| 'USERNAME_SEARCH_FILTER': <ldap search filter, for example, '(uid={})'>, | |
| 'HOST': <ldap server host>, | |
| 'PORT': <ldap server port (integer)>, | |
| 'BASE_DN': <ldap base DN>, |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/processing.js/1.4.1/processing-api.min.js"></script><html> | |
| <!-- | |
| Created using jsbin.com | |
| Source can be edited via http://jsbin.com/pdfjs-helloworld-v2/8598/edit | |
| --> | |
| <body> | |
| <canvas id="the-canvas" style="border:1px solid black"></canvas> | |
| <input id='pdf' type='file'/> | |
| <!-- Use latest PDF.js build from Github --> |
| from flask import Flask, render_template_string, request | |
| class CustomFlask(Flask): | |
| jinja_options = Flask.jinja_options.copy() | |
| jinja_options.update(dict( | |
| block_start_string='<%', | |
| block_end_string='%>', | |
| variable_start_string='%%', | |
| variable_end_string='%%', | |
| comment_start_string='<#', |