Skip to content

Instantly share code, notes, and snippets.

View svpernova09's full-sized avatar
🚀
In Transit

Joe Ferguson svpernova09

🚀
In Transit
View GitHub Profile
@svpernova09
svpernova09 / provision.sh
Last active March 18, 2024 17:53
WSL PHP Development
#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
# Update Package List
apt-get update
# Update System Packages
apt-get upgrade -y
@svpernova09
svpernova09 / README.md
Created October 24, 2017 18:01
How to test Homestead & Hyper-V

Prerequisities:

  • Ensure you have Windows 10 & The Fall Creators Update installed.
  • Uninstall Virtualbox
  • Enable Hyper-V
  • Create a new Virtual Switch in Hyper-V that is type "External" (You'll use this whenever asked)

Edit Homestead

Add / edit these 2 lines in your Homestead.yaml

# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
@svpernova09
svpernova09 / gist:0cb023ed7ea5cd8a2d64c82868e5e769
Created November 14, 2022 01:05
Vagrant up Virtualbox 7 public adapter log
vagrant destroy -f; vagrant up
==> homestead: Forcing shutdown of VM...
==> homestead: Destroying VM and associated drives...
Bringing machine 'homestead' up with 'virtualbox' provider...
==> homestead: Importing base box 'laravel/homestead'...
==> homestead: Matching MAC address for NAT networking...
==> homestead: Checking if box 'laravel/homestead' version '12.2.0' is up to date...
==> homestead: Setting the name of the VM: homestead
==> homestead: Clearing any previously set network interfaces...
==> homestead: Preparing network interfaces based on configuration...
┌─(~/Code/homestead)(main S:3)
└── vagrant destroy -f; vagrant up ==> homestead: Forcing shutdown of VM...
==> homestead: Clearing any previously set forwarded ports...
==> homestead: Destroying VM and associated drives...
==> homestead: Destroying unused networking interface...
Bringing machine 'homestead' up with 'parallels' provider...
==> homestead: Registering VM image from the base box 'laravel/homestead-arm'...
==> homestead: Creating new virtual machine as a linked clone of the box image...
==> homestead: Unregistering the box VM image...
==> homestead: Setting the default configuration for VM...
@svpernova09
svpernova09 / packer-build.log
Created August 26, 2022 19:00
Svpernova09/demo-bento-22.04-ARM Vagrant box
┌─(~/Code/bento/packer_templates/ubuntu)(ubuntu-22.04-arm64 ??:2 M:1 S:14)
└─(1)─ packer build --only=parallels-iso ubuntu-22.04-arm64.json
parallels-iso: output will be in this color.
==> parallels-iso: Retrieving ISO
==> parallels-iso: Trying http://cdimage.ubuntu.com/releases/22.04/release/ubuntu-22.04.1-live-server-arm64.iso
==> parallels-iso: Trying http://cdimage.ubuntu.com/releases/22.04/release/ubuntu-22.04.1-live-server-arm64.iso?checksum=sha256%3Abc5a8015651c6f8699ab262d333375d3930b824f03d14ae51e551d89d9bb571c
parallels-iso: ubuntu-22.04.1-live-server-arm64.iso 1.34 GiB / 1.34 GiB [===================================================================================================================] 100.00% 55s
==> parallels-iso: http://cdimage.ubuntu.com/releases/22.04/release/ubuntu-22.04.1-live-server-arm64.iso?checksum=sha256%3Abc5a8015651c6f8699ab262d333375d3930b824f03d14ae51e551d89d9bb571c => /Users/halo/.cache/packer/3678bda67593f7a1fae1140298d3bcf1f2d45d0d.iso
==> parallels-iso: Starting HTTP
<?php
namespace Tests\Unit;
use PHPUnit\Framework\TestCase;
class ShouldSendEmailTest extends TestCase
{
/**
* A basic unit test example.
@svpernova09
svpernova09 / docker-compose.yml
Last active June 4, 2022 20:12
Wait for MariaDB before Starting Snipe-IT
version: '3'
services:
snipeit_app:
image: snipe/snipe-it:v6.0.2
volumes:
- ./logs:/var/www/html/storage/logs
ports:
- "8000:80"
depends_on:
@svpernova09
svpernova09 / output.log
Created April 27, 2022 17:41
Bento Jammy PR Build Output log
$ packer build --only=virtualbox-iso ubuntu-22.04-amd64.json
virtualbox-iso: output will be in this color.
==> virtualbox-iso: Retrieving Guest additions
==> virtualbox-iso: Trying /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso: Trying /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso: /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso => /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso: Retrieving ISO
==> virtualbox-iso: Trying http://releases.ubuntu.com/jammy/ubuntu-22.04-live-server-amd64.iso
==> virtualbox-iso: Trying http://releases.ubuntu.com/jammy/ubuntu-22.04-live-server-amd64.iso?checksum=sha256%3A84aeaf7823c8c61baa0ae862d0a06b03409394800000b3235854a6b38eb4856f
@svpernova09
svpernova09 / webdriver.log
Created March 17, 2022 00:12
vagrant tty for webdriver?
┌─(~/Code/homestead)(main S:12)─────────────────────────────────────────────────────────────────────────────────────┐
└── vagrant ssh ─(19:09:15)(03/16/22)─┘
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-100-generic x86_64)
_ _ _
| | | | | |
| |__ ___ _ __ ___ ___ ___| |_ ___ __ _ __| |
| '_ \ / _ \| '_ ` _ \ / _ \/ __| __/ _ \/ _` |/ _` |
| | | | (_) | | | | | | __/\__ \ || __/ (_| | (_| |
|_| |_|\___/|_| |_| |_|\___||___/\__\___|\__,_|\__,_|