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 | |
# Converts AD pwdlastset field to readable date | |
# Kudos: https://www.adminsys.ch/2013/07/31/convert-active-directory-pwdlastset-attribute-readable-time/ | |
function convert { | |
unixepoc=$((($1/10000000)-11644473600)) | |
adlastset=$(/bin/date -d "1970-01-01 ${unixepoc} sec GMT") | |
echo -e ${adlastset} | |
} |
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
alias tmconf='vim ~/.tmux.conf' | |
alias tmls='tmux ls' | |
alias tmsess='tmux attach -t' | |
alias tmcolors='for i in {0..255}; do printf "\x1b[38;5;${i}mcolor%-5i\x1b[0m" $i ; if ! (( ($i + 1 ) % 8 )); then echo ; fi ; done' | |
alias tmnew='tmux new -s' | |
alias tmload='tmux source-file ~/.tmux.conf' | |
alias tmlayout='tmux list-windows | sed -n "s/.*layout \(.*\)] @.*/\1/p"' | |
alias mux='tmuxinator' |
OlderNewer