2024-11-18 20:55:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Array of employment platforms
|
|
|
|
|
2024-11-19 02:01:21 +00:00
|
|
|
EmploymentPlatforms=(
|
2024-11-18 20:55:24 +00:00
|
|
|
"glassdoor"
|
2024-11-19 02:01:21 +00:00
|
|
|
"dice"
|
2024-11-18 20:55:24 +00:00
|
|
|
"guru"
|
|
|
|
"indeed"
|
|
|
|
"linkedin"
|
|
|
|
"roberthalf"
|
|
|
|
"teal"
|
|
|
|
"upwork"
|
|
|
|
"ziprecruiter"
|
|
|
|
)
|
|
|
|
|
2024-11-19 02:01:21 +00:00
|
|
|
HumanOutputFile="../output/intermediate/human/CharlesNWybleLongResume.md"
|
|
|
|
|
|
|
|
# Cleanup from previous run
|
|
|
|
rm ../output/intermediate/human/CharlesNWybleLongResume.md
|
|
|
|
|
|
|
|
|
|
|
|
for platform in "${EmploymentPlatforms[@]}"; do
|
|
|
|
MachineOutputIntermediateFile="../output/intermediate/machine/$platform/CharlesNWybleLongResume.md"
|
|
|
|
echo "Removing old resume for $platform..."
|
|
|
|
rm "$MachineOutputIntermediateFile"
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
#####################################
|
|
|
|
# Human readable CV
|
|
|
|
#####################################
|
|
|
|
|
2024-11-18 20:55:24 +00:00
|
|
|
# Combine markdown files into single input file for pandoc
|
|
|
|
#Pull in my contact info
|
2024-11-19 02:01:21 +00:00
|
|
|
cat "../../common/@ReachableCEO/Resume/Common/Contact-Info.md" >> $HumanOutputFile
|
|
|
|
echo " " >> $HumanOutputFile
|
2024-11-18 20:55:24 +00:00
|
|
|
|
|
|
|
#And here we do some magic...
|
2024-11-18 21:51:50 +00:00
|
|
|
#Pull in my employer/title/dates of employment and my long form position summary data from each position
|
2024-11-18 21:32:22 +00:00
|
|
|
|
|
|
|
IFS=$'\n\t'
|
2024-11-18 21:40:59 +00:00
|
|
|
for position in $(cat ../../common/WorkHistory.csv); do
|
2024-11-19 02:01:21 +00:00
|
|
|
echo " " >> $HumanOutputFile
|
|
|
|
echo $position | sed -e 's/|//g' >> $HumanOutputFile
|
2024-11-18 21:40:59 +00:00
|
|
|
POSITION_FILE_NAME="$(echo $position | awk -F '|' '{print $1}')"
|
2024-11-19 02:01:21 +00:00
|
|
|
cat "../@ReachableCEO/Resume/CV/$POSITION_FILE_NAME.md" >> $HumanOutputFile
|
|
|
|
echo " " >> $HumanOutputFile
|
2024-11-18 21:32:22 +00:00
|
|
|
done
|
|
|
|
|
2024-11-18 20:55:24 +00:00
|
|
|
#Pull in my education info
|
2024-11-19 02:01:21 +00:00
|
|
|
cat "../../common/@ReachableCEO/Resume/Common/Education.md" >> $HumanOutputFile
|
2024-11-18 20:55:24 +00:00
|
|
|
|
|
|
|
# Run pandoc/etc to generate HTML/PDF/DOC into output dir
|
|
|
|
|
|
|
|
#First html/pdf/doc, for resume.reachableceo.com use
|
|
|
|
|
|
|
|
pandoc \
|
|
|
|
--from=markdown \
|
|
|
|
--to=html \
|
|
|
|
-o /d/tsys/@ReachableCEO/resume.reachableceo.com/cv/CharlesNWybleLongResume.html \
|
|
|
|
-c resume-css-stylesheet.css \
|
2024-11-19 02:01:21 +00:00
|
|
|
$HumanOutputFile
|
|
|
|
|
|
|
|
############################################################
|
|
|
|
# Machine readable CV for the various employment platforms
|
|
|
|
############################################################
|
|
|
|
|
2024-11-20 14:05:50 +00:00
|
|
|
#Per platform specific notes....
|
|
|
|
# Original idea here was to use the CSV file (| separated but whatever) and figure out (per platform) what was needed for formatting to be
|
|
|
|
# auto parsed
|
|
|
|
# ie
|
|
|
|
|
|
|
|
# function linkedin
|
|
|
|
# COMPANY=$1
|
|
|
|
# TITLE=$1
|
|
|
|
# EMPLOYMENTDATE=$1
|
|
|
|
# $COMPANY $EMPLYMENTDATE $TITLE
|
|
|
|
|
|
|
|
# function glassdoor
|
|
|
|
# COMPANY=$1
|
|
|
|
# TITLE=$1
|
|
|
|
# EMPLOYMENTDATE=$1
|
|
|
|
# $COMPANY $TITLE $EMPLOYMENTDATE
|
|
|
|
|
|
|
|
# This may still be developed
|
|
|
|
|
|
|
|
# glassdoor
|
|
|
|
# Appears to not try to parse.
|
|
|
|
|
|
|
|
# indeed
|
|
|
|
# Appears to not try to parse.
|
|
|
|
|
|
|
|
# ziprecruiter
|
|
|
|
# ZipRecruiter (position parsing) (fixed manually, only one position wasn't properly captured)
|
|
|
|
|
|
|
|
# linkedin
|
|
|
|
# TBD, not sure how/if/when it parses the uploaded document...
|
|
|
|
|
|
|
|
# upwork
|
|
|
|
# Doesn't seem to parse the resume at all
|
|
|
|
|
|
|
|
# roberthalf
|
|
|
|
# Robert Half (not sure if it parses resume or not)
|
|
|
|
|
|
|
|
# dice
|
2024-11-19 02:01:21 +00:00
|
|
|
# DIce (skills)
|
2024-11-20 14:05:50 +00:00
|
|
|
|
|
|
|
# teal
|
|
|
|
# tbd
|
|
|
|
|
|
|
|
# guru
|
|
|
|
# tbd
|
|
|
|
|
|
|
|
# careerbuilder
|
|
|
|
# tbd
|
|
|
|
|
|
|
|
# oracle talent something something (most big companies appear to use this)
|
|
|
|
# tbd (once i apply for a job somewhere that uses that platform, i will update)
|
|
|
|
|
2024-11-19 02:01:21 +00:00
|
|
|
|
|
|
|
IFS=$'\n\t'
|
|
|
|
for platform in "${EmploymentPlatforms[@]}"; do
|
|
|
|
echo "Creating pdf resume for $platform..."
|
|
|
|
MachineOutputIntermediateFile="../output/intermediate/machine/$platform/CharlesNWybleLongResume.md"
|
|
|
|
|
|
|
|
#Pull in my contact info
|
|
|
|
cat "../../common/@ReachableCEO/Resume/Common/Contact-Info.md" >> "$MachineOutputIntermediateFile"
|
|
|
|
echo " " >> "$MachineOutputIntermediateFile"
|
|
|
|
|
|
|
|
#Pull in my skills
|
|
|
|
cat "../../common/@ReachableCEO/Resume/Common/Skills.md" >> "$MachineOutputIntermediateFile"
|
|
|
|
echo " " >> "$MachineOutputIntermediateFile"
|
|
|
|
|
|
|
|
#And here we do some magic...
|
|
|
|
#Pull in my employer/title/dates of employment and my long form position summary data from each position
|
|
|
|
|
|
|
|
IFS=$'\n\t'
|
|
|
|
for position in $(cat ../../common/WorkHistory.csv); do
|
|
|
|
echo " " >> $MachineOutputIntermediateFile
|
|
|
|
echo $position | sed -e 's/|//g' >> $MachineOutputIntermediateFile
|
|
|
|
POSITION_FILE_NAME="$(echo $position | awk -F '|' '{print $1}')"
|
|
|
|
cat "../@ReachableCEO/Resume/CV/$POSITION_FILE_NAME.md" >> "$MachineOutputIntermediateFile"
|
|
|
|
echo " " >> "$MachineOutputIntermediateFile"
|
|
|
|
done
|
|
|
|
|
|
|
|
#Pull in my education info
|
|
|
|
cat "../../common/@ReachableCEO/Resume/Common/Education.md" >> "$MachineOutputIntermediateFile"
|
|
|
|
|
|
|
|
pandoc \
|
|
|
|
--from=markdown \
|
|
|
|
--to=pdf\
|
|
|
|
-o /d/tsys/@ReachableCEO/resume.reachableceo.com/cv/machine/$platform/CharlesNWybleLongResume.pdf \
|
|
|
|
-c resume-css-stylesheet.css \
|
|
|
|
"$MachineOutputIntermediateFile"
|
|
|
|
done
|