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
fields @timestamp, @message | |
| filter @message not like "START RequestId" | |
| filter @message not like "END RequestId" | |
| filter @message not like "REPORT RequestId" | |
| filter @message not like "Caching Laravel configuration" | |
| filter @message not like "Loaded Composer autoload" | |
| filter @message not like "Executing warming requests..." | |
| filter @message not like "Creating storage directory" | |
| filter @message not like "No scheduled commands are ready to run" | |
| filter @message not like "NOTICE: ready to handle connections" |
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
shell: 'C:\\Program Files\\PowerShell\\7\\pwsh.exe', | |
shellArgs: ['-noexit', '-command', 'Set-Location D:\\Develop'], |
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
name: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
name: Tests |
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
git branch --merged | egrep -v "(^\*|main|qa|develop)" | xargs git branch -d |
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
Vue.swal({ | |
title: 'Are you sure?', | |
text: 'Selecting another sub category will result in all selections being reset.', | |
icon: 'warning', | |
showCancelButton: true, | |
confirmButtonText: 'Yes, clear selections', | |
reverseButtons: true, | |
}).then((result) => { | |
if (result.value) { | |
// Button was accepted, do your thing |
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 | |
/** | |
* Determine if the first letter of a string is uppercase and is A-Z | |
* | |
* Note: we use ctype here as it uses the current locale to help with multi-language/emoji decoding. | |
* | |
* @param string $string | |
* @return bool | |
*/ |
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\Http\Controllers; | |
use App\Actblue; | |
use App\Client; | |
use App\Packages\ReportHelper; | |
use DB; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Carbon; |
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\Jobs; | |
use App\Actblue; | |
use Bugsnag\BugsnagLaravel\Facades\Bugsnag; | |
use Google\Cloud\Core\ServiceBuilder; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Database\QueryException; |
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 | |
echo '<pre>'; | |
//ini_set('pcre.backtrack_limit', '1048'); | |
ini_set('pcre.recursion_limit', '2097'); | |
error_reporting(E_ALL ^ E_STRICT); | |
try { | |
$reg = preg_match_all('/[0-9-]+,"([^"]?)+/', '0,"120"1,"Global Ship Request"10,"108697687"30,"X6 HORA "33,"PM"34,"23214"35,"190"36,"16722"37,"6682"60,"50"112,"50"116,"1"119,"0"188,"^XA^CF,0,0,0^PR12^MD30^PW800^PON^CI13^LH0,20 | |
^FO12,139^GB753,2,2^FS | |
^FO12,405^GB777,2,2^FS |
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
SELECT sum(total_target_count) FROM email_blasts WHERE created_at >= '2017-09-01 00:00:00' AND created_at < '2017-10-01 00:00:00'; | |
SELECT sum(delivered) FROM email_blasts WHERE created_at >= '2017-09-01 00:00:00' AND created_at < '2017-10-01 00:00:00'; |
NewerOlder