This file contains 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 | |
# rights @ https://gist.github.com/sauljabin/21be4f221e6080e76b3e | |
# CONST 1GB | |
CONST_1GB="1024*1024*1024" | |
# VARIABLE WORKERS |
This file contains 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 | |
x-www-browser $(xargs -0 $xargs | base64 -w0 - | cat <(echo -n "data:text/html;charset=UTF-8;base64,") -) |
This file contains 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
create | |
definer = m7md@`%` procedure FilteredData() | |
BEGIN | |
DECLARE bDone INT; | |
DECLARE f_id int; | |
DECLARE f_name_ar varchar(255); | |
DECLARE f_name_en varchar(255); | |
DECLARE f_main_category_id int; | |
DECLARE f_sub_category_id int; |
This file contains 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
" Specify a directory for plugins | |
" - For Neovim: ~/.local/share/nvim/plugged | |
" - Avoid using standard Vim directory names like 'plugin' | |
call plug#begin('~/.local/share/nvim/plugged') | |
" Make sure you use single quotes | |
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align | |
Plug 'junegunn/vim-easy-align' |
This file contains 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 | |
/* For more details see: http://laraget.com/blog/select2-and-laravel-ajax-autocomplete */ | |
namespace App\Http\Controllers\Select2Ajax; | |
use App\Tag; | |
use Illuminate\Http\Request; | |
use App\Http\Requests; | |
use App\Http\Controllers\Controller; | |
class TagController extends Controller |
This file contains 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
#alias mysql="/opt/lampp/bin/mysql" | |
#alias php="/opt/lampp/bin/php" | |
#alias composer="php ~/composer.phar" | |
#alias xampp="sudo /opt/lampp/xampp" | |
#alias cd_htdocs="cd /opt/lampp/htdocs" | |
alias phpserver="php -S localhost:8888 -t ." | |
alias art="php artisan " | |
alias arts="php artisan serve" | |
alias artm="php artisan migrate" |
This file contains 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 | |
# Bash script to install latest version of ffmpeg and its dependencies on Centos | |
# Inspired from https://trac.ffmpeg.org/wiki/CompilationGuide/Centos | |
# Get the dependencies: | |
sudo yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel | |
mkdir ~/ffmpeg_sources | |
This file contains 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 | |
/** | |
* Description of VideoStream | |
* | |
* @author Rana | |
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
*/ | |
class VideoStream | |
{ | |
private $path = ""; |
This file contains 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; | |
/** | |
* Description of VideoStream | |
* | |
* @author Rana | |
* @link https://gist.github.com/vluzrmos/d5682ad426525196d069 | |
*/ |
This file contains 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
udo apt-get update | |
sudo apt-get install libmagickwand-dev | |
wget http://pecl.php.net/get/imagick-3.0.1.tgz343 | |
tar -zxvf imagick-3.0.1.tgz | |
cd imagick-3.0.1 |
NewerOlder