Skip to content

Instantly share code, notes, and snippets.

View csrutil's full-sized avatar
🏠
Working from home

Csrutil csrutil

🏠
Working from home
  • N/A
  • Follow the white rabbit.
View GitHub Profile
@csrutil
csrutil / signing-git-commits.md
Created August 10, 2023 07:36 — forked from phortuin/signing-git-commits.md
Set up a GPG key for signing Git commits on MacOS (M1)

Based on this blogpost.

To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.

Setting up

Install with Homebrew:

$ brew install gpg

ファームウェアデコード

デコード方法は公開されているOSSソースコードに含まれている。
WAX206_V1.0.4.0_Source.rar\WAX206_V1.0.4.0_Source\tools\imgencoder\ 以下
なんと鍵までOSSとして公開されている。

適当にデコードするpythonスクリプトを書いた。

Telnetの有効化

  1. WEBインターフェースにログイン
check process tailscale with pidfile /tmp/tailscale/tailscaled.pid
start program = "/share/CACHEDEV1_DATA/.qpkg/Tailscale/TailscaleWithLog.sh start"
stop program = "/share/CACHEDEV1_DATA/.qpkg/Tailscale/TailscaleWithLog.sh stop"
if failed host 127.0.0.1 port 41641 type udp then restart
group tailscale
#check process yfnode with pidfile /var/run/yfnode.pid
# start program = "/bin/bash -c '/share/external/DEV3301_1/ttnode_arm64/boot'"
# stop program = "/bin/kill -9 $(/bin/cat /var/run/yfnode.pid)"
# if 10 restarts with 10 cycles then timeout
@csrutil
csrutil / uci-guest-wifi.sh
Created July 5, 2023 01:20 — forked from tongpu/uci-guest-wifi.sh
uci script for OpenWRT guest WiFi configuration
#!/bin/sh
uci batch << EOF
add network switch_vlan
set network.@switch_vlan[-1].device='switch0'
set network.@switch_vlan[-1].ports='1t 5t'
set network.@switch_vlan[-1].vlan='2'
set network.guest='interface'
set network.guest.type='bridge'
@csrutil
csrutil / wr30u.md
Last active August 3, 2024 05:48
wr30u unlock
@csrutil
csrutil / gist:e0f435f1cd3d52559014a03df97bbb1f
Created March 29, 2023 01:15
Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
xcrun -sdk iphoneos --show-sdk-path
https://stackoverflow.com/questions/71320584/flutter-build-ios-got-error-requested-but-did-not-find-extension-point-with-ide
@csrutil
csrutil / gist:31b30ea4fa54a45924ec4e1548df4ef8
Created March 29, 2023 00:38
Remove Duplicate Apps from Open With
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
killall Finder
@csrutil
csrutil / psqlfix.txt
Created March 13, 2023 03:54 — forked from jyr/psqlfix.txt
Change postgres default template0 to UTF8 encoding
http://blog.desgrange.net/2012/06/05/caldav-carddav-debian-davical-ios-ical.html
mike@rbci:~$ psql -U postgres
psql (9.0.3)
Type "help" for help.
postgres=# update pg_database set datallowconn = TRUE where datname = 'template0';
UPDATE 1
postgres=# \c template0
You are now connected to database "template0".
apt-get install musl-tools
git clone --depth 1 https://github.com/Macchina-CLI/macchina -b v6.1.8
rustup target add x86_64-unknown-linux-musl
cargo build --target x86_64-unknown-linux-musl --release
TARGET_CC=x86_64-linux-musl-gcc cargo build --release --target x86_64-unknown-linux-musl
@csrutil
csrutil / remove old kernels
Created February 25, 2023 14:02
remove old kernels
dpkg --list| grep 'pve-kernel-.*-pve' | awk '{print $2}' | sort -V
dpkg --list| grep 'linux-image' | awk '{print $2}' | sort -V
apt purge -y linux-image-5.10.0-19-amd64