Skip to content

Instantly share code, notes, and snippets.

Avatar
🤭
I may be slow to respond.

COOLSTAR 0neday

🤭
I may be slow to respond.
View GitHub Profile
@0neday
0neday / cloudflare-update-record.sh
Last active Jan 17, 2023 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 and v6 Dynamic DNS Update in Bash
View cloudflare-update-record.sh
#!/bin/sh
#BIN_DIR=
BIN_DIR=/mnt/jffs2/plug/app/busybox
export PATH=$BIN_DIR/bin:$BIN_DIR/sbin:$BIN_DIR/usr/bin:$BIN_DIR/usr/sbin
#set -x
# cloudflare api
AUTH_EMAIL=""
@0neday
0neday / compile-stunnel-static-armv7-aarch64-x86_64.sh
Last active Jan 4, 2023
Cross compile statically stunnel for armv7 and aarch64
View compile-stunnel-static-armv7-aarch64-x86_64.sh
BASE=`pwd`
## cross-compile toolchain
git clone https://github.com/buildroot/buildroot
cd buildroot
make menuconfig
### select arm eabi and enable ssp support
make -j$(nproc) toolchain
cd $BASE
@0neday
0neday / xiaomi-miui11.txt
Last active Dec 13, 2022
xiaomi miui11 pm uninstall app
View xiaomi-miui11.txt
pm uninstall --user 0 com.miui.analytics
pm uninstall --user 0 com.xiaomi.mipicks
pm uninstall --user 0 com.miui.msa.global
pm uninstall --user 0 com.miui.cloudservice
pm uninstall --user 0 com.miui.cloudservice.sysbase
pm uninstall --user 0 com.miui.newmidrive
pm uninstall --user 0 com.miui.cloudbackup
pm uninstall --user 0 com.miui.backup
pm uninstall --user 0 com.xiaomi.glgm
pm uninstall --user 0 com.xiaomi.payment
@0neday
0neday / vivo_s9e_1.15.4.txt
Last active Oct 18, 2022
uninstall or disable vivo s9e 1.15.4 version pre-installed system app by pm
View vivo_s9e_1.15.4.txt
pm uninstall --user 0 com.iqoo.secure
pm uninstall --user 0 com.vivo.gamecube
pm uninstall --user 0 com.vivo.vhomeguide
pm uninstall --user 0 com.vivo.gamewatch
pm uninstall --user 0 com.vivo.smartLife
pm uninstall --user 0 com.vivo.smartshot
pm uninstall --user 0 com.bbk.cloud
pm uninstall --user 0 com.vivo.quickpay
pm uninstall --user 0 com.bbk.iqoo.logsystem
pm uninstall --user 0 com.android.bbklog
@0neday
0neday / publish_vultr_billing_traffic_using_public_mqtt_broker.py
Last active Jul 21, 2022
publish vultr billing and traffic using vultr api by public mqtt broker
View publish_vultr_billing_traffic_using_public_mqtt_broker.py
import requests
import json
import paho.mqtt.client as mqtt
import paho.mqtt.publish as publish
from requests.structures import CaseInsensitiveDict
# http get
url = 'https://api.vultr.com/v2/'
VULTR_API_KEY = ''
total = 0
@0neday
0neday / for ma5176 205.py
Last active Jun 24, 2022
get huawei ont temperature using python for homeassisstant command platform
View for ma5176 205.py
import os
import pickle
import requests
import re
import base64
import json
import urllib.parse
import codecs
@0neday
0neday / ha.json
Created Mar 27, 2022
for research
View ha.json
[
{
"id": "5bfc1ec08cb3472e",
"type": "tab",
"label": "home assisstant ",
"disabled": false,
"info": "研究用的",
"env": []
},
{
@0neday
0neday / esp32.yaml
Created Mar 27, 2022
esp32 for pzem-004t
View esp32.yaml
esphome:
name: esp32
# on_boot:
# priority: -100
# then:
# - fan.turn_on:
# id: living_room_fan
# speed: 50
esp32:
@0neday
0neday / dianfei.yaml
Last active Mar 26, 2022
homeassisstant pzem-004t power meter
View dianfei.yaml
#
utility_meter:
daily_energy:
source: sensor.pzem_004t_energy
name: PZEM-004T Daily Energy
cycle: daily
tariffs:
- peak
- offpeak
monthly_energy:
@0neday
0neday / nodered.json
Last active Mar 26, 2022
pzem 用电数据推送至企业微信,by nodered
View nodered.json
[
{
"id": "1685f1b549464713",
"type": "tab",
"label": "推送每日用电数据",
"disabled": false,
"info": "自动推送每日用电数据到企业微信",
"env": []
},
{