Skip to content

Instantly share code, notes, and snippets.

View alnutile's full-sized avatar

Alfred Nutile alnutile

View GitHub Profile
<style scoped>
.action-link {
cursor: pointer;
}
.m-b-none {
margin-bottom: 0;
}
</style>

ADR 001: Cloning Segments Skateboard Level (Proposed)

Status

Context

Given the complexity of segmenting data sets, users may wish to clone existing segments in order to speed up the reporting process.

And we have a short time line / budget.

@alnutile
alnutile / RunReportSlackTest.php
Created March 22, 2017 16:04
Slack In and Out
<?php
use App\Exceptions\NotSlackUrlException;
use App\Jobs\RunHubplannerReportJob;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Queue;
class RunReportSlackTest extends TestCase
{

Keybase proof

I hereby claim:

  • I am alnutile on github.
  • I am alfrednutile (https://keybase.io/alfrednutile) on keybase.
  • I have a public key whose fingerprint is 9E37 A135 9B41 67A8 8252 819A 75F3 3A19 75EB 9121

To claim this, I am signing this object:

[program:queue-listener-default]
process_name=%(program_name)s_%(process_num)02d
command=php {{ path }}/artisan queue:work default --tries=3 --sleep=3 --daemon
autostart=true
autorestart=true
user={{ user }}
numprocs=5
redirect_stderr=true
@alnutile
alnutile / request_queue.serialized
Created January 14, 2017 23:14
Example of a request in a queue Laravel 5x
{"job":"Illuminate\\Queue\\CallQueuedHandler@call","data":{"commandName":"App\\Jobs\\RandomWordJob","command":"O:22:\"App\\Jobs\\RandomWordJob\":4:{s:6:\"\u0000*\u0000job\";N;s:10:\"connection\";s:8:\"requests\";s:5:\"queue\";N;s:5:\"delay\";N;}"}}
  • Are you available FULL TIME for 6 months starting from July?
  • Do you have impeccable communication skills?
  • Are you an experienced Agile (inc Automated Test) Lean thinking Client Facing Developer?
  • Do you have experience in working in PHP and specifically the Laravel Framework
  • Do you want an excellent rate?
  • Do you want to work for an innovative start-up with the financial backing of a large enterprise?

Then we may just have the position for you! We are a progressive StartUp within a Multinational Corporation. We run Agile product teams that work closely with our clients to develop answers to their problems, but write highly maintainable and refactorable code in a Lean thinking environment.

<?php
trait LogInAs
{
/**
* @Given I log in as behat user
*/
public function logInAsBehat()
{
$user = '[email protected]';
{
"total": 50,
"per_page": 15,
"current_page": 1,
"last_page": 4,
"next_page_url": "http://laravel.app?page=2",
"prev_page_url": null,
"from": 1,
"to": 15,
"data": [
#
# REQUIRES:
# - server (the forge server instance)
# - site_name (the name of the site folder)
# - sudo_password (random password for sudo)
# - db_password (random password for database user)
# - event_id (the provisioning event name)
# - callback (the callback URL)
#