Add non-root user to ensure safety in production environment:
adduser username
usermod -aG sudo username
su - username
Please read through the documentations carefully. Modding can be risky, proceed with extreme caution. The hardware can be valued where as the data are priceless.
See resources at the end of this document
MoonBegonia on January 22, 2019
太极·Magisk 今天开启了大规模内测,只需要填写问卷即可参加,在这里整理相关内容。
placeholder
const MY_DOMAIN = "YOUR_DOMAIN" | |
const START_PAGE = "URL_TO_NOTION_LANDING_PAGE" | |
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)) | |
}) | |
const corsHeaders = { | |
"Access-Control-Allow-Origin": "*", | |
"Access-Control-Allow-Methods": "GET, HEAD, POST,PUT, OPTIONS", |
/* Center of Gravity Finder | |
This script will find the center of gravity (centroid) of all closed paths in the selection set. It was built for a specific purpose so does not have much error | |
handling. For example, if you get errors it may be the result of the selection set containing compound shapes or a self-intersecting polygon. | |
References for the math: | |
http://paulbourke.net/geometry/polygonmesh/ (Calculating the area and centroid of a polygon) | |
https://en.wikipedia.org/wiki/Centroid#Centroid_of_polygon | |
Save this file with a jsx extension and place in your Illustrator/Presets/en_US/Scripts folder. You can then access it from the File > Scripts menu |