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
BEGIN | |
DECLARE umur INT; | |
DECLARE result VARCHAR(5); | |
SET umur = TIMESTAMPDIFF(YEAR, tanggal_lahir, CURDATE()); | |
IF(umur >= 0 AND umur <= 4) THEN | |
SET result = '0-4'; | |
ELSEIF(umur >= 5 AND umur <= 9) THEN | |
SET result = '5-9'; | |
ELSEIF(umur >= 10 AND umur <= 14) THEN |
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
-----BEGIN CERTIFICATE REQUEST----- | |
MIIC1TCCAb0CAQAwgY8xCzAJBgNVBAYTAklEMRAwDgYDVQQIDAdKYWthcnRhMRAw | |
DgYDVQQHDAdKYWthcnRhMRIwEAYDVQQKDAlMdW1idW5naW4xEjAQBgNVBAsMCUx1 | |
bWJ1bmdpbjESMBAGA1UEAwwJTHVtYnVuZ2luMSAwHgYJKoZIhvcNAQkBFhFkZXZA | |
bHVtYnVuZ2luLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMBD | |
lABJzRNVqM9XrpV6VMO3XR9FPGQkiH32j0XlIRSk2B+AGxfWq/QQuQ25D3WOuA4l | |
9uUSmXYWSFY04smBftj4648jEaxPt+sFYMrBloCRdle/c5X3CdchMu4I95GsG4do | |
peFBvqwF/zAiU4Uf7L/cdKbavMfXVgr0LbuOIms/S7ILhOrIsLLlL46HptY9xbwx | |
Na645XHd7IXUMTDkt+GvVAJtjcE8WdkAGs+xnpRjbOQkwWm7785P/Eqp4uyo7r0G | |
pZegsIzgzwoXoOpOUE9BSFwk4hwrvOlhgKfe1NS8K0bq1ugkw15geapxe8CH7lZq |
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\Providers; | |
use Illuminate\Support\Collection; | |
use Illuminate\Pagination\LengthAwarePaginator; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ |
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; | |
use Illuminate\Support\Collection as BaseCollection; | |
class Collection extends BaseCollection | |
{ | |
public function toUpper() | |
{ |
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\Models; | |
use Illuminate\Database\Eloquent\Model; | |
use DB; | |
class ProductivityProblem extends Model | |
{ | |
protected $fillable = [ |
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
BOT_TOKEN="token_bot_telegram" | |
SNAPSHOT_URL="snapshot url motionEyeOS" | |
USER_CHAT_ID="chat_id_telegram" | |
CAPTION="Motion Detected" | |
SCRIPT_PATH=$(dirname $(readlink -f $0)) | |
curl -o "${SCRIPT_PATH}/output.png" $SNAPSHOT_URL | |
curl -X POST -F "photo=@${SCRIPT_PATH}/output.png;type=image/png" "https://api.telegram.org/bot${BOT_TOKEN}/sendPhoto?chat_id=${USER_CHAT_ID}&caption=${CAPTION}" | |
# Script by pravodev |
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
country=US | |
update_config=1 | |
ctrl_interface=/var/run/wpa_supplicant | |
network={ | |
scan_ssid=1 | |
ssid="Nama Wifi" | |
psk="passwordWifinya" | |
} |
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 | |
/** | |
* Push Notification use FCM | |
* | |
* @author Rifqi Khoeruman Azam | |
*/ | |
namespace App\Libraries; |