insomnia

Auth Bearer Enviornment { "token": "Bearer **Response -> Body Attribute**", } At Bearer -> Token -> “type Response, wait then” Attribute: choose Body Attribute with $.access_token Request:choose real login url Filter (JSONPath or XPath):$.access_token More detail need to see other website tech

繼續閱讀

$goods = [ 1 => [ 'id' => 12, 'price' => 77, ], 2 => [ 'id' => 43, 'price' => 855, ], 4 => [ 'id' => 34, 'price' => 1, ], ]; $goods_unique_ids_keys = array_keys(array_unique(array_column($goods, 'id'))); $goods_filter_datas = array_filter($goods, fn($key) => in_array($key, $goods_unique_ids_keys), ARRAY_FILTER_USE_KEY);

繼續閱讀

In liveiwre word some button action and alpine @click action be clicked, livewire 3 update (ajax) is different your think. Component public $test_input=1; public function tt() { info('tt'); info($this->test_input); } blade <div class="row row-cols-1 row-cols-md-3 g-4" x-data> <form wire:submit="tt"> <input type="text" wire:model='test_input'> <button type="submit">form type=submit</button> {{-- // update (ajax) --}} <button type="button">form type=button</button> {{-- // No update (ajax) --}} <button wire:click='tt; $wire.test_input=3;'>form wire:click</button> {{-- // update (ajax) and run twice --}} <button @click='$wire.

繼續閱讀

https://tecadmin.net/powershell-sending-email-via-smtp/ # Define the sender, recipient, subject, and body of the email $From = "sender@example.com" $To = "recipient@example.com" $Subject = "Test Email" $Body = "This is a test email sent via remote SMTP using PowerShell." # Define the SMTP server details $SMTPServer = "smtp.example.com" $SMTPPort = 587 $SMTPUsername = "username" $SMTPPassword = "password" # Create a new email object $Email = New-Object System.Net.Mail.MailMessage $Email.From = $From $Email.To.Add($To) $Email.Subject = $Subject $Email.

繼續閱讀

【x509: certificate relies on legacy Common Name field, use SANs instead】 https://gitlab.com/gitlab-org/gitlab-runner/-/issues/28841 Change all example.com for your domain openssl genrsa -out ca.key 2048 openssl req -new -x509 -days 365 -key ca.key -subj "/C=CN/ST=GD/L=SZ/O=Acme, Inc./CN=Acme Root CA" -out ca.crt openssl req -newkey rsa:2048 -nodes -keyout example.com.key -subj "/C=CN/ST=GD/L=SZ/O=Acme, Inc./CN=*.example.com" -out example.com.csr openssl x509 -req -extfile <(printf "subjectAltName=DNS:example.com,DNS:www.example.com") -days 365 -in example.com.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out example.com.crt Put crt and key to gitlab ssl.

繼續閱讀

作者的圖片

Sue boy

Sueboy Can support You

CIO

Taiwan