This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- From 24 to 23 | |
ALTER TABLE hdb_catalog.hdb_table DROP COLUMN configuration; | |
DROP VIEW IF EXISTS hdb_catalog.hdb_table_info_agg; | |
DROP VIEW IF EXISTS hdb_catalog.hdb_column; | |
CREATE VIEW hdb_catalog.hdb_column AS | |
WITH primary_key_references AS ( | |
SELECT fkey.table_schema AS src_table_schema | |
, fkey.table_name AS src_table_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim: set ts=4 et | |
import json | |
import socket | |
class RpcException(Exception): | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To export SVG from Google Slides. | |
1. Open Slide deck. | |
2. View -> 100% | |
3. Click on every thumbnail from first to last, this puts the SVG into the DOM. | |
4. Paste the export.js in the console. | |
5. Make sure to allow multiple downloads. | |
6. All SVG should be in Downloads folder. | |
Cheers, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ldap | |
def check_credentials(username, password): | |
"""Verifies credentials for username and password. | |
Returns None on success or a string describing the error on failure | |
# Adapt to your needs | |
""" | |
LDAP_SERVER = 'ldap://xxx' | |
# fully qualified AD user name | |
LDAP_USERNAME = '%[email protected]' % username |