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
cd /tmp | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome-stable_current_amd64.deb | |
sudo apt --fix-broken install | |
cd /opt/google/chrome | |
sudo chown -R www-data:www-data chrome | |
sudo chmod -R 775 chrome | |
$snappdf = new Snappdf; | |
$snappdf->setChromiumPath('/usr/bin/google-chrome'); |
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
sudo apt-get remove \ | |
baobab \ | |
ca-certificates-java \ | |
cheese \ | |
cheese-common \ | |
default-jre \ | |
default-jre-headless \ | |
gnome-calculator \ | |
gnome-calendar \ | |
gnome-disk-utility \ |
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
DB::listen(function (QueryExecuted $query) { | |
info("🔵\t".$query->toRawSql()); | |
}); |
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\Controllers\Auth; | |
use App\Http\Controllers\Controller; | |
use App\Rules\IranMobileRule; | |
use Illuminate\Http\JsonResponse; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Password; | |
use Illuminate\Validation\ValidationException; |
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\Contracts; | |
use Illuminate\Contracts\Support\Responsable; | |
interface ResponseBuilderContract extends Responsable | |
{ | |
public function status(int $status): self; |
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/bash | |
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer |
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
# | |
127.0.0.1 localhost | |
::1 localhost | |
127.0.0.255 lavash | |
::1 lavash | |
127.0.0.254 lavashnonecgi | |
::1 lavashnonecgi |
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
#!/usr/bin/env bash | |
PACKAGES="$*" | |
ABSOLUTE_PATH=$(realpath $(dirname ${BASH_SOURCE[0]})) | |
function error { | |
echo "$1" 1>&2 | |
exit 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 | |
class Database | |
{ | |
protected $pdo; | |
protected function setPdo(PDO $pdo) | |
{ | |
return $this->pdo = $pdo; | |
} | |
protected function getPdo() |
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
git archive --format=zip --output asd.zip 56a4e42e |
NewerOlder