Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Franco Salcedo francosalcedo

🏠
Working from home
View GitHub Profile
@francosalcedo
francosalcedo / login.php
Created Jul 17, 2020
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 ) )
{
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');
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
@francosalcedo
francosalcedo / gist:fddc51a0abfc3956a1750a080e842e52
Created Aug 28, 2018
Node - webpack - Error: watch ENOSPC
View gist:fddc51a0abfc3956a1750a080e842e52
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Reference: https://github.com/facebook/jest/issues/3254