Skip to content

Instantly share code, notes, and snippets.

View akrez's full-sized avatar
😋
Work Partially

AliAkbar Rezaei akrez

😋
Work Partially
View GitHub Profile
@rezakhademix
rezakhademix / docker-php-ext.md
Last active January 13, 2025 05:11
List of php docker extension with some guides to use them

List of PHP docker extensions:

RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
@meysampg
meysampg / dd.php
Created July 8, 2017 03:10
define `dd` function for Yii2
<?php
// add anywhere after `require(__DIR__ . '/../vendor/autoload.php');` on index.php file
function dd($v) {
\yii\helpers\VarDumper::dump($v, 10, true);
exit();
}
@MicrowaveDev
MicrowaveDev / ImageToInstagramController.php
Last active January 6, 2023 19:09
Laravel Intervention Image place to square for instagram(fill background, vertical or horizontal align a image) plus blur option.
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class AdminController extends Controller
{
public function imageFillToSquare(Request $request){
@jeanlescure
jeanlescure / README.md
Last active May 7, 2025 18:10
Ubuntu/Debian Offline Repository Creation

Ubuntu/Debian Offline Repository Creation Gist

When I googled how to create my own offline repository of packages for use in an offline Ubuntu/Debian machine, the results were disheartening and the steps to be taken scattered all over the place.

The files within this gist will allow you to:

  • Download specific apt-get packages... with dependencies included!
  • Create a Packages.gz file so that you can add the repository folder you create to the target machine's /etc/apt/sources.list file.

Before using