Skip to content

Instantly share code, notes, and snippets.

package main
import (
"bytes"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"strings"
@WakeupTsai
WakeupTsai / prometheus.go
Created June 12, 2018 03:29
Client for prometheus example
package main
import (
"fmt"
"reflect"
"time"
"github.com/prometheus/client_golang/api"
prometheus "github.com/prometheus/client_golang/api/prometheus/v1"
"golang.org/x/net/context"
@WakeupTsai
WakeupTsai / YAML
Last active February 15, 2025 08:46
[yaml] yaml files #yaml #kubernetes #pir #raspberry
yaml files for demo.
@WakeupTsai
WakeupTsai / PIR-test
Created October 27, 2017 08:06
[PIR-test] Testing code for pir sensor #pir #raspberry
Testing code for pir sensor
@WakeupTsai
WakeupTsai / K8S Config
Created October 13, 2017 07:35
[K8S-Config] Scripts to run the kubernetes. #kubernetes #k8s #pi #raspberrypi
Scripts to run the kubernetes.
@WakeupTsai
WakeupTsai / Books to Readmoo
Last active October 13, 2017 07:23
[books2readmoo] Parse the books web and import into readmoo #webcrawler #crawler
Parse the books web and import into readmoo.
@WakeupTsai
WakeupTsai / Send images through MQTT
Last active June 16, 2025 13:55
[Image-MQTT] Publish and subscribe the images through MQTT #mqtt #image
Send images through MQTT