Skip to content

Instantly share code, notes, and snippets.

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

Franco Salcedo francosalcedo

🏠
Working from home
View GitHub Profile
@francosalcedo
francosalcedo / mysql-sail.md
Created September 1, 2023 17:26 — forked from jjsquady/mysql-sail.md
Laravel Sail - GRANT ALL PRIVILEGES to user
View mysql-sail.md

Run this command in sail project folder:

docker-compose exec mysql bash

execute the mysql -u root -p command

provide the default password password

then executes

@francosalcedo
francosalcedo / login.php
Created July 17, 2020 05:02
Login wp admin without password in one file (localhost)
View login.php
<?php
require __DIR__ . '/wp-load.php';
$username = 'admin';
$user = get_user_by('login', $username );
// Redirect URL //
if ( !is_wp_error( $user ) )
{
@francosalcedo
francosalcedo / gist:005ec6f248e47611a527147884f3d976
Last active July 6, 2020 06:05
Config spanish laravel carbom
View gist:005ec6f248e47611a527147884f3d976
https://janostlund.com/2018-06-21/laravel-locale
sudo apt-get install language-pack-es
{{ $post->published->formatLocalized('%e de %B') }}
https://www.php.net/manual/es/function.strftime.php
View gist:ac4b087417f1858cfeb588318b6476cf
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
Route::post('login', 'Auth\LoginController@login');
Route::post('logout', 'Auth\LoginController@logout')->name('logout');
Route::get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
Route::post('register', 'Auth\RegisterController@register');
Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request');
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
@francosalcedo
francosalcedo / gist:fea9eea435fd2f1a02e47a9e100b8bdb
Created January 30, 2020 16:03
using laravel mix out laravel
View gist:fea9eea435fd2f1a02e47a9e100b8bdb
https://github.com/JeffreyWay/laravel-mix/blob/master/docs/installation.md#stand-alone-project
https://www.sitepoint.com/use-laravel-mix-non-laravel-projects/
https://github.com/LasseRafn/sitepoint-laravel-mix-without-laravel
View gist:21a3f4167613aba63fed211cd80249d2
// Default max limits widths
$container-max-widths: (
sm: 540px,
md: 720px,
lg: 960px,
xl: 1280px
) !default;
View gist:249dd560826e711d5d12424959b4cdbe
=======================
======================= PUBLICAR SERVICIO
=======================
Inicio
>
View gist:ac54b2105543d44582c7033dad9914b5
<!-- Desactivar la detección automática de números de teléfono -->
<meta name="format-detection" content="telephone=no">
<!-- Desactivar la detección automática de emails -->
<meta name="format-detection" content="email=no">
<!-- Desactivar la detección automática de direcciones postales -->
<meta name="format-detection" content="address=no">
View gist:0bc405a4defa8569e6b787d17b7e3b05
<style type="text/css">
.table-responsive table {
border-spacing: 0;
border-collapse: collapse;
}
.table-responsive td, .table-responsive th {
padding: 0;
View iterms shourtkeys
FOR ACTION SEND
⌘← "SEND HEX CODE" 0x01
⌘→ "SEND HEX CODE" 0x05
⌥← "SEND ESC SEQ" b
⌥→ "SEND ESC SEQ" f