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
/^((\+?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 / 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.

<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 / docker-compose.yml
Last active February 12, 2025 16:25
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
@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 / .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 / hide_shipping_when_free_is_available.php
Last active December 3, 2024 18:15
WooCommerce Snippet: Hide Shipping when Free Shipping is Available
<?php
add_filter('woocommerce_package_rates', 'hide_shipping_when_free_is_available', 100, 2);
function hide_shipping_when_free_is_available($rates, $package) {
$free = array();
foreach ($rates as $rate_id => $rate) {
if ('free_shipping' === $rate->method_id) {
$free[$rate_id] = $rate;