Skip to content

Instantly share code, notes, and snippets.

@xoff00
xoff00 / gist:a35f7b6e859117ffdb3964a75ab6ad6f
Created September 2, 2025 19:35
ESP32 DS18B20 address
// Determine DS18B20 addresses (thanks ChatGPT)
//
// How to use
//
// In Arduino IDE, install OneWire and DallasTemperature (Library Manager).
//
// Wire all DS18B20 sensors in parallel on the same data line with a 4.7 kΩ pull-up from DQ to Vdd.
//
// Vdd → 3.3V or 5V
//
@xoff00
xoff00 / gist:1f0ebb080d559559e0f3324e96d49c99
Created September 2, 2025 19:29
DS18B20 Address Arduino Sketch
// Determine DS18B20 addresses (thanks ChatGPT)
//
// How to use
//
// In Arduino IDE, install OneWire and DallasTemperature (Library Manager).
//
// Wire all DS18B20 sensors in parallel on the same data line with a 4.7 kΩ pull-up from DQ to Vdd.
//
// Vdd → 3.3V or 5V
//
gl.setup(NATIVE_WIDTH, NATIVE_HEIGHT)
node.alias "looper"
local Looper = function(file)
local vid = resource.load_video(file, false, true)
local function draw()
util.draw_correct(vid, 0, 0, WIDTH, HEIGHT)
return true
end
local function set_running(running)
@xoff00
xoff00 / gist:fc8e074985e48287e31742730d8a3e8b
Created October 3, 2017 23:37
Splunk cluster bundle status on a single line
splunk show cluster-bundle-status | grep -A5 site1 | paste -d " " - - - - - - - | sed -r -e 's/\t/ /g' -e 's/(.uto)?.asu.edu//g' -e 's/[[:alnum:]]\{8\}(-[[:alnum:]]\{4\}){3}-[[:alnum:]]\{12\}//g' -e 's/[[:blank:]]*site1[[:blank:]]*/ /g' -e 's/_bundle//g' -e 's/_validat(ed|ion_)//g' -e 's/_required_apply//g' -e 's/--//g' | sort -V | column -t