Skip to content

Instantly share code, notes, and snippets.

View jasperf's full-sized avatar
🏠
Working from home

Jasper Frumau jasperf

🏠
Working from home
View GitHub Profile
{
"__file": "wp_block",
"title": "Drinks V2",
"content": "<!-- wp:group {\"metadata\":{\"name\":\"container\",\"categories\":[\"intro\"],\"patternName\":\"intro-two-column-with-content-and-image\"},\"align\":\"full\",\"className\":\"alignfull\",\"style\":{\"spacing\":{\"padding\":{\"top\":\"calc( 0.5 * var(\\u002d\\u002dwp\\u002d\\u002dstyle\\u002d\\u002droot\\u002d\\u002dpadding-right, var(\\u002d\\u002dwp\\u002d\\u002dcustom\\u002d\\u002dgap\\u002d\\u002dhorizontal)))\",\"bottom\":\"calc( 0.5 * var(\\u002d\\u002dwp\\u002d\\u002dstyle\\u002d\\u002droot\\u002d\\u002dpadding-right, var(\\u002d\\u002dwp\\u002d\\u002dcustom\\u002d\\u002dgap\\u002d\\u002dhorizontal)))\",\"left\":\"var(\\u002d\\u002dwp\\u002d\\u002dstyle\\u002d\\u002droot\\u002d\\u002dpadding-left, var(\\u002d\\u002dwp\\u002d\\u002dcustom\\u002d\\u002dgap\\u002d\\u002dhorizontal))\",\"right\":\"var(\\u002d\\u002dwp\\u002d\\u002dstyle\\u002d\\u002droot\\u002d\\u002dpadding-right, var(\\u002d\\u002dwp\\u002d\\u002dcustom\\u002d\\u002dgap\\u002
@jasperf
jasperf / drinks-v2.json
Created September 14, 2024 04:14
Drink Menu Pattern JSON
{
"__file": "wp_block",
"title": "Drinks V2",
"content": "<!-- wp:group {\"metadata\":{\"name\":\"container\",\"categories\":[\"intro\"],\"patternName\":\"intro-two-column-with-content-and-image\"},\"align\":\"full\",\"className\":\"alignfull\",\"style\":{\"spacing\":{\"padding\":{\"top\":\"calc( 0.5 * var(\\u002d\\u002dwp\\u002d\\u002dstyle\\u002d\\u002droot\\u002d\\u002dpadding-right, var(\\u002d\\u002dwp\\u002d\\u002dcustom\\u002d\\u002dgap\\u002d\\u002dhorizontal)))\",\"bottom\":\"calc( 0.5 * var(\\u002d\\u002dwp\\u002d\\u002dstyle\\u002d\\u002droot\\u002d\\u002dpadding-right, var(\\u002d\\u002dwp\\u002d\\u002dcustom\\u002d\\u002dgap\\u002d\\u002dhorizontal)))\",\"left\":\"var(\\u002d\\u002dwp\\u002d\\u002dstyle\\u002d\\u002droot\\u002d\\u002dpadding-left, var(\\u002d\\u002dwp\\u002d\\u002dcustom\\u002d\\u002dgap\\u002d\\u002dhorizontal))\",\"right\":\"var(\\u002d\\u002dwp\\u002d\\u002dstyle\\u002d\\u002droot\\u002d\\u002dpadding-right, var(\\u002d\\u002dwp\\u002d\\u002dcustom\\u002d\\u002dgap\\u002
@jasperf
jasperf / index.html
Created September 7, 2024 00:54 — forked from JeffreyWay/index.html
Learn Vue 3: Step By Step - Episode 2, Attribute Binding and Event Handling - https://laracasts.com/series/learn-vue-3-step-by-step/episodes/2
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Episode 2: Attribute Binding and Basic Events</title>
<script src="https://unpkg.com/vue@3"></script>
<style>
html, body {
height: 100%;
}
@jasperf
jasperf / cover.filter-v2.js
Last active August 26, 2024 11:42
Bud style WordPress block Filter (unfinished)
// Import necessary functions from @wordpress/hooks
import { addFilter } from '@wordpress/hooks';
import { createHigherOrderComponent } from '@wordpress/compose';
import { InspectorControls } from '@wordpress/block-editor';
import { PanelBody, ToggleControl, TextControl } from '@wordpress/components';
import { Fragment } from '@wordpress/element';
import React from 'react'; // Ensure React is imported for JSX and cloneElement
/**
* @see {@link https://developer.wordpress.org/block-editor/reference-guides/filters/block-filters/#blocks-registerblocktype}
@jasperf
jasperf / gutenberg-block-line.html
Created August 12, 2024 06:58
HTML Line Block Gutenberg
<hr style="display: block;height: 1px;border: 0;border-top: 2px solid #d4b767;margin: 0;padding:0;width:100%;" />
@jasperf
jasperf / build-and-deploy.yml
Last active May 24, 2024 06:36
Github workflow for Laravel Vue application and deployment on Ploi managed server
name: Build and Deploy
on:
push:
branches:
- staging
pull_request:
branches:
- master
@jasperf
jasperf / laravel-vue-aimeos-questions.md
Last active May 23, 2024 04:15
Laravel PHP, Vue and Aimeos e-commerce 30-60 minutes interview questions

Laravel PHP, Vue and Aimeos e-commerce 30-60 minutes interview questions

General Questions:

  1. Can you walk me through your previous experience with Laravel and/or PHP? How have you applied those skills in past projects or roles? Did they teach you in school before actually using it as a developer?
@jasperf
jasperf / check-port-25.sh
Last active May 3, 2024 02:49
Check SMTP Port 25 for outgoing and incoming traffic for Mail send out via SMTP or Sendmail (PHP)
# To check the port 25 , you can use:
# netstat (TCP and UDP):
netstat -plntu | grep ':25'
# ss (TCP and UDP):
ss -lntu | grep ':25'
# nmap (TCP):
nmap -sT -O localhost | grep 25
# lsof (TCP and UDP):
lsof -i:25
# telnet
@jasperf
jasperf / ffprobe-mp4.sh
Created April 20, 2024 09:25
ffprobe mp4 format that Apple iOS on iPhone 14 does not play. Could be AVC level issue that causes things to freeze on second chunk 206 status
ffprobe -loglevel error -show_streams ~/Desktop/img-3322-online-video-cuttercom-2.mp4
[STREAM]
index=0
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
@jasperf
jasperf / coding-done-per-month.sh
Last active April 16, 2024 02:20
Summary work February based on commit logs, merge requests
git log --since="February 1" --until="March 1" > ~/Documents/site.nl/february_commits.txt
git log --since="March 1" --until="April 1" > march_commits.txt
git log --since="April 1" --until="May 1" > april_commits.txt
git log --since="April 1" --until="April 10" > april_commits_apr1_to_apr9.txt