This file contains hidden or 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/env bash | |
# ----------------------------------------------------------------------------- | |
# Setup | |
# ----------------------------------------------------------------------------- | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
# ----------------------------------------------------------------------------- |
This file contains hidden or 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/env bash | |
# ------------------------------------------------------------------------------ | |
# Small script to rename the pi and group to a different one | |
# and also change the password. | |
# ------------------------------------------------------------------------------ | |
declare -r OLD_USER=pi | |
declare -r OLD_GROUP=pi | |
declare -r NEW_USER=joedoe |
This file contains hidden or 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/env bash | |
# ----------------------------------------------------------------------------- | |
# Setup | |
# ----------------------------------------------------------------------------- | |
set -o errexit | |
set -o nounset | |
set -o pipefail |
This file contains hidden or 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/env bash | |
# ----------------------------------------------------------------------------- | |
# This script resturns the disk path and the WWN for a mount point | |
# ----------------------------------------------------------------------------- | |
# ----------------------------------------------------------------------------- | |
# Setup | |
# ----------------------------------------------------------------------------- | |
set -o errexit |
This file contains hidden or 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/env ruby | |
require 'rdoc' | |
require 'optparse' | |
class Debug | |
attr :on | |
def self.message message | |
return unless @on |
This file contains hidden or 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/env ruby | |
require 'rdoc' | |
require 'optparse' | |
class Debug | |
attr :on | |
def self.message message | |
return unless @on |
This file contains hidden or 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
# .bashrc include portion | |
if [[ -d ${HOME}/.bashrc.d ]]; then | |
for profile in $(find ${HOME}/.bashrc.d -type f -name "*.sh"); do | |
source ${profile} | |
done | |
fi |
This file contains hidden or 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
# ------------------------------------------------------------------------ | |
# Variables | |
# ------------------------------------------------------------------------ | |
_status_format=' [#I] #W ' | |
_status_bg=cyan | |
_status_fg=black | |
# ------------------------------------------------------------------------ | |
# Key Bindings | |
# ------------------------------------------------------------------------ |
This file contains hidden or 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/env ruby [31/13189] | |
class PasswordFactory | |
SALT_LENGTH = 13 | |
PW_LENGTH = 12 | |
SALT_CHARS = (0..9).to_a + ('a'..'z').to_a + ('A'..'Z').to_a | |
PW_CHARS = SALT_CHARS | |
PREFIX_DEFAULT = '$6$' | |
PREFIX = { | |
sha512: '$6$', |
NewerOlder