Skip to content

Instantly share code, notes, and snippets.

# cat /etc/metrika.xml
<yandex>
<dictmysql1>
<port>3306</port>
<connect_timeout>3600</connect_timeout>
<rw_timeout>3600</rw_timeout>
<user>userx</user>
<password>passwordx</password>
<host>hostx</host>
<priority>1</priority>
@pragmaton
pragmaton / artisan.php
Created October 12, 2017 11:47 — forked from vkbansal/artisan.php
Tying to use artisan migrate commands outside laravel
<?php
require_once "vendor/autoload.php";
use Symfony\Component\Console\Application;
use Illuminate\Database\Console\Migrations;
use Pimple\Container;
$container = new Container();
$container['migration-table'] = 'migration';
<?php
/**
* 1. create project at https://console.developers.google.com/project
* 2. enable 'Analytics API' under 'APIs & auth' / APIs
* 3. create 'NEW CLIENT ID' (OAuth client) under 'APIs & auth' / Credentials
* i. select 'Service account'
* ii. save generated key file to 'key.p12'
* iii. remember CLIENT ID
* 4. under GA account add 'Read & Analyze' access to newly generated email (access to GA Account not Property nor View)