Skip to content

Instantly share code, notes, and snippets.

View AndresReyesDev's full-sized avatar
🥣
Cooking the Internet Soup since 1999…

Andrés Reyes Galgani AndresReyesDev

🥣
Cooking the Internet Soup since 1999…
View GitHub Profile
@AndresReyesDev
AndresReyesDev / .macos
Created February 1, 2023 13:55
macOS Setup
###############################################################################
# General UI/UX #
###############################################################################
HOSTNAME="s3rgiosan"
# Set computer name
sudo scutil --set ComputerName $HOSTNAME
sudo scutil --set HostName $HOSTNAME
sudo scutil --set LocalHostName $HOSTNAME
@AndresReyesDev
AndresReyesDev / account_status.csv
Created January 5, 2023 16:51 — forked from aj0strow/account_status.csv
Metro2 Format for Canadian Reporting
Status Description Equifax Description Equifax Rate
DA Delete entire account None 9
DF Delete entire account None 9
ZA Financial counseling Credit Counseling 7
05 Account transferred to another office Transferred or sold 1
07 Too new to rate None 0
11 Account in good standing None 1
13 Paid or closed account / zero balance Account paid 1
61 Account paid in full / was voluntary surrender Account paid 8
62 Account paid in full / was collection account / insurance claim or government claim Account paid 9
@AndresReyesDev
AndresReyesDev / docker-compose.yml
Last active August 4, 2021 13:17
Wordpress Docker ready for development through WSL2 on Windows
version: "3.9"
services:
db:
image: mysql:5.7
volumes:
- wp_master_db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
<IfModule mod_rewrite.c>
# Turn Off mod_dir Redirect For Existing Directories
DirectorySlash Off
# Rewrite For Public Folder
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
@AndresReyesDev
AndresReyesDev / 1-setup.md
Created August 18, 2020 04:16 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing with either GPG or Krypt.co.

/^((\+?56\s)?(0?2|0?3[2-5]|0?4[1-5]|0?5[123578]|0?6[13457]|0?7[1235])?(\s2\d{6}|\s\d{6}))$/
'+56 2 2xxxxxx',
'+56 51 2xxxxxx',
'+56 51 xxxxxx',
'56 75 xxxxxx',
'56 051 xxxxxx',
'56 051 2xxxxxx',
'+56 051 2xxxxxx'
@AndresReyesDev
AndresReyesDev / jpg-png-optimize.md
Created March 4, 2020 03:56 — forked from w33zy/jpg-png-optimize.md
Optimize your jpg & png images with jpegoptim and optipng on linux

JPG and PNG image bulk optimization

Install jpegoptim and optipng

apt update && apt install jpegoptim optipng -y

JPG optimization

cd /path/to/your/image/folder
@AndresReyesDev
AndresReyesDev / FocusAppQuotesEspañol.txt
Created January 7, 2020 19:24
Frases para procastinadores en español recopiladas de la web. Puedes importarlas directamente a Focus App de Mac. Sientanse libres de agregar más como comentario a este hilo y las agregaré al documento. ¡Saludo colegas procastinadores!
La procrastinación es como una tarjeta de crédito: es muy divertida hasta que te llega el estado de cuenta -Christopher Parker
Cuando tienes que escalar una montaña, no pienses que esperando se hará más pequeña -Vox Populi
No te pongas a contemplar toda la escalera, simplemente da el primer paso -Martin Luther King
Si pospones las cosas hasta que estés seguro de que están bien, entonces nunca lograrás hacer nada -Norman Vincent Peale
El perfeccionismo es la madre de la procrastinación -Michael Hyatt
Si no fuera por el último minuto, nada se haría -Rita Mae Brown
La procrastinación es el Arte de mantenerse al día con las cosas de ayer -Don Marquis
La mayor debilidad de un erudito es: llamar investigación a la procrastinación -Stephen King
La procrastinación es una de las más comunes y mortales enfermedades, y el pago de su cuota en cuanto a éxito y felicidad es carísimo -Wayne Gretzky
¿Sabes lo que sucede cuando le das una buena idea a un procrastinador?… Nada, no sucede nada -Anónimo

WS PROD:

Username: UsrTestServicio

Password: U$$vr2$tS2T

@AndresReyesDev
AndresReyesDev / 2022_01_01_000001_create_regions_table.php
Last active September 17, 2024 04:00
Laravel 8 y Laravel 9 — División Administrativa de Chile: Regiones, Provincias y Comunas. Migraciones y Seeders.
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRegionsTable extends Migration
{
/**
* Run the migrations.