Two files:
/etc/usb_modeswitch.d/rtl8821cu
/usr/share/usb_modeswitch/0bda:1a2b
TargetVendor=0x0bda
TargetProduct=0x1a2b
StandardEject=1
# convert flac files in current directory to Apple loss-less codec. | |
function flac2alac { | |
for f in *.flac; do | |
ffmpeg -i "$f" -acodec alac -vsync 2 -c:v copy -metadata COMMENT= -y "${f%.flac}.m4a" | |
#-map_meta_data $f:${f%.flac}.m4a; | |
done | |
} |
const walk = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT, null, false); | |
const delay = []; | |
while (true) { | |
const node = walk.nextNode(); | |
if (!node) break; | |
if (!node.textContent.trim()) continue; | |
const { parentElement } = node; | |
if (parentElement.tagName === 'STYLE') continue; | |
const { color, display } = getComputedStyle(parentElement); | |
if (display === 'inline') { |
#!/bin/sh | |
echo ' | |
net.core.wmem_max = 12582912 | |
net.core.rmem_max = 12582912 | |
net.ipv4.tcp_rmem = 10240 87380 12582912 | |
net.ipv4.tcp_wmem = 10240 87380 12582912 | |
net.ipv4.tcp_window_scaling = 1 |
const http = require('http'); | |
const { spawn } = require('child_process'); | |
const jobs = {}; | |
setInterval(() => { | |
Object.keys(jobs).forEach(url => { | |
const {ts} = jobs[url]; | |
if (Date.now() - ts > 24 * 3600 * 1000) { | |
delete jobs[url]; |
const width = 600; | |
const height = 600; | |
const img = document.querySelector('img'); | |
const input = document.createElement('canvas'); | |
const output = document.createElement('canvas'); | |
output.width = input.width = width; | |
output.width = input.height = height; | |
const icx = input.getContext('2d'); | |
const ocx = output.getContext('2d'); |
Hi Apple, | |
Well known to the world, Apple treats customers' privacy as a high priority. | |
I recently realized that two popular Apps in the Chinese community, Wechat, and AliPay, will get started in the background when my iPhone changes its state of WiFi connection. Further research indicates that these two Apps implemented the HotspotHelper feature of iOS. | |
I know these features can be helpful, during which they can help users connect to public WiFi, but most people rarely use this feature. For example, I am not aware of this before today. I also do not expect my WiFi connectivities to be monitored by these two Apps. I try my best to find a way to disable this feature in these two Apps' settings, and there is no help. | |
I urge Apple to consider this situation, stop the abusing usage of these two companies, and provide consumers options and transparency about their WiFi network connection activities. |
opkg install wireguard bash coreutils-stat | |
mkdir /etc/wireguard | |
ln -s /proc/self/fd /dev/fd # fix /dev/fd/63 error: ... < (...) |
TM_DB_USER=teslamate | |
TM_DB_PASS=PASSWORD_HERE | |
TM_DB_NAME=teslamate | |
GRAFANA_USER=admin | |
GRAFANA_PW=PASSWORD_HERE | |
TM_TZ=America/Los_Angeles |
Two files:
/etc/usb_modeswitch.d/rtl8821cu
/usr/share/usb_modeswitch/0bda:1a2b
TargetVendor=0x0bda
TargetProduct=0x1a2b
StandardEject=1
#!/usr/bin/env bash | |
PORT_SCAN_MAX=1 | |
IP_DENY_SECOND=300 | |
IP_SET_MAX=1024000 | |
NET_IF=eth0 | |
ipset create pub-port-set bitmap:port range 0-65535 | |
ipset add pub-port-set 22 |