Skip to content

Commit

Permalink
Merge branch 'txthinking:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
afboyxiyang authored Aug 25, 2024
2 parents 2a95d9b + 206135a commit fefe562
Show file tree
Hide file tree
Showing 10 changed files with 769 additions and 289 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
276 changes: 206 additions & 70 deletions README.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ echo '**❤️ [Shiliew - A network app designed for those who value their time

cat getting-started.md >> ../readme.md
cat gui.md >> ../readme.md
cat resources.md >> ../readme.md

echo '# CLI Documentation' >> ../readme.md
echo 'Each subcommand has a `--example` parameter that can print the minimal example of usage' >> ../readme.md
jb '$1`brook mdpage`.split("\n").filter(v=>!v.startsWith("[")).join("\n").replace("```\n```", "```\nbrook --help\n```").split("\n").forEach(v=> echo(v.startsWith("**") && !v.startsWith("**Usage") ? "- "+v : v))' >> ../readme.md

cat example.md >> ../readme.md
cat resources.md >> ../readme.md

markdown ../readme.md ./index.html

12 changes: 0 additions & 12 deletions docs/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,16 +262,4 @@ brook relay --from :9999 --to 1.2.3.4:9999
brook socks5tohttp --socks5 127.0.0.1:1080 --listen 127.0.0.1:8010
```

## brook pac creates pac server

```
brook pac --listen 127.0.0.1:8080 --proxy 'SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080; DIRECT' --bypassDomainList ...
```

## brook pac creates pac file

```
brook pac --file proxy.pac --proxy 'SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080; DIRECT' --bypassDomainList ...
```

## There are countless examples; for more feature suggestions, it's best to look at the commands and parameters in the CLI documentation one by one, and blog, YouTube...
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ nami install brook
brook server -l :9999 -p hello
```

## GUI Client
## Client

| iOS | Android | Mac |Windows |Linux |OpenWrt |
| --- | --- | --- | --- | --- | --- |
Expand Down
203 changes: 176 additions & 27 deletions docs/gui.md

Large diffs are not rendered by default.

502 changes: 331 additions & 171 deletions docs/index.html

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions docs/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
| [nami](https://github.com/txthinking/nami) | A clean and tidy decentralized package manager |
| [joker](https://github.com/txthinking/joker) | Joker can turn process into daemon. Zero-Configuration |
| [nico](https://github.com/txthinking/nico) | Nico can work with brook wsserver together |
| [zhen](https://github.com/txthinking/zhen) | zhen - process and cron manager |
| [z](https://github.com/txthinking/z) | z - process manager |
| [tun2brook](https://github.com/txthinking/tun2brook) | Proxy all traffic just one line command |
| [mad](https://github.com/txthinking/mad) | Generate root CA and derivative certificate for any domains and any IPs |
| [hancock](https://github.com/txthinking/hancock) | Manage multiple remote servers and execute commands remotely |
| [sshexec](https://github.com/txthinking/sshexec) | A command-line tool to execute remote command through ssh |
| [jb](https://github.com/txthinking/jb) | write script in an easier way than bash |
| [bash](https://github.com/txthinking/bash) | Many one-click scripts |
| [pacman](https://archlinux.org/packages/extra/x86_64/brook/) | `pacman -S brook` |
| [brew](https://formulae.brew.sh/formula/brook) | `brew install brook` |
| [docker](https://hub.docker.com/r/txthinking/brook) | `docker run txthinking/brook` |

| Resources | Description |
Expand Down
8 changes: 4 additions & 4 deletions ping/ping.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "20240606",
"text": "Clean the web with Brook",
"link": "https://www.txthinking.com/talks/articles/brook-clean-the-web-en.article",
"text_zh": "使用 Brook 净化互联网",
"link_zh": "https://www.txthinking.com/talks/articles/brook-clean-the-web.article"
"text": "Brook Client Basic Knowledge",
"link": "https://www.txthinking.com/talks/articles/brook-en.article",
"text_zh": "Brook 客户端基础知识",
"link_zh": "https://www.txthinking.com/talks/articles/brook.article"
}
5 changes: 5 additions & 0 deletions programmable/modules/instagram_system_dns.tengo
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ modules = append(modules, {
dnsquery: func(m) {
text := import("text")
l := [
"analytics.google.com",
"apple.com",
"comodoca.com",
"autonavi.com",
"giphy.com",
"facebook.com",
"fbcdn.net",
"facebook.net",
Expand Down

0 comments on commit fefe562

Please sign in to comment.