2023-01-10

jdk ssl/tls

1.7 default tls1


-Dhttps.protocols=SSLv3,TLSv1,TLSv1.1,TLSv1.2

-Djavax.net.debug=ssl


1.8 default tls1.2

mobile browser request retry - idempotent requests

https://groups.google.com/a/chromium.org/g/chromium-dev/c/urswDsm6Pe0


https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html


https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/


https://answers.sap.com/questions/13359226/preventing-http-retry-requests-eg-via-approuter.html


zip filename encode (non-UTF8)

LC_CTYPE=zh_TW.big5 7z x file.zip


LC_CTYPE=zh_TW.big5 busybox unzip file.zip


TODO: filename in big5



ls -i 


find . -inum 12321475 -exec mv {} new-filename \;


find . -inum 12321475 -print0 | xargs -0 mv -t new-filename


wmctrl / xdotool - XWindow move resize

 

wmctrl


wmctrl -d


wmctrl -l


wmctrl -i -a <win id>


wmctrl -i -r <win id> 0,x,y,w,h




wmctrl -lx

0x00a00002  1 aterm.XTerm           box Terminal

0x01000002  1 google-chrome.Google-chrome  box WeChat/Weixin for Web - Google Chrome

0x01000005  1 google-chrome.Google-chrome  box about:blank - Google Chrome

0x01000006  1 google-chrome.Google-chrome  box QR-slot.png (500×500) - Google Chrome



google

wmctrl -i -r 0x01000005 -e 0,150,40,1000,800


wechat

wmctrl -i -r 0x01000002 -e 0,0,140,900,800


xdotool


xdotool search wechat

xdotool search ""