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
# Original: https://x.com/bjsonnen/status/1900000307804795098/photo/1 | |
# Thanks @bjsonnen | |
# Real-time system performance overview | |
top | |
# Interactive process viewer with color and sorting | |
htop | |
# show system uptime, load average, and running processes |
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 | |
/** @var \Illuminate\Database\Eloquent\Factory $factory */ | |
use App\User; | |
use Illuminate\Support\Str; | |
use Faker\Generator as Faker; | |
/* | |
|-------------------------------------------------------------------------- | |
| Model Factories |
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
<template> | |
<v-container fluid> | |
<v-layout column> | |
<v-card> | |
<v-card-text> | |
<v-flex class="mb-4"> | |
<v-avatar size="96" class="mr-4"> | |
<img :src="'/avatars/avatar_' + (form.avatar.toLowerCase()) + '.png'" alt="Avatar"> | |
</v-avatar> | |
<v-btn @click="openAvatarPicker">Change Avatar</v-btn> |
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
<template> | |
<v-dialog :fullscreen="$vuetify.breakpoint.xs" width="500" transition="dialog-bottom-transition" v-model="show"> | |
<v-card> | |
<v-toolbar dark color="primary"> | |
<v-btn icon dark @click="show = false"> | |
<v-icon>close</v-icon> | |
</v-btn> | |
<v-toolbar-title>Select an Avatar</v-toolbar-title> | |
<v-spacer></v-spacer> | |
</v-toolbar> |
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\Console; | |
use Illuminate\Foundation\Console\RouteListCommand; | |
use Illuminate\Routing\Route; | |
use Symfony\Component\Console\Input\InputOption; | |
class RouteSummaryCommand extends RouteListCommand | |
{ |
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
<template> | |
<svg class="icon" viewBox="0 0 512 512"><use :xlink:href="'/svg/fa-' + w + '.svg#' + n"></use></svg> | |
</template> | |
<script> | |
export default { | |
props: { | |
weight: { default: 'regular' }, | |
name: { type: String } | |
}, |
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
04ea926c2a9244bbf9b0ccafa7bc7037a4d5872a609baec1259b6ad2d793eded1c578947b1030a67a05f3f16bad16818357b16d6ac46edfb68ead3ae66db36457e;frbayart |
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 | |
function mondaysInMonth($month = null) { | |
if ($month === null) $month = Carbon\Carbon::today()->startOfMonth(); | |
$nextMonth = $month->copy()->endOfMonth(); | |
return $month->diffInDaysFiltered(function ($date) { | |
return $date->isMonday(); | |
}, $nextMonth); |
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 ($paginator->hasPages()) | |
<nav class="pagination"> | |
{{-- Previous Page Link --}} | |
@if ($paginator->onFirstPage()) | |
<a class="pagination-previous" disabled>Previous</li> | |
@else | |
<a class="pagination-previous" href="{{ $paginator->previousPageUrl() }}" rel="prev">Previous</a> | |
@endif | |
{{-- Next Page Link --}} |
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 | |
/** | |
* Helper function to convert CSV sheet to key value array | |
* PHPExcel.php class required | |
* @param string $filePath path to CSV file | |
* @param string $delimiter delimiter | |
* @param string $enclosure enclosure | |
* @param string $lineEnding line ending | |
* @param integer $sheetIndex sheet index to read |
NewerOlder