Skip to content

Instantly share code, notes, and snippets.

@Labisana
Labisana / dbench libsmbclient error
Created February 3, 2016 06:12
dbench libsmbclient error
./configure CFLAGS="-I/usr/include/samba-4.0/"
@CalebEverett
CalebEverett / events-websock.js
Last active March 29, 2023 15:04
Lxd api example: lxc exec and operations websocket via nodejs
const fs = require('fs')
const WebSocket = require('ws');
const wsoptions = {
cert: fs.readFileSync('../../.config/lxc/client.crt'),
key: fs.readFileSync('../../.config/lxc/client.key'),
rejectUnauthorized: false
}
var ws = new WebSocket('wss://127.0.0.1:8443/1.0/events?type=operation', wsoptions);