Skip to content

Instantly share code, notes, and snippets.

View bpocallaghan's full-sized avatar

Ben-Piet O'Callaghan bpocallaghan

View GitHub Profile
@bpocallaghan
bpocallaghan / readme.md
Last active October 20, 2021 17:03
Transfer Repository from BitBucket to GitHub

Move Repository from BitBucket to GitHub

Create Repository on GitHub https://github.com/new

Open SourceTree Open Terminal

git remote add upstream https://github.com/USER/REPOSITORY.git

git push upstream master

@bpocallaghan
bpocallaghan / deploy.txt
Last active October 30, 2023 20:38
Laravel Forge Deploy Script
cd /home/forge/domain
# turn on maintenance mode
#php artisan down
git fetch --all
git reset --hard origin/master
composer install --no-interaction --prefer-dist --optimize-autoloader
( flock -w 10 9 || exit 1
@bpocallaghan
bpocallaghan / class.js
Created March 20, 2018 08:05
Javascript Class.js snippet
/*
* MyClass
*/
var MyClass = function (options)
{
/*
* Variables accessible
* in the class
*/
@bpocallaghan
bpocallaghan / hosts
Last active November 19, 2017 14:25
Apache Virtual Host (Windows)
# location - C:\Windows\System32\drivers\etc
127.0.0.1 localhost
# add the following line (to allow to enter laravel-admin.dev in your browser)
127.0.0.1 laravel-admin.dev
@bpocallaghan
bpocallaghan / HelperServiceProvider.php
Last active July 12, 2017 12:32
Laravel 5 Include Helper Files
<?php
// save app/Providers/
// remember to register it in your config/app.php
// 'providers' => [
// App\Providers\HelperServiceProvider::class,
// ]
// lastly run composer dump-autoload