Skip to content

Instantly share code, notes, and snippets.

@renegaed
renegaed / Utilities.js
Created October 27, 2018 21:30
Userscipts helper js file
// set the My Object if it does not exist
window.My = window.My || {};
/**
* Utility Methods
*/
My.Utilities = {
//
#!/bin/bash
checkExisting(){
echo "Checking if already existing device on file..."
while read fileLine; do
if [ "$line" = "$fileLine" ]; then
echo "[WARNING] Device already initialized on this system. Nothing to do here"