Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am echoechochamber on github.
  • I am akwilliams (https://keybase.io/akwilliams) on keybase.
  • I have a public key ASBW80YT8lk0fK0V8OdVOiLOs4imjeVlIx4cyu1urmT2fgo

To claim this, I am signing this object:

@echoechochamber
echoechochamber / Django
Last active October 24, 2019 17:05
[.gitignore defaults] default gitignores for different projects / frameworks I use often
# Created by https://www.gitignore.io
### OSX ###
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
@echoechochamber
echoechochamber / ErrorAlarm.md
Last active May 11, 2020 22:50
coding problems #rotunda_software

Pseudo Code

Pre work

  • Add a variable errorCount, accessible within the scope of logError
  • update logError to increase errorCount by 1 every time an error is logged

main

  • on server startup, trigger setInterval to fire every 1000ms
  • in setInterval callback
    • if errorCount greater than 10,
      • send email
#!/bin/bash
# Contributed by @quinkennedy (https://gist.github.com/quinkennedy/fc78c2bb1d6b1e27c174)
# modified to create images rather than installs by Jeremias Volker http://github.com/jvolker
{ # this ensures the entire script is downloaded #
openframe_has() {
type "$1" > /dev/null 2>&1
}
if [ -z "$OPENFRAME_DIR" ]; then