Skip to content

Instantly share code, notes, and snippets.

@turicas
turicas / Transcrição de textos em Português com whisper (OpenAI).ipynb
Last active November 18, 2025 15:49
Transcrição de textos em Português com whisper (OpenAI)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@asciipip
asciipip / import.py
Created November 2, 2021 13:24
beancount-import example
#!/usr/bin/env python3
import glob
import os
import beancount_import.webserver
## I keep my scripts in a subdirectory relative to the main beancount
## file, so the main directory is this script's directory's parent.
JOURNAL_DIR = os.path.dirname(os.path.dirname(__file__))
@heiglandreas
heiglandreas / ldap_auth.php
Last active April 15, 2024 06:46
LDAP-Authentication
<?php
/**
* This gist expects the following parameters
*
* @param string $ldapURI The LDAP-Uri. Something like ldaps://example.com:636 or ldap://example.com/396
* @param string|null $rdnUsername The DN of a user with read-credentials to the LDAP. Not necessary for anonymous bind.
* @param string|null $rdnPassword THe password of the $rdnUsername
* @param string|null $filter THe filter to be used to find the user in the LDAP
*/