Skip to content

Instantly share code, notes, and snippets.

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

Damián Aguilar daguilarm

🏠
Working from home
View GitHub Profile
nano ~/.bash_profile
export PATH=~/.composer/vendor/bin:$PATH
alias composer="php /usr/local/bin/composer.phar" to: alias composer="php /usr/local/bin/composer"
alias art="php artisan"
alias phpunit="vendor/bin/phpunit"
alias test="clear && phpunit"
alias dracarys="art migrate:refresh --seed"
alias dev="npm run dev"
alias production="npm run production"
@daguilarm
daguilarm / preferences.sublime-settings
Last active October 26, 2021 16:53
SublimeText settings
{
"always_show_minimap_viewport": true,
"auto_complete_selector": "source, text",
"bold_folder_labels": true,
"findreplace_small": true,
"font_face": "Jetbrains mono",
"font_options":
[
"gray_antialias"
],
@daguilarm
daguilarm / keybinding.sublime-keymap
Created March 2, 2019 09:44
SublimeText key binding
[
// swap the keybindings for paste and paste_and_indent
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" },
{
"keys": ["super+w"], "command": "align_tab",
"args" : {"live_preview" : true}
},
// Go to top the current class namespace
{ "keys": ["f1"], "command": "find_use" },
@daguilarm
daguilarm / CityTableSeeder.php
Last active September 28, 2015 13:23
Laravel seed: Municipios Provincia de Valencia
<?php
/*
*
|--------------------------------------------------------------------------
| Listado de Municipios de la Provincia de Valencia, vinculadas a Comunidad Autónoma y País
| Formato: Laravel 5.1 seed
| Autor: Damián Aguilar
| http://www.damianaguilar.es
| Twitter: @daguilarm
@daguilarm
daguilarm / RegionTableSeeder.php
Last active October 12, 2021 21:22
Laravel seed: Provincias de España
<?php
/*
*
|--------------------------------------------------------------------------
| Listado de Provincias de España vinculadas a Comunidad Autónoma y País
| Formato: Laravel 5.1 seed
| Autor: Damián Aguilar
| http://www.damianaguilar.es
| Twitter: @daguilarm
@daguilarm
daguilarm / CountryTableSeeder.php
Last active September 28, 2015 09:48
Laravel seed: Paises
<?php
/*
*
|--------------------------------------------------------------------------
| Listado de Paises para ser vinculados con Provincias y Comuidades Autónomas
| Formato: Laravel 5.1 seed
| Autor: Damián Aguilar
| http://www.damianaguilar.es
| Twitter: @daguilarm
@daguilarm
daguilarm / StateTableSeeder.php
Last active February 8, 2020 20:35
Laravel seed: Comunidades Autónomas de España
<?php
/*
*
|--------------------------------------------------------------------------
| Listado de Comunidades Autónomas de España para ser vinculadas con Provincias y Poblaciones
| Formato: Laravel 5.1 seed
| Autor: Damián Aguilar
| http://www.damianaguilar.es
| Twitter: @daguilarm
@daguilarm
daguilarm / countries.php
Last active August 29, 2015 14:28 — forked from JeffreyWay/countries.php
Country Names + Codes
[
"United States" => "us",
"Afghanistan" => "af",
"Albania" => "al",
"Algeria" => "dz",
"American Samoa" => "as",
"Andorra" => "ad",
"Angola" => "ad",
"Anguilla" => "ai",
"Antarctica" => "aq",
@daguilarm
daguilarm / .httaccess
Created August 24, 2015 07:51
Base for .httaccess
<ifModule mod_headers.c>
Header set Connection keep-alive
</ifModule>
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On