Skip to content

Instantly share code, notes, and snippets.

View ernestoliberio's full-sized avatar

Ernesto Gerardo Liberio Vera ernestoliberio

View GitHub Profile
#!/bin/bash
VPN_HOST="aquielgateway"
VPN_PORT="9443"
VPN_USER="aqui user"
VPN_PASSWORD="aquilaclave"
VPN_CERT=""
CONFIG_FILE="/etc/openfortivpn/config"
LOG_FILE="/var/log/openfortivpn.log"
@ernestoliberio
ernestoliberio / navicat_premium_reset_trial.sh
Created February 2, 2024 04:46
Reset Navicat Premium 15/16 remaining trial days
#!/bin/bash
set -e
file=$(defaults read /Applications/Navicat\ Premium.app/Contents/Info.plist)
regex="CFBundleShortVersionString = \"([^\.]+)"
[[ $file =~ $regex ]]
version=${BASH_REMATCH[1]}
@ernestoliberio
ernestoliberio / Config Php Fixer.markdown
Last active August 18, 2023 12:58
Configuraciones para PHP-FIXER

CONFIGURACIONES PARA PHP FIXER

PASO PREVIO INSTALAR COMPONENTE

	composer require "friendsofphp/php-cs-fixer" --dev

1.) Crear un archivo en la raiz del proyecto laravel

@ernestoliberio
ernestoliberio / README.md
Created July 19, 2022 13:40 — forked from eusonlito/README.md
Laravel Auth and Session without database. Using a remote API as Auth and Data provider.

This is an example of a web that uses a remote API as a database wrapper.

The remote API is stateless and the web uses cookies to maintain session persistence.

The API authentication endpoint returns a TOKEN that allows the web to make each request to the API with the user authentication header.


Este es un ejemplo de web que usa una API remota como wrapper de base de datos.

@ernestoliberio
ernestoliberio / countries_codes_and_coordinates.csv
Created June 22, 2022 16:51 — forked from tadast/countries_codes_and_coordinates.csv
Countries with their (ISO 3166-1) Alpha-2 code, Alpha-3 code, UN M49, average latitude and longitude coordinates
Country Alpha-2 code Alpha-3 code Numeric code Latitude (average) Longitude (average)
Afghanistan AF AFG 4 33 65
Albania AL ALB 8 41 20
Algeria DZ DZA 12 28 3
American Samoa AS ASM 16 -14.3333 -170
Andorra AD AND 20 42.5 1.6
Angola AO AGO 24 -12.5 18.5
Anguilla AI AIA 660 18.25 -63.1667
Antarctica AQ ATA 10 -90 0
Antigua and Barbuda AG ATG 28 17.05 -61.8

Conventinal Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@ernestoliberio
ernestoliberio / xdebug-mac.md
Created July 1, 2021 18:19 — forked from ankurk91/xdebug-mac.md
php xDebug v3 on Ubuntu/Mac and phpStorm

🪲 Install and Configure xDebug v3 on MacOS for PhpStorm 🐘

  • Assuming that you have already installed php and apache via Homebrew

  • Install xDebug php extension

pecl channel-update pecl.php.net
pecl clear-cache

pecl install xdebug