Skip to content

Instantly share code, notes, and snippets.

View MatiasDuhalde's full-sized avatar
馃
3d worlds

Mat铆as Duhalde MatiasDuhalde

馃
3d worlds
View GitHub Profile

Keybase proof

I hereby claim:

  • I am matiasduhalde on github.
  • I am duhalde (https://keybase.io/duhalde) on keybase.
  • I have a public key ASBHk7KFz3BUewVQSWviD_zDF8jXy49OJ3h7f7ZABsKo-wo

To claim this, I am signing this object:

@MatiasDuhalde
MatiasDuhalde / mutually-exclusive.decorator.ts
Last active December 10, 2024 00:27
class-validator Mutually Exclusive decorator
import {
ValidationArguments,
ValidationOptions,
ValidationTypes,
registerDecorator,
} from 'class-validator';
import 'reflect-metadata';
// Must not conflict with other existing properties in the application
const MUTUALLY_EXCLUSIVE_KEY = (tag: string) =>
@MatiasDuhalde
MatiasDuhalde / getPreviousMonths.js
Last active December 4, 2021 03:16
Get array of N previous months before a month
const monthsLabels = [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
@MatiasDuhalde
MatiasDuhalde / pull_repos.sh
Created September 14, 2021 01:16
Bash script for pulling all repos in current directory
# FIND ALL NESTED REPOS
echo "Looking for repositories in" `pwd`
# CHANGE -mindepth TO 1 TO ALSO PULL REPO IN SAME DIRECTORY AS SCRIPT
REPOSITORIES=`find -mindepth 2 -type d -name '.git' -printf '%h\n' | sed 's/^.\{1\}//'`
echo "Found:"
echo "$REPOSITORIES"
# GET SCRIPT DIR
BASEDIR=$(pwd)
cd "$BASEDIR"
@MatiasDuhalde
MatiasDuhalde / README.md
Last active December 17, 2024 15:45
Errores comunes en git (y c贸mo solucionarlos)

Errores comunes en git (y c贸mo solucionarlos)

  1. Error 1: not a git command / no es un comando de git
  2. Error 2: not a git repository / no es un repositorio git
  3. Error 3: Another git process seems to be running in this repository / Otro proceso git parece estar ejecutando en el repositorio
  4. Error 4: No configured push destination / No se ha configurado un destino para el empuje
  5. Error 5: The current branch master has no upstream branch / La rama actual master no tiene una rama upstream
  6. Error 6: Could not read from remote repository / No se pudo leer del repositorio remoto
  7. Contribuciones