Categories
工具、命令 笔记

JPEG 自动旋转

By @sskaje
Link: https://sskaje.me/2019/11/jpeg-auto-rotate/


手机拍照的时候,EXIF里会带上Orientation的标记,一般的看图工具能很好地处理拍照方向,但是照片直接用于图像识别就麻烦了,不是所有工具都会认这个EXIF信息。使用手机拍照构建图像学习数据集的时候,务必要让图片正确旋转,否则标注的信息或者识别到的位置都可能会是错的。

使用 jhead http://www.sentex.net/~mwandel/jhead/usage.html

jhead -autorot xxx.jpg

JPEG 自动旋转 by @sskaje: https://sskaje.me/2019/11/jpeg-auto-rotate/

Incoming search terms:

Categories
Linux Network VPN 杂七杂八 路由、设备

WireGuard as a “Switch”

By @sskaje
Link: https://sskaje.me/2019/11/wireguard-as-a-switch/


Not really a switch, but similar. If you want to exchange data from two network using a host on Internet, this post helps.

In this case, Router 1 want to use Router 2 as gateway for some destinations. All 3 Nodes here have Internet public IP address.

I set-up a network, 192.168.20.0/24, using WireGuard. Our work are all on the Server in the middle.

If I put such config to /etc/wireguard/wg0.conf and run wg-quick up wg0, then I may lost connection to the server, because of the default route.

Now, add a route table to your system and change wg0.conf, let’s name it wgswitch and table id 201.

Then modify wg0.conf.

Now when you establish connections, you’ll be able to ping from router1 to router2 using 192.168.20.0/24 network.

But if you want to try a custom network, that’s not enough, you need extra route and ip rule for your network



WireGuard as a “Switch” by @sskaje: https://sskaje.me/2019/11/wireguard-as-a-switch/

Incoming search terms:

Categories
未分类

List of macOS Installer Download Links

By @sskaje
Link: https://sskaje.me/2019/11/list-of-macos-installer-download-links/


10.15 Catalina

AppStore only, you need a macOS < 10.15 to download this installer

https://itunes.apple.com/cn/app/macos-catalina/id1466841314?ls=1&mt=12

10.14 Mojave

AppStore only, you need a macOS < 10.14 to download this installer

https://apps.apple.com/cn/app/macos-mojave/id1398502828?mt=12

10.13 High Sierra

AppStore only, you need a macOS < 10.13 to download this installer

https://apps.apple.com/cn/app/macos-high-sierra/id1246284741?ls=1&mt=12

10.12 Sierra

http://updates-http.cdn-apple.com/2019/cert/061-39476-20191023-48f365f4-0015-4c41-9f44-39d3d2aca067/InstallOS.dmg

10.11 El Captain

http://updates-http.cdn-apple.com/2019/cert/061-41424-20191024-218af9ec-cf50-4516-9011-228c78eda3d2/InstallMacOSX.dmg

10.10 Yosemite

http://updates-http.cdn-apple.com/2019/cert/061-41343-20191023-02465f92-3ab5-4c92-bfe2-b725447a070d/InstallMacOSX.dmg

10.9 Mavericks or earlier

Idk



List of macOS Installer Download Links by @sskaje: https://sskaje.me/2019/11/list-of-macos-installer-download-links/

Incoming search terms: