Skip to content

Instantly share code, notes, and snippets.

View kevinsmith's full-sized avatar

Kevin Smith kevinsmith

View GitHub Profile
<?php
function runCommand ()
{
$command = 'php artisan queue:work --daemon --env=prod > /dev/null & echo $!';
$number = exec($command);
file_put_contents(__DIR__ . '/queue.pid', $number);
}
if (file_exists(__DIR__ . '/queue.pid')) {
@kevinsmith
kevinsmith / 0_reuse_code.js
Created April 25, 2014 02:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console