This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div {{ $attributes }} wire:ignore x-data="{ | |
signaturePadId: $id('signature'), | |
signaturePad: null, | |
signature: @entangle($attributes->get('wire:model')), | |
ratio: null, | |
init() { | |
this.resizeCanvas(); | |
this.signaturePad = new SignaturePad(this.$refs.canvas); | |
if (this.signature) { | |
this.signaturePad.fromDataURL(this.signature, { ratio: this.ratio }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Writes an APR1-format password hash to the provided <htpasswd-file> for a provided <username> | |
# This is useful where an alternative web server (e.g. nginx) supports APR1 but no `htpasswd` is installed. | |
# The APR1 format provides signifcantly stronger password validation, and is described here: | |
# http://httpd.apache.org/docs/current/misc/password_encryptions.html | |
help (){ | |
cat <<EOF | |
Usage: $0 <htpasswd-file> <username> |