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
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
- staging
- master
jasperf /
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 /
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 /
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
codec_long_name=AAC (Advanced Audio Coding)
jasperf /
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/
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
jasperf / external-user-access.sql
Created March 26, 2024 05:26
add user with remote ip address to allow access to database on secondary server from main server
CREATE USER 'user'@'' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON database.* TO 'user'@'' IDENTIFIED BY 'password';
jasperf / wp-post-object-check.php
Created February 21, 2024 09:06
WP_Post Object checkj
if( is_a( $post, 'WP_Post' ) ) {
write_log( 'WP_Post' );
} else {
write_log( 'WP_Post is not a WP_Post' );
$category_filters = xx_get_category_filter( $post, $the_term->slug );
jasperf /
Last active February 17, 2024 01:31
Download WordPress site to new server, import database , run set perm script and install acl
mkdir backups
cd backups
mysql dbasename < domain.nl_root--2024.02.09.sql -u dbase_admin -p
wget https://public_html.tar.gz/public_html.tar.gz
jasperf / ssh-key.ssh
Last active February 6, 2024 11:55
Ssh Key Generation for server access via ssh
ssh-keygen -t rsa -C "" -f ~/.ssh/name
ssh-keygen -t rsa -b 4096 -f ~/.ssh/name
jasperf / script-runner.php
Last active January 31, 2024 01:39
Basic WordPress Plugin to run scripts on server
Plugin Name: Custom Script Runner
Description: Allows users to run a custom PHP script.
Version: 1.0
Author: Your Name
// Define the page where the script can be run
function custom_script_runner_menu() {