Created
November 10, 2021 10:58
-
-
Save leptoquark1/48388f8e628a1c31be0c6f5cdaebf307 to your computer and use it in GitHub Desktop.
Create a "one-liner" Patch, executable in any shell without a patch file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/zsh | |
| patch=`pbpaste | base64` | |
| echo "echo '$patch' | base64 -d | patch -p1" | pbcopy | |
| echo "Clipboard converted" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment