Skip to content

Instantly share code, notes, and snippets.

@xjuric29
xjuric29 / color_fader.py
Created June 7, 2020 12:20
Very simple linux terminal color fader
with open('ascii.txt', 'r') as f:
text = list(f)
row_len = len(text[1])
colors = [214, 215, 216, 217, 218, 219]
chunk_size = len(colors)
chunk_len = row_len // chunk_size
for line in text:
for i in range(len(colors)):
@xjuric29
xjuric29 / groupofentries.ldif
Last active June 7, 2020 12:21
Add groupOfEntries LDAP support
# https://tools.ietf.org/html/draft-findlay-ldap-groupofentries-00
#
dn: cn=groupofentries,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: groupofentries
olcObjectClasses: {0}( 1.2.826.0.1.3458854.2.1.1.1 NAME 'groupOfEntries' DESC 'Replacement for groupOfNames object without required member attribute' SUP top STRUCTURAL MUST ( cn ) MAY ( member $ businessCategory $ seeAlso $ owner $ ou $ o $ description ) )