Skip to content

Instantly share code, notes, and snippets.

@Integralist
Integralist / Sed Ignore Lines.bash
Last active August 22, 2018 14:17
[Sed Ignore Lines] #sed #ignore #regex #patterns
# imagine you have multiple lines (non-deterministically generated):
#
# server 127.0.0.1; other stuff
# server 127.2.2.2:2222; other stuff
#
# to replace the second line and not the first, you can use the /.../! syntax
# this says "as long as the first pattern doesn't match, go ahead and try the substitution"
#
# sed -i '/some_pattern_to_ignore/! s/some_pattern_to_match/the_replacement_for_the_match/g' /nginx.conf
@Integralist
Integralist / Mature Engineers.md
Created July 18, 2018 07:46
[Mature Engineers] #mature #senior #developer #qualities #engineer

The following is copied verbatim from https://www.kitchensoap.com/2012/10/25/on-being-a-senior-engineer/ -- this gist is merely a partial backup of that excellent article.

For my own thoughts on the subject (which I still agree with having now read the above link) see my post called "The Perfect Developer Qualities": https://www.integralist.co.uk/posts/the-perfect-developer-qualities/

Mature engineers seek out constructive criticism of their designs.

Every successful engineer I’ve met, upon finishing up a design or getting ready for a project, will continually ask their peers questions along the lines of:

  • “What could I be missing?”
  • “How will this not work?”