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
### Keybase proof | |
I hereby claim: | |
* I am dicbobz on github. | |
* I am dicbobz (https://keybase.io/dicbobz) on keybase. | |
* I have a public key ASAi2ut3OP7h7LcufMHjJnHAu3nNGNNKa2ObPpJzyjPAeQo | |
To claim this, I am signing this object: |
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
#!/bin/bash | |
# Check IP addres and convert to in-addr.arpa address | |
# Write the commands to a file. Then execute ./dns-import.log to run migration | |
FILE=$1 | |
TMP="$(mktemp)" | |
LOG="$(pwd)/dns-import.log" | |
DOMAIN="domain.tld" | |
function validate_ip() | |
{ |
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
#!/bin/sh | |
# Any copyright is dedicated to the Public Domain. | |
# http://creativecommons.org/publicdomain/zero/1.0/ | |
#### BEGIN CONFIG #### | |
# Make a temp file for list of file to backup | |
# Chroot breaks the ability to just backup the directory | |
OF=$(mktemp /tmp/tar_config.XXXX) || { echo "Can't get temp file"; exit 1; } | |
LIST=$OF |
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
#- include_vars: "{{ user_name }}.yml" | |
# with_first_found: | |
# - "{{ user_name }}.yml" | |
# - default.yml | |
- name: create group {{ user_group }} | |
group: name={{ user_group }} gid={{ user_id }} state={{ user_state }} | |
when: '"present" in user_state' | |
tags: | |
- users |
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/python | |
# rick@drawbrid.ge | |
import sys | |
import ldap | |
import getpass | |
import struct | |
from base64 import decodestring as decode | |
import argparse | |
parser = argparse.ArgumentParser(description="Update SSH Keys") | |
parser.add_argument('--file','-f', action='store', type=str, nargs=1, default='~/.ssh/id_rsa.pub', help='Supply ssh public key file') |
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/python | |
# rick@drawbrid.ge | |
import ldap | |
import hashlib | |
import os, sys | |
import getpass | |
from base64 import encodestring as encode | |
def makehash(password): | |
salt = os.urandom(4) |