This file contains hidden or 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
#!/bin/bash | |
#### Media file processing script for Filebot | |
# This script gets triggered by some means (inotify, auditd, cron, etc.) and processes media files in some locations. | |
# It will run the filebot amc.groovy script against these files and output them into user defined locations for HTPC use. | |
# | |
# Known Limitations: | |
# Not dealing with music files, just video files. I use beets for music tagging. | |
# Not dealing with unique video types just yet, such as comedy specials, concerts, etc. Filebot might match it okay but I am not confident about it. |
This file contains hidden or 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
<playercorefactory> | |
<players> | |
<player name="VLC" type="ExternalPlayer" audio="false" video="true"> | |
<filename>/Applications/VLC.app/Contents/MacOS/VLC</filename> | |
<args>--video-on-top --play-and-exit</args> | |
<hidexbmc>true</hidexbmc> | |
</player> | |
</players> | |
<rules action="prepend"> | |
<rule video="true" player="VLC"/> |
This file contains hidden or 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 | |
use Illuminate\Support\Arr; | |
trait CanBeReplicated | |
{ | |
public function replicateTo(string $model, array $with = null, array $except = null) | |
{ | |
$defaults = [ | |
$this->getKeyName(), |
This file contains hidden or 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 | |
// Usage: | |
// Before | |
@if ($errors->has('email')) | |
<span>{{ $errors->first('email') }}</span> | |
@endif | |
// After: |
This file contains hidden or 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
$app->configureMonologUsing(function($monolog) { | |
$transport = new \Gelf\Transport\UdpTransport("192.168.99.100", 12201, \Gelf\Transport\UdpTransport::CHUNK_SIZE_LAN); | |
$publisher = new \Gelf\Publisher(); | |
$publisher->addTransport($transport); | |
$monolog->pushHandler(new \Monolog\Handler\GelfHandler($publisher)); | |
}); |