This file contains 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
# STEP 1 | |
# Frist, generate PEM files using certbot docker image | |
docker run --rm -it -v ".:/etc/letsencrypt" certbot/certbot certonly --manual --preferred-challenges dns -d "domain.com" -d "*.domain.com" | |
# Follow the certbot instructions | |
# Remember that multiple TXT records with the same host are allowed | |
# so you can add TXT record for naked and wildcard validations. | |
# STEP 2 | |
# Generate FPX file using Ubuntu docker image |
This file contains 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
function addBusinessTime(holiday, time, duration) { | |
let finalTime = new Date(time.getTime()); | |
finalTime.setSeconds(finalTime.getSeconds() + duration); | |
// First lets cover all possible cases when the start time is before the | |
// holiday start. | |
if (time.getTime() <= holiday.start.getTime()) { | |
// If duration is negative or final time still before the holiday starts | |
// then there is nothing to do, simply return the final time. | |
if (duration <= 0 || (finalTime.getTime() <= holiday.start.getTime())) { |
This file contains 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
import axios from 'axios'; | |
import Form from 'form-object'; | |
axios.defaults.headers.common['Authorization'] = AUTH_TOKEN; | |
Form.defaults.axios = axios; |
This file contains 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
call plug#begin() | |
" Editing | |
Plug 'mattn/emmet-vim' | |
Plug 'tpope/vim-surround' | |
Plug 'jiangmiao/auto-pairs' | |
Plug 'easymotion/vim-easymotion' | |
Plug 'sgur/vim-editorconfig' | |
" Code completion | |
Plug 'sahibalejandro/vim-php' |
This file contains 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
<!-- Assign a class when the error is present --> | |
<input type="email" v-model="user.email" :class="{ 'has-error': form.errors.has('email') }" /> | |
<!-- Display the error message when it's present --> | |
<p class="error" v-show="form.errors.has('email')" v-text="form.errors.get('email')"></p> |
This file contains 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 class="progress"> | |
<div class"progress-bar" :style="{ width: form.progress + '%' }"></div> | |
</div> |
This file contains 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
<button type="submit" :disabled="form.isPending">Submit</submit> |
This file contains 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> | |
<form @submit.prevent="submit"> | |
<input type="email" v-model="user.email"/> | |
</form> | |
</template> | |
<script> | |
import Form from 'form-object'; | |
export default { |
This file contains 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
defaults write org.vim.MacVim AppleFontSmoothing -int 0 |
This file contains 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
<?php | |
namespace App\Testing; | |
use GuzzleHttp\Client; | |
trait Emails | |
{ | |
/** | |
* Assert last email from mailcatcher is sent from a specified address. |
NewerOlder