This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
vultr = { | |
source = "vultr/vultr" | |
version = "2.19.0" | |
} | |
null = { | |
source = "hashicorp/null" | |
version = "3.2.2" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/bazel-* | |
/hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_ =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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, os | |
def safe_index(l, val): | |
try: | |
return l.index(val) | |
except ValueError: | |
return -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[keystone.backends.ldap] | |
ldap_url = ldap://localhost | |
ldap_user = cn=admin,dc=nodomain | |
ldap_password = password | |
backend_entities = ['Tenant', 'User', 'UserRoleAssociation', 'Role'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ldapadd -Y EXTERNAL -H ldapi:/// -f keystone/keystone/backends/ldap/keystone.ldif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo “--api_paste_config=$(pwd)/keystone/keystone/examples/paste/nova-api-paste.ini” >> /etc/nova/nova.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone git://github.com/4P/openstack-dashboard.git | |
git clone git://github.com/openstack/keystone.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | |
) |
NewerOlder