Inspired by https://infosec.exchange/@jjtech/112612685494089718
Reboot into Recovery OS + Disable SIP
csrutil disable
| git ls-files -c "*.js" "*.jsx" "*.ts" "*.tsx" | xargs -I{} perl -i -0pe ' | |
| # First, handle specific JSX/TSX comment blocks with curly braces | |
| s|\{\/\*.*?\*\/\}||gs; | |
| # Then handle regular comments | |
| s|(?<!\:)//[^\n]*| |g; | |
| s|/\*.*?\*/| |gs; | |
| # Clean up extra whitespace | |
| s|[ \t]+\n|\n|g; | |
| ' {} |
| <head> | |
| <!-- Change this file name to the actual JS file name. --> | |
| <script src="rapfi-multi.js"></script> | |
| </head> | |
| <body> | |
| <input type="text" id="incommand" size="80" onkeydown="keydown()" /> | |
| <input type="button" value="SendCommand" onclick="sendCommand()" /> | |
| <input type="button" value="Terminate" onclick="terminate()" /> | |
| <br /> | |
| <textarea id="output" readonly rows="50" cols="120"> </textarea> |
Inspired by https://infosec.exchange/@jjtech/112612685494089718
Reboot into Recovery OS + Disable SIP
csrutil disable
| #!/bin/sh | |
| #https://github.com/PythonicNinja/jetbrains-reset-trial-mac-osx/blob/master/runme.sh | |
| for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine Rider; do | |
| echo "Closing $product" | |
| ps aux | grep -i MacOs/$product | cut -d " " -f 5 | xargs kill -9 | |
| echo "Resetting trial period for $product" |
| #!/bin/sh | |
| #https://github.com/PythonicNinja/jetbrains-reset-trial-mac-osx/blob/master/runme.sh | |
| for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine Rider; do | |
| echo "Closing $product" | |
| ps aux | grep -i MacOs/$product | cut -d " " -f 5 | xargs kill -9 | |
| echo "Resetting trial period for $product" |
| import { useState, useCallback } from "react"; | |
| function useToggle(initialValue = false){ | |
| // State with initial boolean value (true/false) | |
| const [state, setState] = useState(initialValue); | |
| // Let's create a toggle function | |
| // This works, but we're using the state value from above | |
| // instead of the current state. Usually they are the same, | |
| // but if this hook was triggered multiple times rapidly then |
I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.
But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.
Svelte is a language.
Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?
A few projects that have answered this question:
| server { | |
| location ~* (serviceworker\.js)$ { | |
| add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; | |
| expires off; | |
| proxy_no_cache 1; | |
| } | |
| } |