Skip to content

Instantly share code, notes, and snippets.

@spham
spham / main.tf
Created November 16, 2023 23:38 — forked from hongkongkiwi/main.tf
Initialises Terraform HTTP backend to Gitlab. Here's a nice script which will ask for details in an interactive way.
# More information can be found at https://docs.gitlab.com/ee/user/infrastructure/#gitlab-managed-terraform-state
terraform {
backend "http" {
}
}
@spham
spham / docker-aliases.sh
Created May 31, 2023 08:34 — forked from jgrodziski/docker-aliases.sh
Useful Docker Aliases
############################################################################
# #
# ------- Useful Docker Aliases -------- #
# #
# # Installation : #
# copy/paste these lines into your .bashrc or .zshrc file or just #
# type the following in your current shell to try it out: #
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash
# #
# # Usage: #
@spham
spham / letsencrypt-certbot-arangodb.md
Created May 18, 2023 06:15 — forked from RienNeVaPlus/letsencrypt-certbot-arangodb.md
Using Let's Encrypt's Certbot SSL-Certificates with ArangoDB

Using Let's Encrypt's Certbot Certificates with ArangoDB

Let's Encrypt generates SSL certificates for free.
Follow these steps to create and use an SSL certificate with ArangoDB.

1. Install the Certbot from LetsEncrypt (Certbot instructions)

sudo apt-get update
sudo apt-get install software-properties-common
@spham
spham / Multiform.php
Created December 27, 2021 12:51 — forked from webdevmatics/Multiform.php
Livewire multiform #livewire
<?php
namespace App\Http\Livewire;
use App\Customer;
use Livewire\Component;
class Multiform extends Component
{
public $name;
@spham
spham / missing_storage_dir.md
Last active November 4, 2021 07:26
YUNC LARAVEL 7 WITH LIVEWIRE
if (!empty($this->featuredImage)) {
$imageHashName = $this->featuredImage->hashName();

// Append to the validation if image is not empty
$validateData = array_merge($validateData, [
    'featuredImage' => 'image'
]);

// This is to save the filename of the image in the database
@spham
spham / laravelui
Created November 2, 2021 10:44
laravelui
composer require laravel/ui
php artisan ui bootstrap
php artisan ui bootstrap --auth
npm install && npm run dev
@spham
spham / bash_aliases
Created October 27, 2021 21:23
bash_aliases
alias jl="jovo build && jovo deploy && jovo run"
alias jb="jovo build"
alias jbr="jovo build && jovo run"
alias jr="jovo run --watch"
alias aa="cd alexa/sortiraparis"
alias jp="jovo build --stage prod && jovo deploy --stage prod"
alias gitt="git add . && git commit -m"
# JeffreyWay alias
alias pa="php artisan"
@spham
spham / seerder
Created October 27, 2021 20:10
seeder user admin
UserSeeder:
$user = User::where('email', 'admin@admin.com')->first();
User::create([
'name' => 'admin@admin.com',
'email' => 'admin@admin.com',
'password' => Hash::make('admin@admin.com'),
]);

Learning Plan for Test Driven Development (TDD)

These learning resources primarily focus on Test Driven Development (TDD).

  • There is an emphasis on learning using PHP, Laravel and PHPUnit.
  • All these resources are free (at the time of writing)