Skip to content

Instantly share code, notes, and snippets.

-- 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
@jkent
jkent / rpcclient.py
Last active August 15, 2022 21:05
Simple python RPC server/client
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 et
import json
import socket
class RpcException(Exception):
pass
@diverted247
diverted247 / README
Last active March 21, 2024 18:55
Export slides from Google Slides as SVG - Console Script (Chrome tested)
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,
@ibeex
ibeex / auth.py
Created October 14, 2011 20:04
Python LDAP (ActiveDirectory) authentication
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 = '%s@xxx.xx' % username