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
defaults write org.vim.MacVim AppleFontSmoothing -int 0 |
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
"---------- Vundle {{{ | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() "Start Vundle plugins definition | |
Plugin 'VundleVim/Vundle.vim' "Vundle to manage Vimplugins | |
Plugin 'wincent/command-t' "Fast file navigation for VIM |
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 | |
/** | |
* @author Sahib J. Leo <sahib@sahib.io> | |
* Date: 11/24/15 8:53 AM | |
*/ | |
namespace App\Validation; | |
class RfcValidator | |
{ |
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
# Shutdown the laravel app | |
php artisan down | |
# Install new composer packages | |
composer install --no-dev --prefer-dist | |
# Cache boost configuration and routes | |
php artisan cache:clear | |
php artisan config:cache | |
php artisan route:cache |
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
namespace App\Eloquent; | |
use Ramsey\Uuid\Uuid; | |
trait UuidField | |
{ | |
/** | |
* Add a uuid to the model before persist to the data base. | |
* | |
* @param array $options |
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
export default () => { | |
return document.querySelector('meta[name="csrf-token"]').getAttribute('content'); | |
}; |
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 Sahib\Generators\Commands; | |
use File; | |
use Illuminate\Console\Command; | |
use Symfony\Component\Console\Input\InputArgument; | |
/** | |
* Class MakeViewCommand | |
* @package Sahib\Generators\Commands | |
*/ |
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 | |
/** | |
* Author: Sahib J. Leo <sahib@sahib.io> | |
* | |
* Don't forget to add "model_fallback_locale" to your config/app.php | |
* | |
*/ | |
namespace App\Support; | |
use App; |
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
sips -Z <max_size> <file/files> |
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
ffmpeg -i <input_video> -filter:v scale=-1:<new_height> -c:a copy <output_video> |