I hereby claim:
- I am lucashalbert on github.
- I am lhalbert (https://keybase.io/lhalbert) on keybase.
- I have a public key whose fingerprint is 56BF 565F DCA9 7EAB D929 707E 0247 2564 C93D 8196
To claim this, I am signing this object:
#!/bin/bash | |
#################################################################################### | |
# | |
# Author: Lucas Halbert <https://www.lhalbert.xyz> | |
# Date: 01.23.2018 | |
# Last Edited: 01.23.2018 | |
# Version: 2018.01.23 | |
# Description: Performs a backup of the entire slapd DIT. Can be run from cron | |
# License: BSD 3-Clause License | |
# |
I hereby claim:
To claim this, I am signing this object:
# Function intended to remap an SSH agent socket after reconnection | |
function ssh-reagent() { | |
# find new ssh-agent socket | |
SSH_AUTH_SOCK=$(find /tmp/ssh-* -user `whoami` -name agent\* -printf '%T@ %p\n' 2>/dev/null | sort -k 1nr | sed 's/^[^ ]* //' | head -n 1) | |
# Check if SSH_AUTH_SOCK is a socket and if it is a symbolic link | |
if [ -S "${SSH_AUTH_SOCK}" ] && [ ! -h "${SSH_AUTH_SOCK}" ]; then | |
# Map SSH_AUTH_SOCK to Canonical Socket in ~/.ssh/ | |
echo "Mapping ${SSH_AUTH_SOCK} to ~/.ssh/ssh_auth_sock as a symbolic link" | |
ln -sf ${SSH_AUTH_SOCK} ~/.ssh/ssh_auth_sock |
#!/bin/bash | |
#################################################################################### | |
# | |
# Author: Lucas Halbert <https://www.lhalbert.xyz> | |
# Date: 06/12/2018 | |
# Last Edited: 01/29/2019 | |
# Version: 2019.01.29 | |
# Description: Moves necessary schema and LDIF files from old slapd instance to | |
# newly compiled instance. Fixes permissions as necessary for slapd | |
# to run. |
#!/bin/bash | |
#################################################################################### | |
# | |
# Author: Lucas Halbert <https://www.lhalbert.xyz> | |
# Date: 01/25/2019 | |
# Last Edited: 01/25/2019 | |
# Version: 2019.01.25 | |
# Description: Leverage the Confluence Cloud RESTful API to batch delete all | |
# iterable spaces. | |
# License: BSD 3-Clause License |
#!/usr/bin/python | |
import sys; | |
import getpass; | |
import crypt; | |
import uuid; | |
password = getpass.getpass("New Password: "); | |
salt = uuid.uuid4().hex [0:8]; |
; AutoHotKey script to send the string "thisisunsafe" when navigating to an "unsafe" page in Chrome. | |
#F5::Send, thisisunsafe |
#!/bin/bash | |
print_version() { | |
cat <<EOF | |
#################################################################################### | |
# | |
# Author: Lucas Halbert <contactme@lhalbert.xyz> | |
# Date: 01.23.2018 | |
# Last Edited: 01.23.2018 | |
# Version: 2018.01.23 | |
# Description: Performs a backup of the entire slapd DIT. Can be run from cron |
#!/bin/bash | |
print_version() { | |
cat <<EOF | |
#################################################################################### | |
# | |
# Author: Lucas Halbert <contactme@lhalbert.xyz> | |
# Date: 10/21/2015 | |
# Last Edited: 10/21/2015 | |
# Version: 2015.10.21 | |
# Description: Regenerate SSH host keys |
#!/bin/bash | |
print_version() { | |
cat <<EOF | |
########################################################################## | |
# | |
# Author: Lucas Halbert <contactme@lhalbert.xyz> | |
# Date: 04/29/2016 | |
# Last Edited: 03/07/2019 | |
# Version: 2019.03.07 | |
# Description: Utilizes named and DNSSEC utilities to assist in |