| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "palette": { | |
| "os": "#ACB0BE", | |
| "closer": "p:os", | |
| "pink": "#F4B8E4", | |
| "lavender": "#BABBF1", | |
| "blue": "#8CAAEE" | |
| }, | |
| "blocks": [ |
| /* | |
| * QuickAdd user script: capture an X/Twitter post as a Markdown note. | |
| * | |
| * - Reads a supported post URL from the clipboard, or prompts for one. | |
| * - Fetches structured post data from api.fxtwitter.com. | |
| * - Downloads every photo and the highest-bitrate MP4 for every video. | |
| * - Uses Obsidian's configured attachment location. | |
| * - Creates a kebab-cased Markdown filename with useful frontmatter. | |
| */ |
I often find myself explaining how to do this. It’s time I get wise and write a generic doc on it.
We’ll assume you want to add a binary, named binary on macOS and Linux, and binary.exe on Windows, to your PATH. (How original, I know).
Enjoy.
macOS and Linux CLI #
Note: ${HOME} is also known as ~
- Import features from the Java Standard Library
- Declare and instantiate a
Scanner - Get input from the user using a
Scanner - Use a
whileloop to get the computer to repeat instructions - Use a
forloop to get the computer to repeat instructions - Use a
switch/casestructure to get the computer to make a decision - Use nested loops and decisions to control the flow of a program
- Accumulate a total in a variable
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| % Title : FSE100 Project – SPYN Disability Pick-up Car | |
| % Version : v1.1.4 | |
| % File Name : auto.m | |
| % | |
| % Description : | |
| % Autonomous assistive vehicle developed for object pick-up support. | |
| % It navigates using forward motion, detects colored tiles (red for stop, | |
| % blue/green for manual override), and uses touch and ultrasonic sensors | |
| % to detect and avoid obstacles. |
This article is also available in English, at Use Cloudflare Argo Tunnel (cloudflared) to accelerate and protect your website.
本文于 2024-03-01 更新,更新了新版本的
cloudflared部署和安装方式
是的,这是一篇记录 cloudflared 的使用历程和一些思路的文章,关于 Cloudflare 的 Argo Tunnel 的用法,我们在 「Cloudflare Argo Tunnel 小试:我终于可以用树莓派做网站啦」 文章中可以看到:Cloudflare Argo Tunnel 提供一个轻量级的 daemon 程序,被称为 cloudflared,用于安装在你自己的机器上并主动和 Cloudflare 保持连接,并可以提供 Web 服务,用 Cloudflare 的话来说,就是:
With Tunnel, users can create a private link from their origin server directly to Cloudflare without a publicly routable IP address. Instead, this private connection is established by running a lightweight daemon, cloudflared, on your origin, which creates a secure, outbound-only connection. This means that only traffic that routes through Cloudflare can reach your origin.
我们之前要建立一个网站并加入 Cloudflare 一般会有如下典型的步骤:
| -----BEGIN PGP PUBLIC KEY BLOCK----- | |
| mQINBGa93SMBEADjZv9Bd6I+/SBegjXBoZx4vtZYo1ed4coRRNuCLPB3juppus3a | |
| pzVooA2B24hRLYriSe87ile38oOJqQ7nh8jwJKq2CF2lAgchapo6NZ4XfctPRgao | |
| gi5yus5qp9TRf3/47uQrit61U/jDmZGImZXUr+XWgnOJykkYEqqFjESIRWZSlozk | |
| Fwj1C3A6Hsc0ySlXCmuNmaoZBg2dAabTkCXK6a9JCrkWH74eWTJqZZtWa+qMqk8Y | |
| Kn2rWEg/3L/UvDEZl98E0M+Wj7xd9evANo7M1+YJixvXCM37QkXHvJOzUKqFpmj/ | |
| 9w6mSQbLR1eZYsR0VxOqjLrthe7YESXLES6Lgs4tSo3rAwE8ne17c1bz6Ay5boZf | |
| hGxXZF2a13bttpM37sXYtMEQ8yr6XdjTpa954+CMiWCVNQAdW3NoKBDN+jO+Rgpk | |
| 45+RWeoSjmjv8IoKqkOmBhthpOt7F0mljW4d7PrmcaWOqvhcFb9Xbx7bt6ZWvD1R |
| -----BEGIN PGP PUBLIC KEY BLOCK----- | |
| Comment: Hostname: | |
| Version: Hockeypuck 2.2 | |
| xsBNBFuGZGIBCADSWnLXzqoWr3PulNhkeaAGTE03AK0dogWjT8noy7IxiwTdiQSe | |
| YEirH7dQ7y/ibst7zijVJPWKb+OLRkhJV5vowC0tFxYjMNxvv5OoNiVIV8nYhir/ | |
| 0ervR59DfJ8T9lXVlUnohhEsuhitg/EoCFj58XeWL6YUhqLPSfxdrhMPRr+nHCo9 | |
| m9PuHFkcvepXGw3tIHu+cwKptTD27Wglrodra4WC5tdSm7HEvoJNp3N87j2JR1D+ | |
| wgh21TtpT8ro8ZGchtwLFuNt7B4OsewWoVVGtrJUuuFSTeFaQw9iMFTJ9qeeZawL | |
| vRZbnLwK8LgX/917J7ipCIuMAaPmKi+Un+3rABEBAAHNMkNhcnN0ZW4gQm9ldmlu |
- Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.94 Chrome/37.0.2062.94 Safari/537.36
- Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
- Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
- Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
- Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9
- Mozilla/5.0 (iPad; CPU OS 8_4_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H321 Safari/600.1.4
- Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
- Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
- Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240
- Mozilla/5.0 (Windows NT 6