-
Apache Redirect to HTTPS – How to Redirect to HTTPS on Apache – Namecheap
“RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] “
Mês: junho 2019
Update (weekly)
-
httpd.conf – Apache Proxy: No protocol handler was valid – Stack Overflow
“sudo a2enmod ssl
sudo a2enmod proxy
sudo a2enmod proxy_balancer
sudo a2enmod proxy_http” -
How To Secure Apache with Let’s Encrypt on CentOS 7 | DigitalOcean
“sudo certbot –apache -d example.com”
-
JavaScript in an HREF or SRC Attribute
“javascript:alert(11)”
Update (weekly)
-
Visual Studio Code – Terminal (PowerShell) – how to copy text – Stack Overflow
“You can now automatically copy whenever you select text in the terminal:
“terminal.integrated.copyOnSelection”: true”
-
Case insensitive sorting in MongoDB – Stack Overflow
“db.collection.aggregate([
{ “$project”: {
“field”: 1,
“insensitive”: { “$toLower”: “$field” }
}},
{ “$sort”: { “insensitive”: 1 } }
])” -
$project (aggregation) — MongoDB Manual
“if you exclude fields, you cannot also specify the inclusion of fields, reset the value of existing fields, or add new fields”
Update (weekly)
-
” Make sure you share your formControlName between mat-radio-group/mat-checkbox and the ugly [matInput] {display:none}”
-
<mat-form-field floatPlaceholder=“always“ class=“mat-form-field–no-underline“> <!– the matInput with display:none makes the magic. It’s ugly, I’ve warned you –> <input matInput placeholder=“Input“ style=“display: none“ > <mat-radio-group> <mat-radio-button value=“1“>Option 1</mat-radio-button> <mat-radio-button value=“2“>Option 2</mat-radio-button> </mat-radio-group> </mat-form-field>
-
-
Creating Multifield Indexes in Mongoose / MongoDB – Stack Overflow
“mySchema.index({field1: 1, field2: 1}, {unique: true});
“