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 / 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 / nodered.json
Last active Mar 26, 2022
pzem 用电数据推送至企业微信,by nodered
View nodered.json
[
{
"id": "1685f1b549464713",
"type": "tab",
"label": "推送每日用电数据",
"disabled": false,
"info": "自动推送每日用电数据到企业微信",
"env": []
},
{
@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 / vultr_ddns.sh
Created Oct 2, 2021
vultr api v2 ddns shell scripts
View vultr_ddns.sh
#!/bin/bash
BIN_DIR=/mnt/jffs2/plug/app/busybox
export PATH=$BIN_DIR/bin:$BIN_DIR/sbin:$BIN_DIR/usr/bin:$BIN_DIR/usr/sbin
DOMAIN=''
NAME=''
APIKEY=''
CAFILE="/mnt/jffs2/hw/etc/ssl/certs/ca-certificates.crt"
CURL_BIN="/mnt/jffs2/plug/app/bin/curl"
@0neday
0neday / block_douyin.conf
Created Sep 30, 2021
block douyin hosts
View block_douyin.conf
# douyin
address=/douyinvod.com/0.0.0.0
address=/ixigua.com/0.0.0.0
address=/douyinpic.com/0.0.0.0
address=/snssdk.com/0.0.0.0
address=/huoshanstatic.com/0.0.0.0
address=/amemv.com/0.0.0.0
address=/douyincdn.com/0.0.0.0
address=/pstatp.com/0.0.0.0
@0neday
0neday / cloudflare-update-record.sh
Last active Sep 11, 2022 — 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=""