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\Support; | |
use Barryvdh\LaravelIdeHelper\Console\ModelsCommand; | |
use Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Support\Arr; | |
use ReflectionClass; | |
use Spatie\Translatable\HasTranslations; |
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
[CONST_PARAM] | |
rtsp = 1 ; RTSPЭ�飬0���ر� 1������ |
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
#!/bin/bash | |
PATCHES=$(sed '2q;d' /var/lib/update-notifier/updates-available | grep -o '[0-9]*') | |
SECURITY_PATCHES=$(sed "3q;d" /var/lib/update-notifier/updates-available | grep -o '[0-9]*') | |
INSTANCE_ID=$(wget -q -O - http://169.254.169.254/latest/meta-data/instance-id) | |
UNIT="Count" | |
NAMESPACE="System/Linux" | |
aws cloudwatch put-metric-data --namespace $NAMESPACE --dimensions InstanceId=$INSTANCE_ID --unit $UNIT --metric-name "OperatingSystemUpdates" --value $PATCHES | |
aws cloudwatch put-metric-data --namespace $NAMESPACE --dimensions InstanceId=$INSTANCE_ID --unit $UNIT --metric-name "OperatingSystemSecurityUpdates" --value $SECURITY_PATCHES |
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
#!/usr/bin/env node | |
/* | |
* A hook to add resources class (R.java) import to Android classes which uses it. | |
* See: https://stackoverflow.com/a/44440258/4614197 | |
*/ | |
function getRegexGroupMatches(string, regex, index) { | |
index || (index = 1); |
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
$if($eql(%discnumber%,1/1),$num(%track%,2) $replace(%title%,?,_,/,_,",_,:,_,*,_),$num(%discnumber%,1)-$num(%track%,2) $replace(%title%,?,_,/,_,",_,:,_,*,_)) |