Skip to content

Instantly share code, notes, and snippets.

View apearson's full-sized avatar

Andrew Pearson apearson

View GitHub Profile
@dirkvm
dirkvm / streamtest.js
Last active November 12, 2020 17:08
websocket based streaming for Tesla
const util = require('util');
const WebSocket = require('ws');
const vehicle_id = ''; // as returned by the /vehicles api call
const auth_token = ''; // tokens as used in the REST API
const stream_columns = [
'speed',
'odometer',
'soc',
@hjbotha
hjbotha / free_ports.sh
Last active May 6, 2024 20:53
Free ports 80 and 443 on Synology NAS
#! /bin/bash
# NEWLY ADDED BACKUP FUNCTIONALITY IS NOT FULLY TESTED YET, USE WITH CARE, ESPECIALLY DELETION
# Developed for DSM 6 - 7.0.1. Not tested on other versions.
# Steps to install
# Save this script in one of your shares
# Edit it according to your requirements
# Backup /usr/syno/share/nginx/ as follows:
# # cd /usr/syno/share/
# # tar cvf ~/nginx.tar nginx