curl -o ~/Library/LaunchAgents/ssh.add.a.plist https://gist.githubusercontent.com/ryun/556a852b39d30909a6ed1c45101f22c6/raw/55ce45ff58212ca85c1d84c0edab36e398538136/ssh.add.a.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Symfony\Component\Process\Exception\ProcessFailedException; | |
use Symfony\Component\Process\Process; | |
class CronManagerCommand extends Command | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (! function_exists('retry')) { | |
function retry(callable $callback, $times = 3, $sleep = 3) | |
{ | |
$attempts = 0; | |
do { | |
try | |
{ | |
return $callback(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +ryun33 is my blockchain ID. https://onename.com/ryun33 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Core\Logs; | |
use DateTime; | |
use Illuminate\Redis\Database; | |
use Monolog\Formatter\JsonFormatter; | |
use Monolog\Handler\AbstractProcessingHandler; | |
use Monolog\Logger; | |
/** | |
* Logs to a Redis key using rpush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var customFilterData = {}; | |
$('#data-table') | |
.on('preXhr.dt', function ( e, settings, d ) | |
{ | |
d.page = Math.ceil(d.start / d.length) + 1; | |
if ( d.page <= 1 ) d.page = 1; | |
for (var i in customFilterData) |
I hereby claim:
- I am ryun on github.
- I am ryuns (https://keybase.io/ryuns) on keybase.
- I have a public key whose fingerprint is 93AC E767 402D 762A 16B7 327E E847 F29B 3C7A BFB9
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Event::listen('illuminate.query', function($query, $bindings, $time, $name) | |
{ | |
$data = compact('bindings', 'time', 'name'); | |
// Format binding data for sql insertion | |
foreach ($bindings as $i => $binding) | |
{ | |
if ($binding instanceof \DateTime) | |
{ |
Event Sourcing allows you to store all the domain events that affect an entity, and replay these events to restore the object’s state.
The fundamental idea of Event Sourcing is that of ensuring every change to the state of an application is captured in an event object, and that these event objects are themselves stored in the sequence they were applied for the same lifetime as the application state itself.
NewerOlder