-
Notifications
You must be signed in to change notification settings - Fork 12.1k
[#1953] [#1935] rewrite the algorithm in docx + security and performance issue fix #1967
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
Ari Archer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
no, if twitter cant follow basic open source ethics ( or ethics in general ) im not gonna sign this shitty cla bro |
( for anyone interested in the very bad automation scripts, license : cc0, aka do whatever u want click to expand the shitty scriptsd.py from docx import Document
from sys import argv
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
from os import path
from docx.shared import Cm, Pt
# read file
with open(argv[1], "r") as file:
content = file.read()
# create a new Word document
doc = Document()
# set default style
style = doc.styles["Normal"]
# font size and type
font = style.font
font.name = "Arial"
font.size = Pt(12)
# margin
sections = doc.sections
for section in sections:
section.top_margin = Cm(2.5)
section.bottom_margin = Cm(2.5)
section.left_margin = Cm(2.5)
section.right_margin = Cm(2.5)
# add paragraph to the document
for line in content.split("\n"):
paragraph = doc.add_paragraph()
paragraph.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
paragraph.add_run(line)
# save the doc
doc.save(f"{path.splitext(argv[1])[0]}.docx") a.sh cd the-algorithm/
count=0
for file in $(find . -type f -not -path './.git/*'); do
echo "$file"
python3 ../d.py "$file"
rm -f "$file"
((count=count+1))
if ((count % 200 == 0)); then
git add -A
git commit -sm "[docx] split commit for file $count"
git push -u origin main
echo 'pushed, sleeping'
sleep 10
fi
done
git add -A
git commit -sm "[docx] final commit @ $(date) for file $count"
git push -u origin main
echo 'pushed' ) |
can musky husky pls merge this faster, this is a security critical issue !! |
ive also fixed #1935 in the mean time |
Internet, please never change |
have you considered using .doc instead of .docx? it would allow for much wider compatibility |
i think its a better idea to stick w more modern technologies, such as docx, for best performance and features,, we can deal with compatibility by re-distributing pre-built packages |
after a long time of considering, i have decided to take the executive decision to not include this, .docm uses vba which is, as we all know it - c, and c is slow ( 🤮 ) and not memory safe ( ⛔ 🚀 ) so far, after very extensive research, docx seems like the best option here for high performance applications with security in mind, such as |
lgtm |
sorry for the unverified commits, i mightve needed to change my gpg key a bit 👍 |
LGTM |
Lgtm |
can twitter review and merge this |
LGTM. |
fixes #1953 and #1935
docx > *, best programming language known to man,, customizability, memory safety, speed and also supported on the best IDE ever -- microsoft (r)(c)(allrightsreserverd)(m$) word
and added SECURITY.png file for security ensurance