-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathresume-to-xml.py
executable file
·751 lines (630 loc) · 22.3 KB
/
resume-to-xml.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from __future__ import print_function
from collections import OrderedDict
from widgets import (
BarChart,
Document,
DonutChart,
Gauge,
Markdown,
Page,
Table,
)
import click
import os
# For some reason the first line sometimes gets formatted weird
# This invisible placeholder seems to be a functional workaround
placeholder = click.style(" ", fg="white")
# placeholder = ""
def processes_table():
table = {
"border": {"type": "line", "fg": "cyan"},
"columnSpacing": 6,
"columnWidth": [16, 12, 12],
"fg": "green",
"height": "30%",
"interactive": "true",
"keys": "true",
"label": "Active Processes",
"selectedFg": "white",
"selectedBg": "blue",
"width": "10%",
}
data = {
"headers": ["Autodidact Process", "Cpu (%)", "Memory", "Comment"],
"rows": [
["German", 12, 13, "Host 'Berlin' unresponsive; trying again"],
[
"Docker",
15,
26,
"Last command 'containerize-all-the-desktop-apps.sh' cannot stop itself",
],
["node.js", 5, 16, "Parent process 'frontend' is dirty"],
["Deployment automation", 12, 8.7, "Onscreen"],
["blog.soulshake.net", 3, 12.5, "Deployment in progress"],
["Ruby/Rails", 8, 6.2, "Recovering"],
["Job search", 0, 0, "Finished"],
],
}
ret = Table(col=0, row=0, colSpan=8, rowSpan=5, data=data, **table)
return ret
def languages_donuts():
data = OrderedDict({})
data["Russian"] = [11, "red"]
data["German"] = [28, "yellow"]
data["English"] = [99, "green"]
data["French"] = [89, "blue"]
data["Spanish"] = [60, "magenta"]
ret = DonutChart(
col=0,
row=0,
colSpan=9, # width of widgets, not of block
rowSpan=5,
label="Human languages",
spacing=0.2,
data=data,
)
return ret
def languages_table():
data = {
"headers": ["Language", "time", "DuoLingo level", "ease", "status"],
"rows": [
["Russian", "1y", 16, "10%", "{red-fg} caveperson"],
["German", "3y", 256, "39%", "{yellow-fg} rather clumsy"],
["Italian", "2y", 71, "20%", "{yellow-fg} I manage"],
["English", ">10y", 999, "99%", "{green-fg} native speaker"],
["French", ">10y", 899, "89%", "{blue-fg} fluent"],
["Spanish", "n/a", 100, "40%", "{magenta-fg} passive"],
],
}
table = {"label": "Details"}
languages = Table(col=2, row=2, colSpan=5, rowSpan=3, data=data, **table)
return languages
def looking_for():
label = "What am I looking for?"
ret = (
placeholder
+ """
I'm pretty happy where I'm at right now, but always open to hearing from teams who could
use a hand making the world better.
My ideal roles involve some combination of the following:
- spotting and addressing unnecessary complexity and repetition,
- automating manual processes so colleagues' brains are put to better use,
- writing useful tools (reusable CI pipelines, libraries, CLIs) that improve efficiency,
- documenting all the things,
- making the world better, one way or another
Some of the more abstract tools* I'm equipped with are:
- an incorrigible curiosity,
- a sort of fierce empathy,
- an obsession with well-made things and documentation,
- an incorruptible rage at injustice,
- a relentless determination when faced with a bug or mystery,
- an endless supply of ideas and hypotheses,
- a tiny bit of a bunch of other things, due to the aforementioned curiosity,
- an intuition for seeing causal relationships in the "big picture"
\* several of these qualities have gotten me into trouble at some point, so YMMV.
AMA!
"""
)
ret = Markdown(colSpan=6, rowSpan=8.5, data=ret, col=3, row=3, label=label)
return ret
def contact():
rows = []
rows.append([click.style("Site", fg="red"), "soulshake.net"])
rows.append([click.style("Email", fg="yellow"), "[email protected]"])
rows.append([click.style("Github", fg="green"), "https://github.com/soulshake"])
rows.append([click.style("Twitter", fg="blue"), "https://twitter.com/s0ulshake"])
rows.append(
[click.style("LinkedIn", fg="magenta"), "https://www.linkedin.com/in/ajbowen"]
)
rows.append(
[click.style("EphemeraSearch", fg="white"), "https://www.ephemerasearch.com"]
)
rows = [[row[0].rjust(30), click.style(row[1], fg="cyan")] for row in rows]
rows = [" ".join(row) for row in rows]
table = "\n".join(rows)
contact = [
placeholder,
"Say hi:",
table,
"For more info on this CV, see:",
click.style(
"http://blog.soulshake.net/2016/04/command-line-resume/", fg="cyan"
),
click.style("https://github.com/soulshake/cv.soulshake.net", fg="cyan"),
" Thanks!",
" Love, AJ" "",
]
contact = "\n\n".join(contact)
label = "Is this thing on?"
about = Markdown(colSpan=4, rowSpan=7, data=contact, col=3, row=3, label=label)
return about
def overview():
label = click.style("Overview", fg="white")
about_me = [
placeholder,
"Name".ljust(20) + click.style("AJ Bowen", fg="green", bold=True),
"Location".ljust(20) + click.style("Berlin and Kansas City", fg="green"),
"Employment State".ljust(20)
+ click.style("ACTIVE", dim=True, fg="green", reverse=True),
"Employment Status".ljust(20)
+ click.style("Freelancing", dim=True, fg="yellow"),
"Mobility".ljust(20) + click.style("Flexible", fg="green"),
"Nerdery Level".ljust(20) + click.style("CRITICAL", fg="red", reverse=True),
]
about_me = "\n".join(about_me)
about = Markdown(colSpan=4, rowSpan=4, data=about_me, col=3, row=3, label=label)
return about
def scorebar(level, total=15, char="■ "):
fg = "green"
if level <= total * 0.667:
fg = "yellow"
if level <= total * 0.334:
fg = "red"
fill_char = click.style(char, fg=fg)
empty_char = click.style(char, fg="white")
filled = fill_char * level
empty = empty_char * (total - level)
return filled + empty
def weapons():
width = 17
d = OrderedDict({})
d["Terraform"] = 15
d["Kubernetes"] = 14
d["Python"] = 13
d["Bash"] = 13
d["Linux"] = 13
d["GNU Make"] = 12
d["Golang"] = 11
d["Javascript"] = 10
d["Postgres"] = 8
d["Machine learning"] = 7
ret = [placeholder]
for key in d:
ret.append(key.ljust(width) + scorebar(d[key]))
return Markdown(
colSpan=4, rowSpan=4, data="\n".join(ret), col=0, row=6, label="Weapons"
)
def attributes():
"""Some of my characteristics."""
# Skipping: optimism, integrity
width = 17
attributes = OrderedDict({})
attributes["Race"] = click.style("Hybrid Software Engineer", bold=True)
attributes["Alignment"] = "Chaotic Good"
attributes["Empathy"] = 13
attributes["Willpower"] = 12
attributes["Creativity"] = 12
attributes["Typing speed"] = 13
attributes["Idealism"] = 12
attributes["Curiosity"] = 11
attributes["Punctuality"] = 6
attributes["Willingness to \n relocate to "] = ""
attributes[" San Francisco"] = 3
ret = [placeholder]
for key in attributes:
if isinstance(attributes[key], int):
ret.append(key.ljust(width) + scorebar(attributes[key]))
else:
ret.append(key.ljust(width) + click.style(attributes[key], fg="green"))
ret = "\n".join(ret)
attributes = Markdown(
colSpan=4, rowSpan=4, data=ret, col=3, row=3, label="Attributes"
)
return attributes
def other_experience():
label = "Unprofessional Experience"
blurb = [
placeholder,
"I've danced myself into a trance in Berlin nightclubs and Haitian RaRas. I've seen",
"the inside of several jail cells. I tried to burn a bra once but it wouldn't catch.\n",
"I've organized underground newspapers, backyard boxing leagues and protests, as well",
"as several successful dinner parties.\n",
"If working for your company will help me expand this section, please reach out ASAP.",
]
other_exp = Markdown(
colSpan=6, rowSpan=3, data="\n".join(blurb), col=3, row=3, label=label
)
return other_exp
def professional_experience():
label = "Professional Experience"
blurb = [placeholder]
positions = [
[
"Senior DevOps Engineer",
"Quantgene",
"September 2021",
"Present",
"Berlin (remote)",
],
[
"DevOps Engineer",
"Beacon Biosignals",
"July 2020",
"September 2021",
"Berlin (remote)",
],
[
"Infrastructure Engineer",
"Travis CI",
"July 2017",
"May 2019",
"Berlin (remote)",
],
[
"Solutions Engineer",
"Convox",
"October 2016",
"April 2017",
"Kansas City (remote)",
],
[
"Chief of Counter-bullshit operations",
"Gandi.net",
"October 2013",
"December 2015",
"San Francisco",
],
[
"Level 1+ Support Representative",
"Gandi.net",
"February 2012",
"October 2013",
"Lawrence, KS (remote)",
],
[
"Federal Student Aid question answerer",
"Vangent, Inc",
"2010",
"2011",
"Lawrence, KS",
],
]
for position in positions:
position[0] = position[0].rjust(20)
items = [
click.style(position[0], fg="magenta", bold=True).rjust(50),
click.style(position[1], fg="yellow").rjust(13),
position[2],
position[3],
click.style(position[4], fg="blue"),
]
first_four_length = sum([len(x) for x in items[0:4]])
items.insert(
len(items) - 1, " ".rjust(100 - (first_four_length) + 21 - len(position[4]))
)
# items.insert(len(items) - 1, first_four_length)
blurb.append(
"{} @{}: {} - {} {} {}".format(
*items,
)
)
blurb.append("\n")
blurb.append(
click.style("Previous positions", fg="blue") + ": See LinkedIn profile"
)
blurb.append(
click.style("Details on recent positions", fg="blue") + ": See next slide"
)
blurb = Markdown(colSpan=6, rowSpan=3, data=blurb, col=0, row=0, label=label)
return blurb
def awards():
ret = [
placeholder,
"Global Awareness Certification: 2010",
"Harley S Nelson scholar: 2009",
"Undergraduate Research Award: 2009",
"Award for excellence in FREN 450: 2009",
"KU Honor Roll: 2007, 2008, 2009",
"Teaching grant (Haiti): Spring 2008",
"Topeka Credit Union Scholarship: 2004",
"Mater Dei scholarship: 2004, 2005, 2006",
"Most improved in beginner motorcycle class: 2005",
"Hardest worker, SHHS Track team: 2000",
]
ret = Markdown(colSpan=4, rowSpan=4, data=ret, col=0, row=0, label="Awards")
return ret
def intro():
intro = [
click.style(".", fg="black"),
"Hi, I'm AJ.",
"I'm a cloud architect and devops engineer specializing in ",
"Kubernetes, infrastructure as code and subverting the dominant paradigm.",
"This is my resume.",
"",
"Note: this is primarily intended for command-line addicts.",
"A more conventional version can be found on LinkedIn.",
]
intro = [item.center(80) for item in intro]
intro = "\n".join(intro)
intro = intro.replace("AJ", click.style("AJ", fg="red"))
intro = intro.replace("Kubernetes", click.style("Kubernetes", fg="green"))
intro = intro.replace(
"infrastructure as code", click.style("infrastructure as code", fg="blue")
)
intro = intro.replace(
"subverting the dominant paradigm",
click.style("subverting the dominant paradigm", fg="magenta"),
)
colSpan = 5
rowSpan = 3.5
ret = Markdown(data=intro, colSpan=colSpan, rowSpan=rowSpan, label="")
return ret
def toc():
domain = os.environ.get("DOMAIN", "cv.soulshake.net")
port = os.environ.get("PORT", 80)
port = "" if port == 80 else f":{port}"
# statement = click.style(
# (
# "p=1; while true; do "
# f"curl {domain}{port}/"
# "$((p++))\?cols=$((COLUMNS)); read; done"
# ),
# fg="green",
# bold=True,
# )
ret = "\n".join(
[
placeholder,
"",
" To view all slides, run:",
" {}".format(
click.style(
(
"p=1; while [ $p -lt 10 ]; do "
f"curl -N {domain}{port}/$((p++)); read; done"
),
fg="green",
bold=True,
)
),
"",
" To view a specific slide:",
" {}".format(
click.style(
(f"curl -N {domain}{port}" "/3/\?cols=$((COLUMNS))"), fg="green"
)
),
]
)
colSpan = 5
rowSpan = 5
ret = Markdown(
data=ret,
colSpan=colSpan,
rowSpan=rowSpan,
label="The very professional resume of A.J. Bowen",
)
return ret
def exp_travis():
label = "[Experience] Travis CI"
width = 15
d = OrderedDict({})
d["Employer"] = "Travis CI"
d["Location"] = "Berlin, Germany (remote)"
d["Dates"] = "July 2017 to May 2019"
d["2017-2019"] = "Build infrastructure engineer"
d["A.K.A."] = [
"DevOps",
"EC2 specialist",
"Docker specialist",
"Automation specialist",
"Chaos monkey",
]
d["A.K.A."] = [click.style(x, fg="yellow") for x in d["A.K.A."]]
ret = [placeholder]
for key in d:
styles = {"fg": "green"}
if key in ["2017-2019"]:
styles["fg"] = "yellow"
styles["reverse"] = True
styles["bold"] = True
if isinstance(d[key], list):
d[key] = "\n".join(["{}{}".format(" ".ljust(20), x) for x in d[key]])
d[key] = d[key][20:]
ret.append(key.ljust(width) + click.style(d[key], **styles))
ret = "\n".join(ret)
ret = Markdown(colSpan=3, rowSpan=7, data=ret, col=3, row=3, label=label)
return ret
def exp_gandi():
label = "[Experience] Gandi.net"
width = 15
d = OrderedDict({})
d["Employer"] = "Gandi.net \o/"
d["Location"] = "San Francisco, CA"
d["Dates"] = "February 2012 to December 2015"
d["2013-2015"] = "Counter-bullshit operations"
d["A.K.A."] = [
"Developer advocate",
"API evangelist",
"Technical community manager",
"Chaos monkey",
"Emergency PR strategist",
"Open source champion",
"Automation specialist",
"Special projects",
"QA intern",
"Workshop administrator",
"Swag dealer",
]
d["A.K.A."] = [click.style(x, fg="yellow") for x in d["A.K.A."]]
d["2012-2013"] = "Level 1+ Support Agent"
d["A.K.A. "] = [
"Support ticket answerer person",
"Documentation tweaker",
"Bug hunter",
"Twitter person",
"Question asker",
]
d["A.K.A. "] = [click.style(x, fg="yellow") for x in d["A.K.A. "]]
ret = [placeholder]
for key in d:
styles = {"fg": "green"}
if key in ["2013-2015", "2012-2013"]:
styles["fg"] = "yellow"
styles["reverse"] = True
styles["bold"] = True
if isinstance(d[key], list):
d[key] = "\n".join(["{}{}".format(" ".ljust(20), x) for x in d[key]])
d[key] = d[key][20:]
ret.append(key.ljust(width) + click.style(d[key], **styles))
ret = "\n".join(ret)
ret = Markdown(colSpan=3, rowSpan=7, data=ret, col=3, row=3, label=label)
return ret
def exp_travis_tldr():
blurb = """
Travis CI has been an incredible place to work. I will be forever grateful for the experience of working with one of the most
amazing groups of humans ever.
"""
label = "TL;DR"
ret = [placeholder]
ret.append(blurb)
ret = "\n".join(ret)
ret = Markdown(colSpan=7.5, rowSpan=4, data=ret, col=3, row=3, label=label)
return ret
def exp_travis_details():
label = "Details"
blurb = """
Soon after joining Travis, I set out to become an expert on our EC2 / Docker-based infrastructure. As part of this effort, I:\n\n
- noticed that our CPUs-per-job allocation didn't match what we we advertised in documentation and identified and fixed the relevant bug\n
- containerized numerous microservices\n
- made numerous improvements to EC2 scaling behavior in an effort to reduce spurious pager alerts\n
- built tools to detect and remove stalled EC2 instances, resulting in cost savings\n
- helped build tooling to benchmark instance performance as part of an effort to review overall EC2 costs\n\n
I also helped drive efforts to identify and mitigate bitcoin mining and related abuse patterns, authoring a number of tools to help others identify and deal with these problems.\n\n
I shared on-call responsibilities and was involved in resolving a number of difficult production incidents, as well as tracking down some most disruptive and evasive bugs.
"""
ret = [placeholder]
ret = []
ret.append(blurb)
from IPython import embed
# embed()
ret = "\n".join(ret)
ret = Markdown(colSpan=4.5, rowSpan=7, data=ret, col=3, row=3, label=label)
return ret
def exp_gandi_tldr():
blurb = """My initial role at Gandi was entry-level support: troubleshooting and explaining issues relating to domain
names, DNS, SSL certs and basic hosting.\n\n
My curiosity and interest in this role led me to specialize in more technical hosting issues, while helping to hire,
train and mentor new employees, edit blog posts, and generally pitch in anywhere I could be helpful.\n\n
This versatility led me to be promoted to a so-called Community Manager role in our new San Francisco office.\n\n
From the time I was hired (near the beginning of Gandi's expansion into the U.S.) to the time I left, I had played a
role in nearly every aspect of our growth in the United States.
"""
label = "TL;DR"
ret = [placeholder]
ret.append(blurb)
ret = "\n".join(ret)
ret = Markdown(colSpan=7.5, rowSpan=4, data=ret, col=3, row=3, label=label)
return ret
def exp_gandi_details():
label = "Details"
blurb = """
I interacted with various tech communities, online and at industry events,
connecting with developers and helping them make the most of Gandi's domain,
SSL and hosting APIs.
I was the primary technical contact for Gandi resellers in the U.S.,
escalating to the CTO where appropriate.
Internally, I worked with engineers, product managers and support to improve
Gandi's APIs, web interface, documentation and open source presence based
on feedback collected from the community.
I shaped much of Gandi's voice via blog posts, newsletters and social media
interactions. I created, edited and localized a wide variety of technical
documentation, emergency communications and product communications.
I guided and managed Gandi's supported initiatives and open source projects,
organizing various campaigns and partnerships for our mutual benefit.
I tested and documented a huge number of Gandi's products and features.
Mostly: I was ready for anything, which usually happened at least twice a
week.\n\n
"""
ret = [placeholder]
ret.append(blurb)
ret = "\n".join(ret)
ret = Markdown(colSpan=4.5, rowSpan=7, data=ret, col=3, row=3, label=label)
return ret
def skills_bar_chart():
data = OrderedDict()
data["CI/CD"] = 9.5
data["Scripting"] = 9.3
data["Testing"] = 8.9
data["Orchestration"] = 9.1
data["Sysadmin"] = 8
data["Automation"] = 9.4
colSpan = 9
rowSpan = 4
barchart = BarChart(
col=1,
row=1,
colSpan=colSpan,
rowSpan=rowSpan,
label="Computery Skills",
barWidth=13,
data=data,
)
return barchart
def skills_other_bar_chart():
data = OrderedDict()
data["People"] = 6.5
data["Learning"] = 7
data["Singing"] = 1
data["Chaos"] = 6
data["Coloring"] = 5
data["Genealogy"] = 9.1
data["Lockpicking"] = 4
colSpan = 9
rowSpan = 4
ret = BarChart(
col=1, row=1, colSpan=colSpan, rowSpan=rowSpan, label="Other Skills", data=data
)
return ret
def employment_progress():
# Note to self: Keep track of this and increment for each hit?
colSpan = 6
rowSpan = 2
data = {"percent": 89, "fill": "yellow", "stroke": "green"}
ret = Gauge(
col=0,
row=0,
colSpan=colSpan,
rowSpan=rowSpan,
label="Employment Progress",
**data,
)
return ret
if __name__ == "__main__":
widgets = [
[[intro()], [toc()]],
[[overview(), weapons()], [attributes(), awards()], [employment_progress()]],
[[processes_table()]],
[[skills_bar_chart()], [skills_other_bar_chart()]],
[[languages_donuts()], [languages_table()]],
[[professional_experience()], [other_experience()]],
# [[exp_travis(), exp_travis_details()], [exp_travis_tldr()]],
[[exp_travis(), exp_travis_details()], [exp_travis_tldr()]],
[[exp_gandi(), exp_gandi_details()], [exp_gandi_tldr()]],
[[looking_for()]],
[[contact()]],
# [[other_experience()]],
# [[skills_stacked_chart()]], # stacked bar chart, doesn't work
# [[skills_line_chart()]], # dumb line graph thing
]
pages = {}
i = 0
for page in widgets:
pages[i] = Page()
row_y = 0
for row in page:
col_x = 0
for widget in row:
from IPython import embed
# embed()
widget.col = col_x
widget.row = row_y
pages[i].add_widget(widget)
col_x = col_x + widget.colSpan
row_y = row_y + widget.rowSpan
i += 1
doc = Document(pages)
print(doc.content) # .encode("utf-8"))