Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Jasper Frumau jasperf

🏠
Working from home
Block or report user

Report or block jasperf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jasperf
jasperf / nginx.dockerfile
Last active Sep 26, 2018 — forked from qzm/nginx.dockerfile
Nginx 1.14.0 dockerfile --with-http_headers_module
View nginx.dockerfile
FROM alpine:3.8
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>"
ENV NGINX_VERSION 1.14.0
RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
&& CONFIG="\
--prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
View downloadController.php
/**
* Class DownloadFile
*/
Class DownloadFile
{
public $url = 'http://example.com/image.jpg';
public $path = '/path/to/write';
private $filename;
private $file;
View unsplashmodal.vue
<template>
<div class="modal-root">
<!-- Modal -->
<div class="modal image-uploader" :class="modalId" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
@jasperf
jasperf / class-object-binding.vue
Created Jun 5, 2018
Vue Class Object Binding
View class-object-binding.vue
<img
:class="{ unSplashThumbActive: isActive[photo.urls.small] }"
:src="photo.urls.small"
@click="mouseDownSelect(photo.urls.small)"
/>
@jasperf
jasperf / Dockerfile
Last active May 7, 2018
Dockerfile Nginx with SSL Setup using commercial certificates (Laradock based)
View Dockerfile
FROM nginx:alpine
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
COPY nginx.conf /etc/nginx/
# If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
ARG CHANGE_SOURCE=false
RUN if [ ${CHANGE_SOURCE} = true ]; then \
@jasperf
jasperf / jupiter-theme-logo-storage-form.html
Created Feb 25, 2018
Jupiter theme logo storage rights conflict
View jupiter-theme-logo-storage-form.html
"<form action="" method="post">
<div id="request-filesystem-credentials-form" class="request-filesystem-credentials-form">
<h2 id='request-filesystem-credentials-title'>Connection Information</h2><p id="request-filesystem-credentials-desc">To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.</p>
<label for="hostname">
<span class="field-title">Hostname</span>
<input name="hostname" type="text" id="hostname" aria-describedby="request-filesystem-credentials-desc" class="code" placeholder="example: www.wordpress.org" value="" />
</label>
<div class="ftp-username">
<label for="username">
<span class="field-title">FTP Username</span>
@jasperf
jasperf / mutation-types.js
Last active Jan 3, 2018
Mutation types for Vue Store
View mutation-types.js
export const ALL_PRODUCTS = 'ALL_PRODUCTS';
export const ALL_PRODUCTS_SUCCESS = 'ALL_PRODUCTS_SUCCESS';
export const ALL_PRODUCTS_FAILURE = 'ALL_PRODUCTS_FAILURE';
export const PRODUCT_BY_ID = 'PRODUCT_BY_ID';
export const PRODUCT_BY_ID_SUCCESS = 'PRODUCT_BY_ID_SUCCESS';
export const ADD_PRODUCT = 'ADD_PRODUCT';
export const ADD_PRODUCT_SUCCESS = 'ADD_PRODUCT_SUCCESS';
export const ADD_PRODUCT_FAILURE = 'ADD_PRODUCT_FAILURE';
@jasperf
jasperf / ProductForm.vue
Last active Jan 3, 2018
Product form fields for Vue store
View ProductForm.vue
<template>
<form @submit.prevent="saveProduct">
<div class="col-lg-5 col-md-5 col-sm-12 col-xs-12">
<div class="form-group">
<label>Name</label>
<input
type="text"
placeholder="Name"
v-model="model.name"
v-validate="'required'"
@jasperf
jasperf / New.vue
Last active Jan 3, 2018
new.vue for new products
View New.vue
<template>
<product-form @save-product="addProduct" :model="model" :manufacturers="manufacturers"></product-form>
</template>
<script>
import ProductForm from '../../components/product/ProductForm.vue'
export default {
data() {
return {
model: {},
@jasperf
jasperf / App.Vue
Created Dec 25, 2017
Vue Store App.vue file
View App.Vue
<template>
<div id="app">
<nav>
<div class="container">
<ul class="nav__left">
<!-- Navigation Links -->
<li><router-link to="/">Home</router-link></li>
<li><router-link to="/admin">Admin</router-link></li>
<li><router-link to="/cart">Cart</router-link></li>
</ul>
You can’t perform that action at this time.