This tutorial requires OpenFortiVPN
- install via brew :
brew install openfortivpn
- create a config file, example :
brew install openfortivpn
// Response Header | |
Header('Filename: filename.ext'); | |
// html | |
<a href="path/to/file" download>Link</a> | |
// js | |
$('[download]').click(function(e) { | |
e.preventDefault(); |
<!-- Show Router Link --> | |
<li class="items-center text-gray-800 hover:text-gray-600" | |
v-for="route in this.$router.options.routes" | |
v-bind:key="route.path" | |
> | |
<router-link | |
class="text-xs uppercase py-3 font-bold block" | |
v-bind:to="route.path" | |
activeClass="text-orange-500 hover:text-orange-600" | |
v-bind:exact="route.path == '/'" |
FROM php:7.2-fpm | |
# Set working directory | |
WORKDIR /var/www | |
# Install dependencies | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
mariadb-client \ | |
libpng-dev \ |
user <user> staff; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log debug; | |
events { | |
worker_connections 256; | |
} | |
<!DOCTYPE html> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<style> | |
body { | |
background: repeat url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/7QCIUGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAGscAVoAAxslRxwCAAACAAAcAnQAV8KpIENoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbGQgLSBodHRwOi8vd3d3LnJlZGJ1YmJsZS5jb20vcGVvcGxlL0NoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQzYxOTY2LTIuMQAAAAAAAA |
ffmpeg -i video169.mp4 -lavfi '[0:v]scale=iw:ih*16/9,crop=w=iw*9/16' video916.mp4 |
[client] | |
user = "mysql_user" | |
password = "mysql_password" | |
host = "localhost" |
#! /bin/sh | |
# Init. script for phantomjs, based on Ubuntu 12.04 skeleton. | |
# Author: Anthony Lapenna <[email protected]> | |
PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
DESC="Phantomjs service" | |
NAME=phantomjs | |
DAEMON=/usr/bin/$NAME | |
PIDFILE=/var/run/$NAME.pid | |
SCRIPTNAME=/etc/init.d/$NAME |
require_once __DIR__ . "/vendor/autoload.php"; | |
use \Facebook\WebDriver\Remote\WebDriverCapabilityType; | |
use \Facebook\WebDriver\Remote\RemoteWebDriver; | |
use \Facebook\WebDriver\WebDriverDimension; | |
$host = '127.0.0.1:8910'; | |
$capabilities = array( | |
WebDriverCapabilityType::BROWSER_NAME => 'phantomjs', | |
'phantomjs.page.settings.userAgent' => 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0', |