Sharing host OS www-data directories as a volume is tricky for Alpine images. User ID (UID) and Group ID (GID) are different.
| UID/GID | Ubuntu | Alpine |
|---|---|---|
| 33 | www-data | xfs |
| 82 | - | www-data |
| <?php | |
| function getAccessToken($serviceAccountPath) { | |
| $now = time(); | |
| $payload = [ | |
| "iss" => $serviceAccountPath['client_email'], | |
| "sub" => $serviceAccountPath['client_email'], | |
| "aud" => "https://oauth2.googleapis.com/token", | |
| "iat" => $now, | |
| "exp" => $now + 3600, |
| <?php | |
| /* | |
| Custom WC Webhook Manager | |
| Add new webhook topic only for WC order completed. | |
| Developed by Md Jahidul Islam ( oneTarek ) https://onetarek.com | |
| */ | |
| //Don't allow direct access | |
| if( ! defined( 'ABSPATH' ) ) exit; |
| <template> | |
| <div ref="container"> | |
| <transition-group name="flip"> | |
| <div | |
| v-for="item in gridItems" | |
| :key="item.key" | |
| :style="{ backgroundImage: item.css, height: item.height }" | |
| /> | |
| </transition-group> | |
| </div> |
| const SIP = require('sip.js'); | |
| const net = require('net'); | |
| const TransportStatus = { | |
| STATUS_CONNECTING: 'STATUS_CONNECTING', | |
| STATUS_CONNECTED: 'STATUS_CONNECTED', | |
| STATUS_CLOSING: 'STATUS_CLOSING', | |
| STATUS_CLOSED: 'STATUS_CLOSED' | |
| }; |
| { | |
| "fas fa-address-book","fas fa-address-card","fas fa-adjust","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fas fa-allergies","fas fa-ambulance","fas fa-american-sign-language-interpreting","fas fa-anchor","fas fa-angle-double-down","fas fa-angle-double-left","fas fa-angle-double-right","fas fa-angle-double-up","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fas fa-archive","fas fa-arrow-alt-circle-down","fas fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-right","fas fa-arrow-alt-circle-up","fas fa-arrow-circle-down","fas fa-arrow-circle-left","fas fa-arrow-circle-right","fas fa-arrow-circle-up","fas fa-arrow-down","fas fa-arrow-left","fas fa-arrow-right","fas fa-arrow-up","fas fa-arrows-alt","fas fa-arrows-alt-h","fas fa-arrows-alt-v","fas fa-assistive-listening-systems","fas fa-asterisk","fas fa-at","fas fa-audio-description","fas fa-backward","fas fa-balance-scale","fas fa-ban","fas fa-band-aid","fas fa-barcode","fas fa-bars", |
| atl*CLI> core show help | |
| ! -- Execute a shell command | |
| acl show -- Show a named ACL or list all named ACLs | |
| ael reload -- Reload AEL configuration | |
| ael set debug {read|tokens|macros|contexts|off} -- Enable AEL debugging flags | |
| agi dump html -- Dumps a list of AGI commands in HTML format | |
| agi exec -- Add AGI command to a channel in Async AGI | |
| agi set debug [on|off] -- Enable/Disable AGI debugging | |
| agi show commands [topic] -- List AGI commands or specific help | |
| aoc set debug -- enable cli debugging of AOC messages |
| <template> | |
| <v-dialog v-model="dialog" :max-width="options.width" :style="{ zIndex: options.zIndex }" @keydown.esc="cancel"> | |
| <v-card> | |
| <v-toolbar dark :color="options.color" dense flat> | |
| <v-toolbar-title class="white--text">{{ title }}</v-toolbar-title> | |
| </v-toolbar> | |
| <v-card-text v-show="!!message" class="pa-4">{{ message }}</v-card-text> | |
| <v-card-actions class="pt-0"> | |
| <v-spacer></v-spacer> | |
| <v-btn color="primary darken-1" text @click.native="agree">Yes</v-btn> |
| <?php | |
| add_filter('wp_mail_smtp_custom_options', function( $phpmailer ) { | |
| $phpmailer->SMTPOptions = array( | |
| 'ssl' => array( | |
| 'verify_peer' => false, | |
| 'verify_peer_name' => false, | |
| 'allow_self_signed' => true | |
| ) | |
| ); |
| upload(files) { | |
| const config = { | |
| onUploadProgress: function(progressEvent) { | |
| var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total) | |
| console.log(percentCompleted) | |
| } | |
| } | |
| let data = new FormData() | |
| data.append('file', files[0]) |