Skip to content

Instantly share code, notes, and snippets.

View alexott's full-sized avatar
🏠
Working from home

Alex Ott alexott

🏠
Working from home
View GitHub Profile
@alexott
alexott / README.md
Last active August 21, 2023 12:33
AAD -> DBX synchronizer using Terraform

This gist contains Terraform code that allows to synchronize groups & users from AAD into the Databricks workspace, without need to setup SCIM connector.

This is an extended version of initial synchronizer implemented by Serge.

To start, download all .tf files to some place, and create a file terraform.tfvars with following content:

groups = {
 "My AAD group" = {
@alexott
alexott / minimial-cedet-config.el
Created October 22, 2012 07:30
Working configuration for CEDET from bzr & GNU Emacs (with working C++ & Java name completion)
;;; minimial-cedet-config.el --- Working configuration for CEDET from bzr
;; Copyright (C) Alex Ott
;;
;; Author: Alex Ott <alexott@gmail.com>
;; Keywords: cedet, C++, Java
;; Requirements: CEDET from bzr (http://cedet.sourceforge.net/bzr-repo.shtml)
;; Do checkout of fresh CEDET, and use this config (don't forget to change path below)
@alexott
alexott / Dockerfile
Created January 11, 2019 16:02
Docker image for Zeppelin + DSE
ARG DSE_VERSION=6.7.0
FROM datastax/dse-server:${DSE_VERSION}
ARG Z_VERSION="0.8.0"
ENV Z_HOME="/zeppelin"
ARG Z_URL_PREFIX=http://archive.apache.org/dist/zeppelin/zeppelin-${Z_VERSION}
ARG Z_TARBALL=zeppelin-${Z_VERSION}-bin-all.tgz
ARG Z_DOWNLOAD_URL=${Z_URL_PREFIX}/${Z_TARBALL}
@alexott
alexott / batches.puml
Created May 18, 2020 09:52
Execution of Cassandra's logged batch
@startuml
hide footbox
participant "Client" as client
database "Coordinator DSE node" as cnode
database "Batchlog DSE nodes" as bnode
database "DSE Nodes" as onode
alt successful case
@alexott
alexott / code.scala
Last active July 22, 2020 12:57
Testing quality of the language detection of Spark NLP, compared with FastText
// full code is here: https://github.com/alexott/spark-playground/tree/master/spark-nlp
@alexott
alexott / ctest2junix.xsl
Created April 11, 2012 11:09
XSL stylesheet to transform CTest results into JUnit format to import into Jenkins
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/Site">
<testsuite>
<xsl:variable name="BuildName"><xsl:value-of select="@BuildName"/></xsl:variable>
<xsl:variable name="BuildStamp"><xsl:value-of select="@BuildStamp"/></xsl:variable>
<xsl:variable name="Name"><xsl:value-of select="@Name"/></xsl:variable>
<xsl:variable name="Generator"><xsl:value-of select="@Generator"/></xsl:variable>
<xsl:variable name="CompilerName"><xsl:value-of select="@CompilerName"/></xsl:variable>
@alexott
alexott / 1.cql
Created August 16, 2019 11:21
example of counter deletion
cqlsh:test> describe test.abc6
CREATE TABLE test.abc6 (
id int PRIMARY KEY,
c counter
);
cqlsh:test> select * from test.abc6;
id | c
@alexott
alexott / list.txt
Created August 8, 2019 08:52
tlp-stress answer........
>curl -L -O "https://dl.bintray.com/thelastpickle/tlp-tools-tarball/tlp-stress-1.0.0.tar"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 22.5M 100 22.5M 0 0 3641k 0 0:00:06 0:00:06 --:--:-- 4985k
>tar xvf tlp-stress-1.0.0.tar
x tlp-stress-1.0.0/
x tlp-stress-1.0.0/lib/
...
>cd tlp-stress-1.0.0
@alexott
alexott / cld-stat.txt
Last active July 15, 2019 09:45
Data related to language detection evaluation
# language true-positive total accuracy
af 32 34 0.94
ar 200 201 0.99
az 161 161 1.00
be 157 157 1.00
bg 195 203 0.96
bn 198 198 1.00
ca 193 193 1.00
cs 195 196 0.99
da 198 200 0.99
test ♈ up ☝️ light skin ☝🏻 Zimbabwe 🇿🇼 England 🏴 keycap0 0️⃣end 0