Skip to content

Instantly share code, notes, and snippets.

View iFeras93's full-sized avatar
🎯
Focusing

Feras Mohamed iFeras93

🎯
Focusing
View GitHub Profile
@ibrunotome
ibrunotome / laravel-ddd-approach.md
Last active August 25, 2023 23:25
A Domain Driven Design (DDD) approach to the Laravel Framework
/app
├── /Application
|  ├── /Exceptions
|  ├── /Middlewares
|  ├── /Providers
|  ├── /Requests
├── /Domain
|  ├── /MyDomainA
| | ├── /Contracts
@patrikengborg
patrikengborg / tailwind-rtl.js
Last active February 4, 2022 20:26
Function for Tailwind to add a custom variant plugin for RTL sites.
function ({ addVariant }) {
addVariant('rtl', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `[dir="rtl"] .rtl${separator}${className}`
})
})
}
@saranemohan
saranemohan / laravel_deploy.sh
Last active December 7, 2023 05:57
Deploy laravel with ease. using command line, integrate latest update from git remote repository. all necessary steps to be followed for laravel is implemented. a log file is recorded for future reference.
#!/bin/bash
mkdir -p deploy_log
file_name=deploy_log/deploy_$(date "+%Y_%m_%d_%H_%M_%S")
echo 'Deployment Started . . . . .' |& tee $file_name
chown -R www-data:www-data storage/
chmod -R 777 storage/
chown -R www-data:www-data bootstrap/cache/
@ux-powered
ux-powered / .eslintignore
Last active November 16, 2020 22:08
Appwork + NUXT Guide
bower_components/
build/Release/
node_modules/
jspm_packages/
typings/
.next/
.nuxt/
dist/
/vendor/libs/**/*.js
@nagi1
nagi1 / Envoy.blade.php
Created April 18, 2021 20:55
Envoy script to achieve zero downtime deployment. see https://ahmednagi.com/laravel-deploy-bitbucket
@servers(['web' => $user.'@'.$host,'localhost' => '127.0.0.1'])
@setup
// Sanity checks
if (empty($host)) {
exit('ERROR: $host var empty or not defined');
}
if (empty($user)) {
exit('ERROR: $user var empty or not defined');
}