Skip to content

Instantly share code, notes, and snippets.

View NeuralNoise's full-sized avatar

Starbuck NeuralNoise

  • NetlanICGH
  • earth
View GitHub Profile
@NeuralNoise
NeuralNoise / add_user.sh
Created December 28, 2018 10:44 — forked from nsabine/add_user.sh
Shell script to add a user to LDAP. Based on OpenLDAP and RFC 2307 memberuid group attributes.
#!/bin/bash
#
# add_user.sh: Add user to LDAP
# Author: Nick Sabine
#
# Defaults
LDAP_BASE="dc=ORG,dc=local"
LDAP_ACCOUNTS_DN="ou=people,${LDAP_BASE}"
LDAP_USER_GROUP="cn=user_group,ou=groups,${LDAP_BASE}"
@NeuralNoise
NeuralNoise / hosts
Created February 25, 2017 13:47 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost