Skip to content

Instantly share code, notes, and snippets.

@bradfordcp
bradfordcp / ruby-enterprise.spec
Created June 9, 2011 21:26 — forked from axisofentropy/ruby-enterprise.spec
Ruby Enterprise Edition RPM SPEC file. Does not include fast threading or libtcmalloc.
# Package Maintainer: Increment phusion_release to match latest release available
%define phusion_release 2011.03
%define _prefix /opt/ruby-enterprise
Summary: Ruby Enterprise Edition (Release %{phusion_release})
Name: ruby-enterprise
Vendor: Phusion.nl <[email protected]>
Packager: Christopher Bradford <[email protected]>
Version: 1.8.7
Release: 7%{?dist}
@lnattrass
lnattrass / get_tds_cert.py
Last active November 15, 2024 11:07
A terrible way to connect to MS SQL Server and dump the certificate as a PEM
import sys
import pprint
import struct
import socket
import ssl
from time import sleep
# Standard "HELLO" message for TDS
prelogin_msg = bytearray([ 0x12, 0x01, 0x00, 0x2f, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x1a, 0x00, 0x06, 0x01, 0x00, 0x20,
0x00, 0x01, 0x02, 0x00, 0x21, 0x00, 0x01, 0x03, 0x00, 0x22, 0x00, 0x04, 0x04, 0x00, 0x26, 0x00,
@wallyhall
wallyhall / apache_airflow_sso_howto.md
Last active October 26, 2024 18:18
Apache Airflow Azure AAD SSO howto

The following instructions for enabling Azure SSO for Apache Airflow nearly take you all the way - but fall short a couple of details around the configuration of airflow itself:

https://objectpartners.com/2021/12/24/enterprise-auth-for-airflow-azure-ad

All the "Azure" instructions there can be safely followed - the resulting webserver_config.py (which can be injected into a dockerised Airflow in /opt/airflow/webserver_config.py) can be built from the following:

from __future__ import annotations

import os