Skip to content

Instantly share code, notes, and snippets.

View jpwsutton's full-sized avatar

James Sutton jpwsutton

View GitHub Profile
boneskull / proxy
Created January 26, 2016 00:43
example nginx config to reverse proxy a node-red server (websocket support)
server {
listen 80;
server_name your_server_name;
access_log /var/log/nginx/access.log;
location / {
proxy_pass http://localhost:1880;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
jpmens /
Last active March 20, 2020 19:40
CC2650 read via BLE and publish to MQTT
#!/usr/bin/env python
# read CC2650 SensorTag by JP Mens
# follow
# to get started, but use
import time
import json
import struct
import Sensortag2650 as sensortag
import paho.mqtt.publish as mqtt
eladc /
Last active July 13, 2023 11:43
Mount your Account Using davfs2
## davfs2 installation and account configuration script for Linux
## Tested on Ubuntu, Fedora and OpenSuse
## Update 1.032615
## This script must be run as root
if [ ! $UID = 0 ]; then
echo "This script needs super user privileges to run"
echo "run it againg using sudo or login as root"
exit 1