Skip to content

Instantly share code, notes, and snippets.

@juanqui
juanqui / gist:af16f633ba8e6da4bdaab4476a180e56
Created December 29, 2023 04:25
esp32c3 wokwi connection logs
INFO - V (27014) wifi:
INFO - scan specific ssid=Wokwi-GUEST
INFO -
INFO - V (27081) wifi:
INFO - start max timer
INFO -
INFO - D (27241) wifi:
@juanqui
juanqui / bed.g
Last active August 26, 2021 16:14
CR-10 S4 Duet2Wifi Config w/ BLTouch and AC Heated Bed
M561 ; clear any bed transform
G29 S2 ; Clear bed height map
; Probe 2-points
M401 ; Deploy probe - deployprobe.g
G30 P0 X20 Y200 Z-9999 ; Center Left
G30 P1 X340 Y200 Z-9999 S2 ; Center Right
M402 ; Retract Probe - retractprobe.g
0x45b1fDcA7aa4acF6957c464815E3708B0aB7354a
@juanqui
juanqui / get_nest_temps.js
Last active July 1, 2016 04:11
Get Temperatures From Nest Thermostats
"use strict";
var request = require('request');
// request login
request({
url: 'https://home.nest.com/user/login',
method: 'POST',
headers: {
'user-agent': 'Nest/2.1.3 CFNetwork/548.0.4',
@juanqui
juanqui / gist:7564275
Created November 20, 2013 14:41
Golang Kqueue Snippet
// helpful links:
// https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/EV_SET.2.html
// http://julipedia.meroh.net/2004/10/example-of-kqueue.html
// create kqueue
kq, err := syscall.Kqueue()
if err != nil {
log.Println("Error creating Kqueue descriptor!")
return
}