Skip to content

Instantly share code, notes, and snippets.

View huenisys's full-sized avatar
🎯
Focusing

Paul Dominik huenisys

🎯
Focusing
View GitHub Profile
@huenisys
huenisys / settings.json
Created August 25, 2017 15:19 — forked from pauldominik/settings.json
Sublime Text 3 User settings
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"default_line_ending": "unix",
"draw_white_space": "all",
"font_size": 11,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
@huenisys
huenisys / stronger ssh key
Created August 24, 2017 10:07
stronger ssh key
ssh-keygen -o -a 100 -t ed25519 -f id_hue -C "hue"
@huenisys
huenisys / Sublime Text 3 Setup.rst
Last active August 23, 2017 04:47 — forked from pauldominik/Sublime Text 3 Setup.rst
Sublime Text 3 Setup
@huenisys
huenisys / laravel_5.5_multi-domain_notes.md
Created August 23, 2017 04:38
laravel 5.5 multi-domain
  • each with his own env file
  • own assets folder
  • own resources folder
- pa make:model Post -fa
Force creation of Post model, controller, migration and factory.
@huenisys
huenisys / gist:fb0b958c413c9e25cdcf549b1dbbe75a
Last active August 20, 2017 15:37
common composer commands
- $ composer validate
- $ composer diagnose
- $ composer self-update
- $ composer create-project laravel/laravel laravel1 --no-progress --profile --prefer-dist
- $ composer global require hirak/prestissimo # makes composer run faster
@huenisys
huenisys / package development
Created August 20, 2017 15:09
Laravel Package development
- .gitignore, LICENSE.txt, phpunit.xml, readme.md, tests/, src/
- $ composer init
- $ cda
- $ composer require illuminate/support
@huenisys
huenisys / phpunit.xml
Created August 20, 2017 15:03
phpunit base config
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
@huenisys
huenisys / sublime-key-bindings.json
Created August 20, 2017 06:31
sublime key bindings
[
{ "keys": [";", ";"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
},
{ "keys": ["ctrl+shift+r"], "command": "reveal_in_side_bar"},
{ "keys": ["ctrl+alt+r"], "command": "goto_symbol_in_project"},
@huenisys
huenisys / Laravel Setup.md
Last active August 20, 2017 06:19
Laravel 5.5 setup

Base

  • $ laravel new laravel55 --dev
  • $ composer require laravel/homestead --dev # this gives per project homestead
  • $ vendor\bin\homestead make # will create vagrant file
  • $ vagrant up

Dusk

  • $ composer require laravel/dusk --dev
  • add dusk provider in config using app service provider wrapped to run locally only