Skip to content

Instantly share code, notes, and snippets.

View npdgm's full-sized avatar
🪿

Thibault VINCENT npdgm

🪿
View GitHub Profile
@npdgm
npdgm / main.cpp
Created March 28, 2023 18:19
Test : Arduino on ESP32 ; I2S output audio output (radio streaming) ; WS2812 LEDs driven by I2S method
#include <Arduino.h>
#include <WiFi.h>
#include <Audio.h>
#include <NeoPixelBus.h>
#include <NeoPixelAnimator.h>
#define I2S_DOUT 27
#define I2S_BCLK 32
#define I2S_LRC 33
#define LED_PIN 4
@npdgm
npdgm / elasticsearch-pbkdf2.py
Last active July 5, 2022 13:04
Python script to generate PBKDF2 password hashes for ElasticSearch xpack
#!/usr/bin/env python3
try:
import argparse
from getpass import getpass
from secrets import token_bytes
from binascii import b2a_base64
from hashlib import pbkdf2_hmac
except ImportError as err:
print('Python 3.6 or newer is required!\n')