Skip to content

Instantly share code, notes, and snippets.

View pccr10001's full-sized avatar
Run!!

Power Li pccr10001

Run!!
View GitHub Profile
#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
// WiFi設定
const char* ssid = "AAA";
const char* password = "8888888";
// 計時變數
unsigned long previousPingMillis = 0;
unsigned long previousReconnectMillis = 0;
esphome:
name: ble-tesla-8bubu
friendly_name: ble-tesla-8bubu
project:
name: yoziru.esphome-tesla-ble
version: "2024.8.1"
libraries:
- https://github.com/yoziru/tesla-ble.git#v2.2.1
on_boot:
then:
@pccr10001
pccr10001 / 230-add-totp-as-password.patch
Created October 3, 2024 14:30
OpenVPN with TOTP as password supporting, which can support VPN server like Pritunl with auto-reconnecting.
# This should work with all versions of OpenVPN.
# Use TOTP:{Base32 Key} as password for OpenVPN, e.g. TOTP:JBSWY3DPEHPK3PXP
#
# For OpenWRT
# Put this file to openwrt-x.x.x/package/feeds/packages/openvpn/patches/230-add-totp-as-password.patch
# Then build the ipk with make package/openvpn/compile V=s
#
--- a/src/openvpn/misc.c 2022-10-28 14:44:17.000000000 +0800
+++ b/src/openvpn/misc.c 2024-10-03 19:01:17.322280538 +0800
@pccr10001
pccr10001 / tmate.sh
Last active December 12, 2023 03:40
#!/bin/bash
apt update && apt install wget xz-utils
wget https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz -O tmate.tar.xz
tar xvf tmate.tar.xz
chmod +x tmate-2.4.0-static-linux-amd64/tmate
bash -i -c "./tmate-2.4.0-static-linux-amd64/tmate"
@pccr10001
pccr10001 / README.md
Created August 5, 2023 09:31
SimShine Baby Cam 2 reverse engineering
  • LAN video protocol is TUTK
  • Device password is Base64.encode(deviceId.substring(0,4)+deviceTutkId.substring(deviceTutkId.length-4, deviceTutkId.length-4)).reverse()
@pccr10001
pccr10001 / 0063-pve-qemu-kvm-use-vmware-harddrive-model.patch
Last active March 16, 2023 04:24
Make QEMU use VMware HDD model and name.
diff --git a/hw/ide/core.c b/hw/ide/core.c
+++ qemu/hw/ide/core.c 2023-03-14 16:09:36.562918207 +0800
@@ -2588,12 +2588,7 @@
}
blk_set_dev_ops(blk, &ide_hd_block_ops, s);
}
- if (serial) {
- pstrcpy(s->drive_serial_str, sizeof(s->drive_serial_str), serial);
- } else {
- snprintf(s->drive_serial_str, sizeof(s->drive_serial_str),
@pccr10001
pccr10001 / softmixer.patch
Last active January 19, 2022 09:06
Spotify Connect client by Mediatek Linkit 7688 with WM8960
diff --git a/playback/Cargo.toml b/playback/Cargo.toml
index 4e8d19c..37a06eb 100644
--- a/playback/Cargo.toml
+++ b/playback/Cargo.toml
@@ -26,6 +26,7 @@ shell-words = "1.0.0"
tokio = { version = "1", features = ["sync"] }
zerocopy = { version = "0.3" }
thiserror = { version = "1" }
+atomic-shim = "*"
#!/bin/bash
# use curl https://gist.github.com/pccr10001/a1943101bf681f325ae45be20989c046/raw/bd434624501739077a3d7cd4d91cce3bc9c52efd/install_docker.sh | sh -
CURRENT_USER=`whoami`
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
#!/usr/bin/python
from pwn import *
context.arch='amd64'
r = remote('csie.ctf.tw',10136)
r.recvuntil(':')
#!/usr/bin/python
from pwn import *
context.arch='amd64'
r = remote('csie.ctf.tw',10136)
r.recvuntil(':')