Skip to content

Instantly share code, notes, and snippets.

@xfyecn
xfyecn / installing_nvidia_driver_cuda_cudnn_linux.md
Created June 3, 2024 02:12 — forked from kmhofmann/installing_nvidia_driver_cuda_cudnn_linux.md
Installing the NVIDIA driver, CUDA and cuDNN on Linux

Installing the NVIDIA driver, CUDA and cuDNN on Linux (Ubuntu 20.04)

This is a companion piece to my instructions on building TensorFlow from source. In particular, the aim is to install the following pieces of software

on an Ubuntu Linux system, in particular Ubuntu 20.04.

@xfyecn
xfyecn / emulator.js
Created August 3, 2020 05:50 — forked from ashvayka/emulator.js
Temperature and Humidity emulator for Thingsboard tutorials
//Requires node.js and mqtt library installed.
var mqtt = require('mqtt');
const thingsboardHost = "demo.thingsboard.io";
// Reads the access token from arguments
const accessToken = process.argv[2];
const minTemperature = 17.5, maxTemperature = 30, minHumidity = 12, maxHumidity = 90;
// Initialization of temperature and humidity data with random values
var data = {
@xfyecn
xfyecn / attributes-demo.js
Created August 3, 2020 05:50 — forked from ashvayka/attributes-demo.js
Thingsboard Attributes API demo application
// Requires node.js and mqtt library installed.
var mqtt = require('mqtt');
var os = require("os");
const thingsboardHost = "demo.thingsboard.io";
// Reads the access token from arguments
const accessToken = process.argv[2];
// Default topics. See http://thingsboard.io/docs/reference/mqtt-api/ for more details.
const attributesTopic = 'v1/devices/me/attributes';