https://coshacks.blogspot.com/2021/05/matrix-tips-they-dont-tell-you.html
This is a random combination of FAQ and guides about Matrix. Mostly for my own notes but these might be useful for others.
Yes. Going to move it somewhere on fediverse soon.
#!/bin/bash | |
sudo certbot \ | |
certonly \ | |
--server https://acme-v02.api.letsencrypt.org/directory \ | |
--manual \ | |
--agree-tos \ | |
--preferred-challenges dns \ | |
--register-unsafely-without-email \ | |
-d *.domain. # Wildcard - could be regular and one can also specify multiple -d options to include in the certificate |
<?php | |
/** | |
* @author Shahab Movahhedi <[email protected]> | |
* @copyright © 2022 Shahab Movahhedi. All rights reserved. | |
* @link http://sms.ir/ Documentation of sms.ir RESTful API PHP sample. | |
* @version 1.2 | |
*/ | |
class SmsIr { |
https://coshacks.blogspot.com/2021/05/matrix-tips-they-dont-tell-you.html
This is a random combination of FAQ and guides about Matrix. Mostly for my own notes but these might be useful for others.
Yes. Going to move it somewhere on fediverse soon.
/** | |
* Resizes an Image File and converts it to a dataurl string. | |
* @param imageFile the image file (probably from a file input) | |
* @param resize_width The width you want the image to be | |
* @param quality quality of the resize image 0 - 1 | |
*/ | |
const resizeImage = ({ | |
resizeWidth = 400, | |
imageFile, | |
quality = 1, |
It's 2024. You should use tsup instead of this.
🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle + type-checking
#!/usr/bin/env bash | |
# used to install offical chrome and selenium on Ubuntu 16.04.1 LTS, 18.04, 20.04.1 LTS desktop, Jan 2021 | |
# also tested and works on Elem OS 5.1 :) | |
# | |
# make sure script is run as root or sudo | |
if [[ $(whoami) != "root" ]] ; then | |
echo ; echo "This script, $0, SHOULD be run as ROOT. " ; echo | |
exit 1 | |
fi | |
# |
See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
Update: There is a more secure version available. Details
<?php
$plaintext = 'My secret message 1234';