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
upload_max_filesize = 10M | |
post_max_size = 25M | |
memory_limit = 256M |
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
server { | |
# limit file size | |
client_max_body_size 10M; | |
listen 80; ## listen for ipv4; this line is default and implied | |
#listen [::]:80 default ipv6only=on; ## listen for ipv6 | |
server_name application; | |
access_log off; | |
error_log /dev/stdout; |
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
FROM bkuhl/laravel-fpm-nginx:8 | |
# Add default virtualhost | |
# Still needs work | |
COPY default.conf /etc/nginx/conf.d/default.conf | |
COPY upload.ini /usr/local/etc/php/conf.d/upload.ini | |
WORKDIR /var/www/html |
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
version: "3" | |
services: | |
api: | |
restart: always | |
container_name: api | |
build: | |
context: ./ | |
dockerfile: Dockerfile | |
ports: | |
- 8000:80 |
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
<template> | |
<div id="app"></div> | |
</template> | |
<script> | |
import pdfMake from 'pdfmake' | |
import pdfFonts from './assets/custom-fonts.js' | |
export default { |
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
<template> | |
<div id="app"></div> | |
</template> | |
<script> | |
import pdfMake from 'pdfmake' | |
import pdfFonts from './assets/custom-fonts.js' // 1. import custom fonts | |
export default { |
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
<template> | |
<div id="app"></div> | |
</template> | |
<script> | |
import pdfMake from 'pdfmake' | |
export default { | |
name: 'App', |
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
const nodemailer = require("nodemailer"); | |
async function main() { | |
let transporter = nodemailer.createTransport({ | |
host: "smtp.mailtrap.io", | |
port: 2525, | |
auth: { | |
user: "", // SMTP username from mailtrap | |
pass: "", // SMTP password from mailtrap | |
} |
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
exports.CountEndOfMonth = functions.pubsub.schedule("* * * * *").timeZone('Asia/Bangkok').onRun((context) => { | |
const endDateOfMonth = moment().endOf('month').format('DD') | |
const currentDate = moment().format('DD') | |
let message = '' | |
if (currentDate === endDateOfMonth) { | |
message = `วันนี้เป็นวันสิ้นเดือนจ้า เย่เย้ ~~ 😁😁` | |
} else { | |
message = `อีก ${endDateOfMonth - currentDate} วัน จะสิ้นเดือน สู้สู้จ้า 🎉🎉` | |
} |
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
const functions = require('firebase-functions') | |
const moment = require('moment') | |
const request = require('request') | |
exports.CountEndOfMonth = functions.pubsub.schedule("0 7 * * *").timeZone('Asia/Bangkok').onRun((context) => { | |
const endDateOfMonth = moment().endOf('month').format('DD') | |
const currentDate = moment().format('DD') | |
let message = '' | |
if (currentDate === endDateOfMonth) { |
NewerOlder