Skip to content

Instantly share code, notes, and snippets.

View arthursalvtr's full-sized avatar

Arthur Salvatore arthursalvtr

View GitHub Profile
@arthursalvtr
arthursalvtr / vue-nginx.conf
Created July 28, 2021 03:35 — forked from namdau/vue-nginx.conf
Nginx config for Vuejs project with an API upstream
server {
server_name default_server;
# This is for Let's Encrypt certification renewal
include /etc/nginx/snippets/letsencrypt.conf;
# Redirect to https
location / {
return 301 https://$server_name$request_uri;
}
}
@arthursalvtr
arthursalvtr / add-custom-mail-driver-to-laravel.md
Last active April 5, 2024 17:43
Add Custom Mail Driver to Laravel

How to add custom Mail Driver to Laravel

Tested on Laravel 5.8

Within the source code of laravel 5.8 at this time of writing, we have this following

<?php

namespace Illuminate\Support;
@arthursalvtr
arthursalvtr / sshkey-generate.sh
Created June 17, 2019 09:17
Automate Github ssh key and ssh config script
#!/bin/bash
echo -e "\nSetting up ssh and config file"
if [ ! -d ~/.ssh ]; then
echo -e "\nCreating ssh folder"
mkdir ~/.ssh
else
echo -e "\nSSH folder already exists..."
fi
@arthursalvtr
arthursalvtr / longest-common-subsequence.js
Created November 26, 2018 08:32
Longest Common Subsequence in Javascript
/**
* Simple Longest Common Subsequence
*/
let initial = "ABCDGH";
let compared = "AEDFHR";
let expected = "This is the string";
function assertEquals(expected, actual)
{