This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1) crie os alias para o subdir | |
Alias /crm/ /srv/www/portais/crm/public/ | |
Alias /crm /srv/www/portais/crm/public/ | |
#2) defina as permissões do diretório físico | |
<Directory "/srv/www/portais/crm/public/"> | |
AllowOverride All | |
Options Indexes FollowSymLinks MultiViews Includes ExecCGI | |
Require all granted | |
</Directory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace SnPortal\Providers; | |
use SnPortal\Models\Client; | |
use SnPortal\Observers\ClientObserver; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** SnClients **/ | |
<script> | |
import SnClientsTable from './table.vue' | |
import SnClientForm from './form.vue' | |
import moment from 'moment' | |
import bus from '../utils/events/bus' | |
export default { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name pusherdemo.dev; | |
root /home/claudio/Projetos/pusherdemo/public/; | |
index index.php index.html index.htm index.nginx-debian.html; | |
location / { | |
# First attempt to serve request as file, then | |
# as directory, then fall back to displaying a 404. | |
try_files $uri $uri/ /index.php?$query_string =404; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HTTP Application | |
server { | |
# Application Path | |
root /path/to/app/public/path; | |
# Index Application File | |
index index.php; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{-- views/tickets/index.blade.php --}} | |
@extends('layouts.adminlte') | |
@section('content') | |
<section class="invoice"> | |
<div class="row"> | |
<div class="col-xs-12"> | |
<h2 class="page-header"> | |
<i class="fa fa-ticket"></i> {{ $ticket->client->nome }} / {{ $ticket->location->nome }} | |
<small class="pull-right">Aberta em: {{ $ticket->data_abertura->format('d/m/Y H:i') }} por {{ $channels[$ticket->canal] }} <i>( {{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: claudio | |
* Date: 01/11/16 | |
* Time: 22:40 | |
*/ | |
namespace SnPortal\Observers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f |
OlderNewer