task_boiler
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
task_boiler [2022/08/11 21:30] – [bare bones solution] raju | task_boiler [2024/01/22 22:59] – [Issue] raju | ||
---|---|---|---|
Line 4: | Line 4: | ||
Start the first heading with " | Start the first heading with " | ||
- | ===== apply unix commands to all but the first line ===== | + | ===== blocked by barrons |
- | ==== Situation | + | ==== Issue ==== |
- | Let's say we want to sort a series of numbers in descending order but keep the header at the top. For example, given | + | barrons.com is giving |
< | < | ||
- | $ echo -e " | + | You have been blocked. |
- | value | + | |
- | 8 | + | |
- | 2 | + | |
- | 6 | + | |
- | 3 | + | |
- | </ | + | |
- | we want to output | + | |
- | < | + | |
- | value | + | |
- | 2 | + | |
- | 3 | + | |
- | 6 | + | |
- | 8 | + | |
- | </ | + | |
- | We can't directly use ' | + | Why? |
- | < | + | Something about the behaviour of the browser has caught our |
- | $ echo -e " | + | attention. |
- | 2 | + | |
- | 3 | + | |
- | 6 | + | |
- | 8 | + | |
- | value | + | |
- | </ | + | |
- | ==== Bare bones solution ==== | + | There are various possible explanations for this: |
- | Create | + | * You are browsing and clicking at a speed much faster than |
- | < | + | |
- | # | + | * Something is preventing JavaScript from working on your |
- | # | + | |
- | # body: apply expression to all but the first line. | + | * There is a robot on the same network (IP WW.XX.YY.ZZ) as you. |
- | # Use multiple times in case the header spans more than one line. | + | |
- | # | + | |
- | # Example usage: | + | |
- | # $ echo -e " | + | |
- | # | + | |
- | IFS= read -r header | + | |
- | printf ' | + | |
- | " | + | |
- | </ | + | |
- | Make it executable | + | Having problems accessing the site? Submit feedback. |
- | < | + | ID: a-b-c-d-e |
- | chmod +x body | + | |
</ | </ | ||
- | place it somewhere | + | ==== Solution ==== |
- | <code> | + | Click on the extensions button |
- | mv body ~/bin | + | -> Bypass Paywalls Clean -> settings button -> Options |
- | </code> | + | -> scroll down to "BPC settings" |
- | + | -> check "Barron' | |
- | This script will apply any unix command | + | -> Save |
- | + | ||
- | <code> | + | |
- | $ echo -e "value\n8\n2\n6\n3" | + | |
- | value | + | |
- | 2 | + | |
- | 3 | + | |
- | 6 | + | |
- | 8 | + | |
- | </code> | + | |
- | ==== practical solution | + | ==== System Information |
- | I got the above script from https://github.com/ | + | * bypass paywalls clean extension version: 3.5.2.1 (latest asof 2024-01-22) |
+ | * google chrome: 120.0.6099.200 | ||
+ | * OS: Windows 10 Enterprise | ||
task_boiler.txt · Last modified: 2024/01/23 22:55 by raju