Skip to content

Instantly share code, notes, and snippets.

View kamihacker's full-sized avatar

Carlos Maldonado kamihacker

View GitHub Profile
@kamihacker
kamihacker / centos_python_env_setup
Last active August 29, 2015 14:05 — forked from floer32/centos_python_env_setup
changes to correspond reality of August 2014 on CentOS 6
#!/bin/bash
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
# Install stuff #
#################
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install zlib-devel # gen'l reqs
#!/bin/bash
#
# Stolen from https://stuckinadoloop.wordpress.com/2011/04/14/script-to-convert-openldap-schema-files-to-ldif-format/
SCHEMAD=/etc/openldap/schema
SCHEMAS='dhcp.schema'
tmpd=`mktemp -d`
pushd ${tmpd} >>/dev/null
@kamihacker
kamihacker / 00core.ldif
Last active August 29, 2015 14:07
extract all attributes from a schema file in a list and print them
#
# BEGIN COPYRIGHT BLOCK
# This Program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; version 2 of the License.
#
# This Program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#