Skip to content

Instantly share code, notes, and snippets.

View MrDave1999's full-sized avatar
🏠
Working from home

Dave Roman MrDave1999

🏠
Working from home
View GitHub Profile
@MrDave1999
MrDave1999 / nodejs-cicd-github-actions.md
Created March 31, 2024 03:39 — forked from danielwetan/nodejs-cicd-github-actions.md
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

@MrDave1999
MrDave1999 / Dockerfile
Created November 13, 2023 19:35 — forked from endofcake/Dockerfile
Copy *.csproj files during a docker build, preserving the directory structure (kudos to @aidansteele)
COPY src/*/*.csproj ./
RUN for file in $(ls *.csproj); do mkdir -p ${file%.*}/ && mv $file ${file%.*}/; done
@MrDave1999
MrDave1999 / Result.cs
Created September 7, 2023 15:11 — forked from m-jovanovic/Result.cs
Result type
public class Result
{
protected internal Result(bool isSuccess, Error error)
{
if (isSuccess && error != Error.None)
{
throw new InvalidOperationException();
}
if (!isSuccess && error == Error.None)
@MrDave1999
MrDave1999 / GIT.md
Last active April 23, 2021 15:00 — forked from dasdo/GIT.md
Lista de Comandos en GIT

Configuración Básica

Configurar Nombre que salen en los commits

	git config --global user.name "dasdo"

Configurar Email

	git config --global user.email dasdo1@gmail.com