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/sh | |
sudo modprobe br_netfilter | |
sudo sysctl -w net.ipv4.ip_forward=1 | |
#!/bin/bash | |
# I choose CRI-O because it is easier to install and needs less installation | |
# Also, versioning seems to match kubernetes version so less confusion about versions | |
export CRIO_VERSION='v1.33' |
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 | |
namespace App\Http\Requests; | |
use Illuminate\Contracts\Validation\Rule as RuleContract; | |
use Illuminate\Foundation\Http\FormRequest; | |
use Illuminate\Validation\Rule; | |
class ContractTermRequest extends FormRequest | |
{ |
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 | |
namespace App; | |
use Cache; | |
class RussianCaching | |
{ | |
/** | |
* A list of model cache keys. | |
* | |
* @param array $keys | |
*/ |
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
var DateRange = { | |
today: function(){ | |
var currentDay = new Date(); | |
var date = currentDay.getFullYear() + '-' + this.addZero(parseInt(currentDay.getMonth() + 1)) + '-' + this.addZero(currentDay.getDate()); | |
return {from: date, to: date}; | |
}, | |
yesterday: function() { | |
var dayBefore = new Date(); | |
dayBefore.setDate(dayBefore.getDate() - 1); | |
var date = dayBefore.getFullYear() + '-' + this.addZero(parseInt(dayBefore.getMonth() + 1)) + '-' + this.addZero(dayBefore.getDate()); |
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
{{--$paginator Must be an instance of \Illuminate\Contracts\Pagination\LengthAwarePaginator--}} | |
@if ($paginator->lastPage() > 1) | |
<?php | |
$mod = 8; | |
/** @var \Illuminate\Contracts\Pagination\LengthAwarePaginator $paginator */ | |
$page = $paginator->currentPage(); | |
if ($paginator->lastPage() < $mod) { | |
$start = 1; |
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 | |
/** | |
* Converts the column number to proper Excel column format | |
* | |
* @param $number column number to be converted | |
* | |
* @return Returns Excel column name | |
*/ | |
function excelConvertToCell($number) | |
{ |