This file contains hidden or 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
| PX | REM | TW | |
|---|---|---|---|
| 4 | 0.25 | 1 | |
| 8 | 0.5 | 2 | |
| 16 | 1 | 4 | |
| 32 | 2 | 8 | |
| 48 | 3 | 12 | |
| 64 | 4 | 16 | |
| 80 | 5 | 20 | |
| 96 | 6 | 24 | |
| 112 | 7 | 28 |
This file contains hidden or 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
| apt-get update | |
| apt-get install php-imagick | |
| service php7.0-fpm restart | |
| service nginx restart |
This file contains hidden or 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
| git filter-branch --tree-filter 'rm -rf path/to/your/file' HEAD |
This file contains hidden or 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
| sudo rm -rf /usr/local/Homebrew/ | |
| sudo rm -rf /usr/local/var/homebrew/ | |
| sudo rm -rf /usr/local/Cellar/php71/ | |
| sudo rm -rf /usr/local/include/php/ | |
| sudo rm -rf ~/.valet | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| brew install homebrew/php/php71 |
This file contains hidden or 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
| @if (count($errors) > 0) | |
| <div class="alert alert-danger text-left"> | |
| <strong>Whoops!</strong> There were problems with input: | |
| <br><br> | |
| <ul> | |
| @foreach ($errors->all() as $error) | |
| <li>{{ $error }}</li> | |
| @endforeach | |
| </ul> | |
| </div> |
This file contains hidden or 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
| ### Aliases | |
| # Open specified files in Sublime Text | |
| # "s ." will open the current directory in Sublime | |
| alias subl='open -a "Sublime Text"' | |
| alias phpini='cd /usr/local/etc/php/7.1; subl php.ini' | |
| # Color LS |
This file contains hidden or 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
| $usage = DB::table('styles') | |
| ->select( | |
| DB::raw('count(id) as `total_created`'), | |
| DB::raw("DATE_FORMAT(created_at, '%d-%m-%Y') new_date"), | |
| DB::raw(' | |
| YEAR(created_at) year, | |
| MONTH(created_at) month, | |
| DAY(created_at) day') | |
| ) | |
| ->groupby('year','month','day') |
This file contains hidden or 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
| add_action('set_current_user', 'cc_hide_admin_bar'); | |
| function cc_hide_admin_bar() { | |
| if (!current_user_can('edit_posts')) { | |
| show_admin_bar(false); | |
| } | |
| } |
This file contains hidden or 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
| function admin_default_page() { | |
| return '/new-dashboard-url'; | |
| } | |
| add_filter('login_redirect', 'admin_default_page'); |
This file contains hidden or 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
| PATH=~/.composer/vendor/bin:$PATH | |
| export PATH=$PATH:~/bin | |
| alias show_files='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app' | |
| alias hide_files='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app' | |
| alias copykey='cat ~/.ssh/github_rsa.key | pbcopy' | |
| alias c='clear' |