Skip to content

Instantly share code, notes, and snippets.

View 0neday's full-sized avatar
🤭
I may be slow to respond.

COOLSTAR 0neday

🤭
I may be slow to respond.
View GitHub Profile
@0neday
0neday / xiaomi-miui11.txt
Last active December 13, 2022 13:03
xiaomi miui11 pm uninstall app
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 July 16, 2023 06:50
uninstall or disable vivo s9e 1.15.4 version pre-installed system app by pm
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 February 26, 2024 06:56
publish vultr billing and traffic using vultr api by public mqtt broker
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 June 24, 2022 13:27
get huawei ont temperature using python for homeassisstant command platform
import os
import pickle
import requests
import re
import base64
import json
import urllib.parse
import codecs
@0neday
0neday / ha.json
Created March 27, 2022 10:55
for research
[
{
"id": "5bfc1ec08cb3472e",
"type": "tab",
"label": "home assisstant ",
"disabled": false,
"info": "研究用的",
"env": []
},
{
@0neday
0neday / esp32.yaml
Created March 27, 2022 00:35
esp32 for pzem-004t
esphome:
name: esp32
# on_boot:
# priority: -100
# then:
# - fan.turn_on:
# id: living_room_fan
# speed: 50
esp32:
@0neday
0neday / nodered.json
Last active March 26, 2022 06:40
pzem 用电数据推送至企业微信,by nodered
[
{
"id": "1685f1b549464713",
"type": "tab",
"label": "推送每日用电数据",
"disabled": false,
"info": "自动推送每日用电数据到企业微信",
"env": []
},
{
@0neday
0neday / dianfei.yaml
Last active March 26, 2022 06:43
homeassisstant pzem-004t power meter
#
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 October 2, 2021 14:31
vultr api v2 ddns shell scripts
#!/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 September 30, 2021 09:32
block douyin hosts
# 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