Skip to content

Instantly share code, notes, and snippets.

View iFeras93's full-sized avatar
🎯
Focusing

Feras Mohamed iFeras93

🎯
Focusing
View GitHub Profile
@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
@razarahil
razarahil / html-meta-tags.md
Last active November 21, 2020 20:09
Basic HTML Meta Tags

List of Basic HTML Meta Tags You should use for SEO & Social Media

<meta charset='UTF-8'>

<meta name='copyright' content='company name'>

<meta name='language' content='ES'>
@DeepakRattan
DeepakRattan / Bean.java
Created March 29, 2016 11:00
Filtering ListView using Filterable interface
package com.almabay.filterlistdemo;
/**
* Created by deepakr on 3/29/2016.
*/
public class Bean {
String name, age;
public Bean(String name, String age) {
this.name = name;
@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}`
})
})
}
@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');
}
@muzfr7
muzfr7 / index.html
Last active May 31, 2023 11:37
Restrict user from typing Non-Arabic characters in input fields using Javascript / JQuery
<html>
<head></head>
<body>
<form>
<input id="candidate_firstname" name="firstname" required="required" class="gui-input" dir="rtl" type="text" />
<input id="candidate_lastname" name="lastname" required="required" class="gui-input" dir="rtl" type="text" />
</form>
<script type="text/javascript">
function restrictInputOtherThanArabic($field)
@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
@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/
@bennylope
bennylope / ffmpeg-watermark.md
Created April 22, 2016 23:17 — forked from webkader/ffmpeg-watermark.md
FFmpeg add a watermark to video

How to Add a Watermark to Video

FFMPEG filters provide a powerful way to programmatically enhance or alter videos, and it’s fairly simple to add a watermark to a video using the overlay filter. The easiest way to install ffmpeg is to download a pre-built binary for your specific platform. Then you don’t have to worry about including and installing all the right dependencies and codecs you will be using.

Once you have ffmpeg installed, adding a watermark is as easy as passing your existing source through an overlay filter like so:

ffmpeg -i test.mp4 -i watermark.png -filter_complex "overlay=10:10" test1.mp4

Basically, we’re passing in the original video, and an overlay image as inputs, then passing it through the filter, and saving the output as test1.mp4.