Skip to content

Instantly share code, notes, and snippets.

View eklundkristoffer's full-sized avatar

Kristoffer Eklund eklundkristoffer

View GitHub Profile
<?php
$service->data_ga->get(
'ga:ANALYTICS_VIEW_ID_HERE',
'2008-01-01',
'today',
'ga:pageviews',
[
'filters' => 'ga:hostname==subdomain.mydomain.com',
'dimensions' => 'ga:pagePath'
@eklundkristoffer
eklundkristoffer / component.php
Created May 8, 2019 11:54
Laravel dusk + Vue multiselect
<?php
namespace Tests\Browser\Components;
use Laravel\Dusk\Browser;
use Laravel\Dusk\Component as BaseComponent;
class Multiselect extends BaseComponent
{
/**
@eklundkristoffer
eklundkristoffer / macros.php
Last active March 1, 2019 21:15
Laravel dusk clearVue & typeVue
<?php
use Laravel\Dusk\Browser;
Browser::macro('clearVue', function ($field) {
$field = $this->resolver->resolveForTyping($field);
foreach (range(1, strlen($field->getAttribute('value'))) as $index) {
$field->sendKeys($this->parseKeys(['{backspace}']));
}
1 . Check the current status of ssh-agent: Get-Service | select -property name,starttype
2. Set the new type :`Set-Service -Name ssh-agent -StartupType Manual
3. Start it: Start-Service ssh-agent