The first, only convert pug into another template :/ \
The second, didn't pass the alpha version. \
The third, require dependence, not maintained etc.. \
So I didn't found a Python package that could do haml/pug to html directly, without too much dependence...
For example:
From
pug
html
head title Example for Python discuss
body
h1 Hello world
p This is a paragraph.
To
html
<html>
<head>
<title>Example for Python discuss</title>
</head>
<body>
<h1>Hello world</h1>
<p>This is a paragraph.</p>
</body>
</htm
So I managed to encrypt the email body with GnuPG public key..
But I don't figure how I can do the same for the title ?! \
ThunderBird manage it.. any idea how ? \
asked on Official Thunderbird forum
So I managed to encrypt the email body with GnuPG public key..
But I don't figure how I can do the same for the title ?! \
ThunderBird manage it.. any idea how ? \
asked on Official Thunderbird forum
instead of using a library I can directly use subprocess with gnupg
but in both case it seem gnupg require to import the public key to the keyring !? I don't want that.
from smtplib import SMTP_SSL
from email.message import EmailMessage
To send emails.
Now I would like to be able to encrypt them with the public key of the recipient. ( PublicKey.asc )
::: spoiler an A.I provide me this
python
import smtplib
from email.message import EmailMessage
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
# Load the ECC public key from the .asc file
with open('recipient_public_key.asc', 'rb') as key_file:
public_key_bytes = key_file.read()
public_key = ec.EllipticCurvePublicKey.from_public_bytes(
ec.SECP384R1(),
public_key_bytes
)
# Create the email message
msg = EmailMessage()
msg.set_content('This is the encrypted email.')
msg['Subject'] = 'Encrypted Email'
msg['From'] = '[email protected]'
msg['To'] = '[email protected]'
# Encrypt the email message using the ECC public key
Hyphanet is focused on secure, private, and efficient communication and data sharing, with an emphasis on enabling users to monetize their data while maintaining control over their data sovereignty.
is that true ? I can't found the information on their website...
Hyphanet is focused on secure, private, and efficient communication and data sharing, with an emphasis on enabling users to monetize their data while maintaining control over their data sovereignty.
is that true ? I can't found the information on their website...
Thank you all for your input..
but it seem my question is still not fully answered...
let me rephrase, I'm not looking to have a GUI to transfer files, but I would like to execute terminal command remotely (from my computer) to my android phone. Like SSH .
So I've read that I can install a SSH server on my android phone.. (If you know some's (FLOSS), I'm all ears)
Or if you know a better way than SSH I'm all ears too.
If you don't want to create an account on codeberg feel free to post your code here !
nginx
server {
# Server
map "$http_origin" $cors { # map in Nginx is somewhat like a switch case in a programming language.
default ''; #Seem to set $cors to '' empty string if n
If you don't want to create an account on codeberg feel free to post your code here !
nginx
server {
# Server
map "$http_origin" $cors { # map in Nginx is somewhat like a switch case in a programming language.
default ''; #Seem to set $cors to '' empty string if n
If you don't want to create an account on codeberg feel free to post your code here !
nginx
server {
# Server
map "$http_origin" $cors { # map in Nginx is somewhat like a switch case in a programming language.
default ''; #Seem to set $cors to '' empty string if none of the follwing rexeg matc
Indeed setting execute perm on example, sub1, sub2, static
The program/user have now access to the directory.
In order words all the parents directory need at least execute in order to have access in the targeted directory...
Now I gave 751 for static. Meaning than others (here nginx) cannot list the files within. But never the less it works \
the static files are appearing when requested (HTTP) but forbidding nginx to list the directory is changing something ? (performance/security)
These parent directories "/", "/root", "/root/downloads" should give the execute(x) permission to 'www-data' or 'nobody'. i.e.
but it seem not only the direct parent need to be given XX5 but all the chain
for example
bash
example
└── sub1
└── sub2
└── static
it seem you need to set allow others to read and execute 5
all the parents example, sub1, sub2
Why is that !?? I've found it so akward and unsecure !
is there a workaround ?
server {
listen 80 default_server;
server_name everythingelse;
error_page 404 /404.html;
# Everything is a 404
location / {
return 404; #return the code 404
}
# link the code to the file
location = /404.html {
#EDIT this line to make it match the folder where there is your errors page
#Dont forget to create 404.html in this folder
root /var/www/nginx/errors/;
}
}
But this is not working !
I made one of my domain pointing to this nginx server, and he still server another site aka server For httpS for http nothing appear..
From all the articles[2] that I read about *the mandatory notice to display for website* none of them reference the URL of their claim !! / of the legal text !! WTF[links]
Internet is by essence world wide, and when reading all those legal requirement it's seem that you should display notices for EVERY country !
it's seem also that if you own a private website, just for your own or family use, like for example a web file hosting services. (NextCloud etc..)
You should comply with the same requirement that are asked for company ! again... WTF !
Also I don't understand, why make mandatory those notices...(beside the
I've gave a longer trial to gpg4win and it's very power full and easy to use !
Of course it's pointless to use such a nice tool on a none air-gaped Windows..