This file contains hidden or 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
| import asyncio | |
| import requests | |
| import time | |
| import os | |
| import sys | |
| from bleak import discover, BleakError | |
| BLUE_RADIOS_CID = 133 | |
| STATIC_DATA_TID = 0x3C | |
| TEMPERATURE_DATA_STRUCTURE_ID = 0x43 |
This file contains hidden or 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
| import json, re, sys | |
| from bs4 import BeautifulSoup | |
| input_file = sys.argv[1] | |
| with open(input_file, encoding="utf8") as json_handle: | |
| data = json.load(json_handle) | |
| for card in data[0]: |
This file contains hidden or 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 | |
| # Test if PHP is installed | |
| php -v > /dev/null 2>&1 | |
| PHP_IS_INSTALLED=$? | |
| # Test if HHVM is installed | |
| hhvm --version > /dev/null 2>&1 | |
| HHVM_IS_INSTALLED=$? |
This file contains hidden or 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
| sudo adduser <username> www-data | |
| sudo chgrp -R www-data /var/www | |
| sudo chmod -R g+rw /var/www | |
| find /var/www -type d -print0 | sudo xargs -0 chmod g+s |