Skip to content

Instantly share code, notes, and snippets.

View jbd's full-sized avatar

Jean-Baptiste Denis jbd

View GitHub Profile
@jbd
jbd / dnsmasq.conf
Created March 31, 2025 20:44 — forked from jeremyschulman/dnsmasq.conf
Sample dnsmasq.conf file that uses option-82 circuit-id to assign fixed IP address
#domain-needed
bogus-priv
expand-hosts
addn-hosts=/var/lib/dnsmasq/hosts
# interfaces ...
interface=eth1
# DCHP configs ...
@jbd
jbd / 01-form-single.html
Created November 22, 2023 10:25 — forked from ve3/01-form-single.html
Slice large file into chunks and upload using JavaScript.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>XHR upload large file with slice</title>
<style>
#debug {
border: 3px dashed #ccc;
margin: 10px 0;
padding: 10px;
#!/usr/bin/env python
from influxdb import InfluxDBClusterClient
influx_host = "127.0.0.1"
influx_port = 8086
influx_user = "user"
influx_pass = "pass"
database = "example"