Skip to content

Instantly share code, notes, and snippets.

@JeffreyNaval
JeffreyNaval / laragon.md
Last active November 20, 2023 03:23
Laragon New PHP
@JeffreyNaval
JeffreyNaval / docker-install.sh
Last active August 22, 2022 05:14
Laravel composer install using docker
# Create a copy of this file on your Laravel project.
# Then run
# sh docker-install.sh
docker info > /dev/null 2>&1
# Ensure that Docker is running...
if [ $? -ne 0 ]; then
echo "Docker is not running."

Game Cards

  • PlayPark! Games
  • Game Club
  • Garena
  • Cherry Credits
  • WarpPortal
  • Steam Wallet Codes
  • Pusoy Pinoy
  • Tongits Wars
  • Ragnarok Online
@JeffreyNaval
JeffreyNaval / install.sh
Created March 10, 2020 05:29
Laravel Install after clone
composer install
cp .env.example .env
php artisan key:generate
php artisan passport:install
@JeffreyNaval
JeffreyNaval / checklist.md
Last active February 22, 2020 02:46
Laravel Launch Checklist

Laravel Launch Checklist

General

  • APP_NAME - Redis cache use this.
  • APP_URL - Email links use this.
  • FILESYSTEM_DRIVER - Set default filesystem config. eg. public, aws, digitalocean, ftp
  • $redirectTo - Set correct urls (sometimes apps don't have /home). Usually used after login, reset password, register

Mail

@JeffreyNaval
JeffreyNaval / new.sh
Last active February 27, 2020 08:46
New Laravel - Tailwind Project
composer require laravel-frontend-presets/tailwindcss --dev
php artisan preset tailwindcss-auth
# https://github.com/adamwathan/blade-svg
composer require nothingworks/blade-svg
php artisan vendor:publish --provider="BladeSvg\BladeSvgServiceProvider"
# Queues
composer require predis/predis ~1.0
# php artisan queue:failed-table
@JeffreyNaval
JeffreyNaval / DropDown.vue
Last active June 8, 2019 06:03
New Laravel
<template>
<div class="relative" v-click-outside="closeDropdown">
<slot name="button" v-bind:toggle="toggle"></slot>
<transition
enter-active-class="transition-all transition-fastest ease-out-quad"
leave-active-class="transition-all transition-faster ease-in-quad"
enter-class="opacity-0 scale-70"
enter-to-class="opacity-100 scale-100"
leave-class="opacity-100 scale-100"
leave-to-class="opacity-0 scale-70"

NVIDIA

Launch Nvidia control panel, press Manage 3D settings and set settings like this:

  • Ambient Occlusion: off
  • Anistropic Filtering: off
  • Antialiasing - FXAA: off
  • Antialiasing - Gamma correction: off
@JeffreyNaval
JeffreyNaval / deploy.sh
Last active January 20, 2017 12:33
Laravel Deployment Script
# Enable Maintenance Mode
php artisan down
# Update git
git pull origin master
# Update vendor
composer install --no-interaction --no-dev --prefer-dist
# Update database