Skip to content

Instantly share code, notes, and snippets.

View medaminebt's full-sized avatar
:octocat:
Focusing !

Amine bt medaminebt

:octocat:
Focusing !
View GitHub Profile
@medaminebt
medaminebt / filesRController.php
Created December 18, 2024 16:20
Controller handeling cloudflare R2 Storage
<?php
namespace App\Http\Controllers;
use App\Models\File;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Storage;
class FilesRController extends Controller
# Add Flutter and Dart to the PATH env
echo -e "\n# Flutter & Flutter bin Path\nexport PATH=\"\$PATH:/opt/flutter/bin\"\n\n# Set Flutter and Dart Home\nexport FLUTTER_HOME=/opt/flutter\nexport DART_HOME=\$FLUTTER_HOME/bin" >> ~/.bashrc
@medaminebt
medaminebt / flutter_installation_script.sh
Last active May 30, 2024 16:12
Flutter 3.19.x installation script for ubuntu/trusty64 & ubuntu server 22.04 LTS
#!/bin/bash
# Update the package list
sudo apt update
# Install necessary packages
sudo apt install -y git wget unzip curl xz-utils
# Download Flutter
FLUTTER_VERSION="3.19.6-stable"
APP_NAME=Elearny
APP_ENV=local
APP_KEY=base64:F3lX2XiWbULtR5SwZnR4TNVn/E93S1Fg/lMepg6vxWg=
APP_DEBUG=true
APP_URL=https://elearning.theteam.com.tn
FRONTEND_URL=https://cool-napier.85-215-138-217.plesk.page
#https://elearning.theteam.com.tn
#http://localhost
@medaminebt
medaminebt / FF Fixing PUBSPEC.YAML.yaml
Last active February 19, 2024 11:45
FF Fixing PUBSPEC.YAML DownGrading Flutter <4
name: expandy_nav
description: A new Flutter project.
publish_to: 'none'
version: 1.0.0+1
/*
environment:
sdk: ">=3.0.0 <4.0.0"
*/
@medaminebt
medaminebt / generate-images-using-gpt-3-and-pollinations-ai.txt
Last active August 9, 2023 10:28
using GPT 3 to generate images using pollinations.ai/prompt
continue with below prompt.
INPUT = {focus}
OUTPUT = {description} \n ![IMG](https://image.pollinations.ai/prompt/{description})
{description} = {focusDetailed},%20{adjective1},%20{adjective2},%20{visualStyle1},%20{visualStyle2},%20{visualStyle3},%20{artistReference}
@medaminebt
medaminebt / OpenVPN connect Setup on Proxmox
Last active January 13, 2023 08:15
OpenVPN connect Setup on Proxmox.md
#### In proxmox shell / CMD ####
cd /etc/pve/lxc
# press "ls" to list your containers and you can find the container number.
nano (container number)
add these lines
lxc.cgroup.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir