This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# The line above is to allow printing of the degree (°) symbol | |
from subprocess import call | |
class PanelTemperature: | |
degree_sign= u'\N{DEGREE SIGN}' | |
def __init__(self): | |
self.c = 0 #It is assumed C is delivered from /opt/vc/bin/vcgencmd measure_temp | |
self.f = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export match=$(netstat -tlapn | grep 8011 | wc -l) | |
if [ $match -lt 1 ] | |
then | |
export FLASK_APP=proxy.py | |
cd $FLASK_APP_DIR | |
flask run --host=0.0.0.0 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# derivative work | |
# credit: chrisvdg (https://codegists.com/snippet/shell/install-golang-armv6sh_chrisvdg_shell) | |
echo "Dowloading Go" | |
wget --no-check-certificate https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz | |
echo "extracting Go" | |
sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz | |
# cleanup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first: | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
# One way to completely uninstall node + npm is to do the following: | |
# Go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* |