Skip to content

Instantly share code, notes, and snippets.

@autoiue
autoiue / README.md
Last active April 13, 2025 18:03 — forked from Altavion/README.md
Sync groups from Authentik to Outline via webhooks

Sync groups from Authentik to Outline via webhooks

Description

This script builds upon the work of Frando for synchronizing groups from Keycloak to Outline, adapting it to work with Authentik as the identity provider. It sets up a webhook server using Deno to process users.signin events from Outline, securely validate these requests via HMAC signatures, and automatically synchronize user group memberships between Authentik and Outline.

Key Features

  • Group Synchronization: Automatically updates user group memberships in Outline to match the groups assigned in Authentik.
  • Dynamic Group Creation: Creates missing groups in Outline if they exist in Authentik but are not yet present in Outline.
  • User Matching: Matches users between Authentik and Outline using their email addresses.
  • Secure Webhooks: Uses HMAC signatures to verify the authenticity and integrity of webhook requests.
@autoiue
autoiue / alice & arthur.md
Last active February 21, 2020 15:20
GPT-2 is a lot of fun

VERY GOOD ONE

Arthur: — I am sure you will have time to get to know me since I'll never leave you.

Alice: — You don't know anything about me yet

Arthur: — Yes, I do.

Alice: — I'll have a lot of fun

@autoiue
autoiue / README.md
Last active December 29, 2019 14:31
Using pyserial with Arduino without hangs or freezes

Using pyserial with Arduino without hangs or freezes

By default pyserial doesn't play nice with Arduino. The Arduino may reset at the start of the communication or hangs after few minutes.
This application demonstrate 2MBits/sec serial communication with an Arduino UNO (ATMega328) to drive 56 APA102 LEDs. This code can achieve a refresh rate of ~100Hz and can run forever with no hangs or freezes.

Installing pyserial

pip install pyserial

# Create first network with Keras
from keras.models import Sequential
from keras.layers import *
from keras import backend as K
from keras.engine.topology import Layer
import numpy as np
import codecs, json, math
# fix random seed for reproducibility
seed = 7
@autoiue
autoiue / WifiTemp.ino
Created December 21, 2016 17:35
using ESP8266 AT commands with Arduino
// #define CADREID 2
// #define VOLTAGE 4.95f
// #define SENSOR_BOX A3
// #define SENSOR_EXT A1
// #define SENSOR_LED A2
#define CADREID 1 // Identifiant device