Skip to content

Instantly share code, notes, and snippets.

View sergomet's full-sized avatar
🎯
Focusing

Vlad Vasilov sergomet

🎯
Focusing
View GitHub Profile
@sergomet
sergomet / ExamplePassportTest.php
Created February 15, 2019 23:59 — forked from archy-bold/ExamplePassportTest.php
Testing Passport Authenticated Controllers and Routes in Laravel
<?php
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ExamplePassportTest extends \PassportTestCase
{
use DatabaseTransactions;
@sergomet
sergomet / GoogleDriveServiceProvider.php
Created April 1, 2017 07:01 — forked from ivanvermeyen/!NOTE.md
Setup a Laravel Storage driver with Google Drive API
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class GoogleDriveServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
@sergomet
sergomet / gist:576e8d9636e493c5f4f3
Last active August 29, 2015 14:05
Phalcon - Windows Setup
Phalcon Developer Tools
http://docs.phalconphp.com/en/latest/reference/wintools.html
Possible errros:
1) In your wamp\xamp phalcon extension is loaded, but
Runing phalcon.bat:
- ERROR: Phalcon extension isn't installed, follow these instrution to install
This is because php used in command line is using another php.ini file.
@sergomet
sergomet / gist:7808273
Last active December 30, 2015 09:19
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
(function () {
if (!Worker) //Detect IE
document.location = "http://www.whatbrowser.org/ru/browser/";
})();