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 / stunnel-aarch64.sh
Last active January 4, 2024 14:37
Cross compile statically stunnel for aarch64
View stunnel-aarch64.sh
### just for arm64
````
BASE=`pwd`
## cross-compile toolchain
git clone https://github.com/0neday/buildroot
cd buildroot
make menuconfig
### select aarch64 and enable ssp , c++ support
make -j$(nproc) toolchain
@0neday
0neday / ss-libev-aarch64.sh
Last active November 24, 2023 11:20
cross build shadowsocks-libev arm static binary using bootlin toolchains.
View ss-libev-aarch64.sh
#!/bin/bash
set -e
set -x
BASE=`pwd`
########### #################################################################
# zlib # ####################################################################
########### #################################################################
wget -c https://zlib.net/zlib-1.2.11.tar.gz
@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
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 / cloudflare-update-record.sh
Last active February 2, 2023 02:56 — 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 / xiaomi-miui11.txt
Last active December 13, 2022 13:03
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 / publish_vultr_billing_traffic_using_public_mqtt_broker.py
Last active July 21, 2022 06:55
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 June 24, 2022 13:27
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 March 27, 2022 10:55
for research
View ha.json
[
{
"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
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 March 26, 2022 06:43
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: