Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevyworks kevyworks

View GitHub Profile
@kevyworks
kevyworks / mailhog-install.sh
Created Sep 19, 2022 — forked from Caffe1neAdd1ct/mailhog-install.sh
Installation of MailHog on CentOS 7
View mailhog-install.sh
## Install packages
sudo yum install wget curl vim epel-release
sudo yum install daemonize.x86_64
## Install mailhog
wget https://github.com/mailhog/MailHog/releases/download/v0.2.0/MailHog_linux_amd64
sudo chmod +x MailHog_linux_amd64
sudo chown root:root MailHog_linux_amd64
sudo mv MailHog_linux_amd64 /usr/sbin/mailhog
@kevyworks
kevyworks / wsl2_nginx.md
Last active Jun 22, 2021
WSL2 Nginx, PHP, MySQL - Different PHP versions
View wsl2_nginx.md

Different PHP Version

Installation:

$ sudo apt-get update -y
$ sudo apt-get install nginx mariadb-server -y
$ sudo service nginx start
@kevyworks
kevyworks / package.conf
Created Aug 10, 2020
Laragon Package Config
View package.conf
# PHP
php=https://github.com/leokhoa/laragon-packages/releases/download/4.0.9/php-7.3.2-Win32-VC15-x64.zip
# Apache
apache=https://home.apache.org/~steffenal/VC14/binaries/httpd-2.4.41-win64-VC14.zip
# phpMyAdmin
*phpmyadmin=https://files.phpmyadmin.net/phpMyAdmin/4.8.5/phpMyAdmin-4.8.5-english.zip
# MariaDB
View SendNotificationEmail.php
<?php
namespace Eder\Jobs;
use Eder\Jobs\Job;
use Illuminate\Contracts\Mail\Mailer;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Bus\SelfHandling;
use Illuminate\Contracts\Queue\ShouldQueue;
View SendNotificationEmail.php
<?php
namespace Eder\Jobs;
use Eder\Jobs\Job;
use Illuminate\Contracts\Mail\Mailer;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Bus\SelfHandling;
use Illuminate\Contracts\Queue\ShouldQueue;
View valet-wsl.md

Get Started

Follow the Wiki from valet-wsl

Switching PHP versions

Some projects may require older php version but minimum is 7.2 for the CLI which valet-wsl requires. The default Ubuntu 18.04 LTS is pre installed with Php version 7.4 in valet it is easy to use a specific version of php by

@kevyworks
kevyworks / ubuntu-server-setup-16.04.md
Created Jan 30, 2020 — forked from marcuslilja/ubuntu-server-setup-16.04.md
Server setup for Ubuntu 16.04 on Digital Ocean
View ubuntu-server-setup-16.04.md

Server setup for Ubuntu 16.04 on Digital Ocean

The setup installs the following software:

  • Nginx
  • MySQL
  • PHP
  • Node
  • Composer
@kevyworks
kevyworks / Readme.md
Last active May 6, 2019
CSS Grid Sample Admin Layout
View Readme.md

Admin CSS Grid Sample

This is just a sample admin layout using css grid

"Preview"

Demo

Repo

@kevyworks
kevyworks / package.json
Created Feb 6, 2019
PNPM Unlink Binary
View package.json
{
"name": "my-project",
"version": "1.0.0",
"description": "",
"keywords": [],
"license": "ISC",
"author": "",
"scripts": {
"clean": "pnpm run bin:unlink && pnpm m exec -- rm -rf node_modules; rm shrinkwrap.yaml; rm -rf node_modules",
"reset": "pnpm run clean && pnpm m install && pnpm run bin:link",