Skip to content

Instantly share code, notes, and snippets.

View penteleichuk's full-sized avatar
🇺🇦
Open to work

Vasyl Penteleichuk penteleichuk

🇺🇦
Open to work
View GitHub Profile
@paulund
paulund / AppServiceProvider.php
Last active March 16, 2023 18:10
Laravel Cache Auth::user(). Learn how to cache the logged in user at https://paulund.co.uk/laravel-cache-authuser
<?php
namespace App\Providers;
use App\Models\User;
use App\Observers\UserObserver;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
@danielwetan
danielwetan / nodejs-cicd-github-actions.md
Last active July 28, 2024 07:09
Deploy Node.js to VPS using Github Actions

Deploy Node.js to VPS using Github Actions

Steps to deploy Node.js to VPS using PM2 and Github Actions

1. Clone repo to VPS folder