Skip to content

Instantly share code, notes, and snippets.

View Aethylred's full-sized avatar

Aaron Hicks Aethylred

  • NIWA
  • Foxton, New Zealand
View GitHub Profile
@Aethylred
Aethylred / pip-iter.yaml
Last active July 19, 2018 21:21
Iterate over a pip requirements.txt file
- name: Debug pip with large requirements file
hosts: 127.0.0.1
connection: local
become: yes
tasks:
- name: Get the requirements file
slurp:
src: /opt/awx/requirements/requirements.txt
register: reqfile
@devynspencer
devynspencer / freeipa.py
Last active April 23, 2024 20:53
Use FreeIPA hostgroups as a dynamic inventory source for Ansible. Badass.
#!/usr/bin/env python
import argparse
import json
from ipalib import api
def initialize():
'''
This function initializes the FreeIPA/IPA API. This function requires
@jborg
jborg / gist:d50975951580c53322a0
Created February 25, 2015 12:52
xmlsec1-config: Add missing XMLSEC_NO_SIZE_T
--- /usr/bin/xmlsec1-config.orig 2015-02-25 13:47:13.384286257 +0100
+++ /usr/bin/xmlsec1-config 2015-02-25 13:46:54.849285579 +0100
@@ -199,7 +199,7 @@
#
# Assemble all the settings together
#
-the_flags="$the_flags -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 $the_xml_flags $the_xslt_flags $the_crypto_flags"
+the_flags="$the_flags -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1 -DXMLSEC_NO_SIZE_T -I/usr/include/xmlsec1 $the_xml_flags $the_xslt_flags $the_crypto_flags"
the_libs="$the_libs -L${package_libdir} -lxmlsec1 -lltdl $the_xmlsec_crypto_lib -lxmlsec1 $the_xml_libs $the_xslt_libs $the_crypto_libs"