Skip to content

Instantly share code, notes, and snippets.

View christopherarter's full-sized avatar
❤️
You are not an imposter. You belong, and we're lucky to have you.

Chris Arter christopherarter

❤️
You are not an imposter. You belong, and we're lucky to have you.
View GitHub Profile
{
"awesome_twitter_folks": [
{
"name": "Ash Allen",
"twitter": "@AshAllenDesign"
}
]
}
@christopherarter
christopherarter / docker-compose.yml
Created May 25, 2023 12:26
Elasticvue docker-compose example
version: '3.8'
services:
elasticvue:
image: cars10/elasticvue
container_name: elasticvue
ports:
- "8080:8080"
restart: always
networks:
@christopherarter
christopherarter / docker-compose.yml
Created December 28, 2021 20:33
Simple database for Laravel using Docker Compose
version: '3.8'
services:
db:
image: mariadb:10.7
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=laravel
- MYSQL_USER=root
- MYSQL_ROOT_PASSWORD=root
@christopherarter
christopherarter / Dockerfile
Created September 1, 2021 14:44
Laravel Dockerfile
FROM php:8-fpm
# Arguments defined in docker-compose.yml
ARG user
ARG uid
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \

It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming; but who does actually strive to do the deeds; who knows great enthusiasms, the great devotions; who spends himself in a worthy cause; who at the best knows in the end the triumph of high achievement, and who at the worst, if he fails, at least fails while daring greatly, so that his place shall never be with those cold and timid souls who neither know victory nor defeat.

@christopherarter
christopherarter / javahelp.java
Last active February 25, 2021 01:01
javahelp
//Nick Wetherington
package Chpt4_Project;
import java.util.Scanner;
public class Member {
public String name;
public String name;
public double weight;
@christopherarter
christopherarter / docker-compose.yml
Created February 16, 2021 13:09
Laravel Easy Database Docker Compose
version: '3'
services:
laravel_db:
image: mariadb
ports:
- 3306:3306
volumes:
- ./db_data:/var/lib/mysql
environment:
- MYSQL_DATABASE=laravel_db
public function createStripeSession(Request $request)
{
$trip = Trip::find( session('trip_id') );
\Stripe\Stripe::setApiKey( <dat secret key boi> );
$cartBooking = session('cart_booking');
if ($cartBooking->payment_type == 'deposit') {
$total = $cartBooking->getDepositCost();
} else {
$total = $cartBooking->getFullCost();
<?php
namespace Tests\Browser;
use App\Charter;
use App\Events\Bookings\NewBookingRequest;
use App\Trip;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Laravel\Dusk\Browser;
use Tests\DuskTestCase;
@christopherarter
christopherarter / HasDraftsTrait.php
Created August 12, 2020 16:19
Has Drafts Trait
<?php
namespace App\Traits;
use Illuminate\Support\Facades\Schema;
use Error;
use Auth;
trait HasDrafts
{
/**
* Get the draft data for a model.
*