Skip to content

Instantly share code, notes, and snippets.

Stay curious.

Eric Tendian EricTendian

Stay curious.
View GitHub Profile
EricTendian / nuclear-waste-block-comment.txt
Created May 16, 2020
Use when needed to warn about nuclear waste-like code. From "Expert Judgment on Markers to Deter Inadvertent Human Intrusion into the Waste Isolation Pilot Plant", Sandia National Laboratories report SAND92-1382 / UC-721, p. F-49
View nuclear-waste-block-comment.txt
* This place is a message...and part of a
* system of attention to it!
* Sending this message was important to us.
* We considered ourselves to be a powerful culture.
* This place is not a place of
* highly esteemed deed is commemorated here
* ...nothing valued is here.
EricTendian /
Created Feb 17, 2020
Sending an HTML email with curl over SMTP
cat << EOF > email.eml
Subject: ${MAIL_SUBJECT}
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
EricTendian /
Last active Nov 26, 2018 — forked from pgilad/
Git commit-msg hook to validate for jira issue or the word merge


  • Copy the file commit-msg to .git/hooks/commit-msg
  • Make sure your delete the sample file .git/hooks/commit-msg.sample
  • Make commit msg executable. chmod +x .git/hooks/commit-msg
  • Edit commit-msg to better fit your development branch, commit regex and error message
  • Profit $$

Shell example

EricTendian /
Created May 30, 2017
How to deploy a Vagrant Linux box in Microsoft Azure with a custom image
# NOTE: This was tested on a Blackboard Learn Vagrant machine in May 2017. Unknown how well the directions apply to other Vagrant machines.
# NOTE 2: Errors WILL occur as this is not well supported on Azure. You may need to do a fair bit of troubleshooting and pay close attention to these instructions.
# Step 1: Download the Vagrant .box file
# Step 2: Extract the .box file to the current directory (check the file format with the `file` command before you use tar)
tar xf BOX_FILE
# Step 3: Convert the resulting VMDK to a fixed size VHD
VBoxManage clonehd box-disk1.vmdk --format VHD --variant Fixed box-disk1.vhd
# Step 4: Upload the VHD to a storage account of your choice

Keybase proof

I hereby claim:

  • I am EricTendian on github.
  • I am erictendian ( on keybase.
  • I have a public key whose fingerprint is 4A40 E547 DB36 E405 B2D8 A57B 34AC FA62 BE6B 7570

To claim this, I am signing this object:

EricTendian / remove_eggs.js
Created Apr 24, 2016
Simple script to remove egg accounts from your Twitter feed.
View remove_eggs.js
// Works as of April 23, 2016 on and, in Google Chrome
To use as a bookmarklet, bookmark this URL:
var eggs = document.querySelectorAll('.stream-item img[src^=""]');
for (var i = 0; i < eggs.length; i++) {
var egg = eggs[i];
while (!egg.classList.contains("stream-item")) {
egg = egg.parentNode;
EricTendian / import_fb_chat_to_slack.js
Last active Aug 29, 2015
Use this little jQuery script to help create a CSV from a Facebook chat. You'll need to copy the ul element with id webMessengerRecentMessages and everything inside it to a new HTML file, and then include jQuery. From there you can open up devtools, paste in this script, and get an output. Then copy that output into a new textfile, save it, chan…
View import_fb_chat_to_slack.js
$("li.webMessengerMessageGroup > div.clearfix > div.clearfix._42ef").each(function () {
var line = '"'+Math.round($(this).find("div.rfloat._ohf abbr").attr("data-utime"))+'","general","'+$(this).find("div:nth-child(2) > strong > a").text()+'",';
$(this).find("div:nth-child(2) > div > div._53 > div").each(function () {
var text = $(this).find("div._38.direction_ltr > span > p").text().replace("\n","\\n");
if (text.length) console.log(line + '"'+text+ "\"\n");
EricTendian /
Last active Feb 27, 2020
Podcasts I listen to (as of 2016)

You'll have to search for these yourselves in the podcast app of your choice. I personally use the app "Stitcher". In no particular order...


  • DFJ Entrepreneurial Thought Leaders
  • StartUp Podcast
  • a16z
  • This Week in Startups


EricTendian /
Last active Aug 29, 2015
Use this shell script to play a specific Broadcastify #ChicagoScanner stream on your Linux computer. Currently uses omxplayer for use with a Raspberry Pi.
case $1 in
'Chicago Police Department'|'cpd')
'Chicago Police - Citywide 1'|'cw1')
'Chicago Police - Citywide 6'|'cw6')
EricTendian / iitalert.php
Created Aug 26, 2014
A webhook for safety alert emails, built to work with the Illinois Institute of Technology's alert system. This script posts alert messages to a Facebook group as soon as the POST request is made.
View iitalert.php
* IIT Alert notification app
* Created by: Eric Tendian
* This script is meant to be kicked off by upon a new email.
* Access token last generated: 25 August 2014
* To generate a new token, first visit the URL:
*[YOUR APP ID]&redirect_uri=[YOUR REDIRECT URL]&scope=user_groups,publish_actions