Skip to content

Instantly share code, notes, and snippets.

@YorikSar
YorikSar / main.tf
Created April 18, 2024 08:25
Jitsi on Vultr
terraform {
required_providers {
vultr = {
source = "vultr/vultr"
version = "2.19.0"
}
null = {
source = "hashicorp/null"
version = "3.2.2"
}
@YorikSar
YorikSar / .gitignore
Last active February 22, 2022 15:09
rules_rust on macOS libiconv issue reproduction
/bazel-*
/hello
_ =r"""A(W//2,*M(3*G
*G*V(2*J%P),G,J,G)+((M((J-T)
*V((G-S)%P),S,T,G)if(S@(G,J))if(W%
2@(S,T)))if(W@(S,T);H=2**256;import&hash
lib&as&h,os,re,binas cii&as&k;J$:int(k.b2
a_hex(W),16);C$:C(W// 58) +[W%58]if(W@[];X
=h.new("ripemd1 60 ");Y$:h.sha256(W).
digest();I$d=32: I(W//256,d-1)+bytes
([W%256])if(d>0@b""; U$:J(k.a2b_base6
4(W));f=J(os.urandom (64))% (H-U(b"AUVRIxlQ
@YorikSar
YorikSar / openstack_foundation_affiliations.py
Created August 20, 2012 10:52 — forked from oubiwann/openstack_foundation_affiliations.py
A quick hack to tally OpenStack Member affiliations
from pprint import pprint
from urllib2 import urlopen
from bs4 import BeautifulSoup
counts = {}
for letter in [chr(a) for a in xrange(ord('A'), ord('Z') + 1)] + ['intl']:
url = "http://www.openstack.org/community/members/?letter=%s" % (letter,)
soup = BeautifulSoup(urlopen(url).read())
@YorikSar
YorikSar / diff_tm.py
Created September 13, 2011 10:09
Time Machine diff
#!/usr/bin/env python
import sys, os
def safe_index(l, val):
try:
return l.index(val)
except ValueError:
return -1
[keystone.backends.ldap]
ldap_url = ldap://localhost
ldap_user = cn=admin,dc=nodomain
ldap_password = password
backend_entities = ['Tenant', 'User', 'UserRoleAssociation', 'Role']
sudo ldapadd -Y EXTERNAL -H ldapi:/// -f keystone/keystone/backends/ldap/keystone.ldif
echo “--api_paste_config=$(pwd)/keystone/keystone/examples/paste/nova-api-paste.ini” >> /etc/nova/nova.conf
git clone git://github.com/4P/openstack-dashboard.git
git clone git://github.com/openstack/keystone.git
AUTH_LDAP_SERVER_URI = "ldap://ldap.example.com"
AUTH_LDAP_USER_DN_TEMPLATE = "uid=%(user)s,ou=people,o=exampleorg,dc=example,dc=com"
AUTHENTICATION_BACKENDS = (
'django_auth_ldap.backend.LDAPBackend',
)