This file has been truncated, but you can view the full file.
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
| /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
| /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
| /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
| /*!40101 SET NAMES utf8 */; | |
| /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | |
| /*!40103 SET TIME_ZONE='+00:00' */; | |
| /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | |
| /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | |
| /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | |
| /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
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
| -- | |
| -- | |
| -- MySQL tables used to run the Editor examples. | |
| -- | |
| -- For more information about how the client and server-sides interact, please | |
| -- refer to the Editor documentation: http://editor.datatables.net/manual . | |
| -- | |
| -- | |
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
| export FORMAT="ID\t{{.ID}}\nNAME\t{{.Names}}\nIMAGE\t{{.Image}}\nPORTS\t{{.Ports}}\nCOMMAND\t{{.Command}}\nCREATED\t{{.CreatedAt}}\nSTATUS\t{{.Status}}\n" | |
| // usage: | |
| docker ps --format="$FORMAT" |
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
| server { | |
| listen 80; | |
| server_name my.domain.com; | |
| root /opt/production/my-web; | |
| index index.php; | |
| rewrite_log on; | |
| #access_log /var/log/nginx/access.log; | |
| #error_log /var/log/nginx/error.log; |
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
| // the format is | |
| // //{description} | |
| // {snippet} | |
| // {sample output} | |
| // display right arrow | |
| >` | |
| → | |
| // display left arrow |
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
| /* | |
| This document has been created with Marked.app <http://marked2app.com> | |
| Please leave this notice in place, along with any additional credits below. | |
| --------------------------------------------------------------- | |
| Title: Ulysses Freestraction Light | |
| Author: Jonathan Poritsky <http://candlerblog.com> | |
| Description: Based on the Freestraction color scheme used in Ulysses III <http://www.ulyssesapp.com>. | |
| For more information read the introductory post: http://candlerblog.com/2013/04/11/ulysses-iii-and-marked/ | |
| */ |
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
| <?php | |
| function diffTo($toTime) | |
| { | |
| $now = strtotime('now'); | |
| $next = strtotime('today ' . $toTime); | |
| if($next <= $now){ | |
| $next = strtotime('tomorrow ' . $toTime); | |
| } |
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
| var populateInputValues = function(o) { | |
| $.each(o, function(name, val){ | |
| $('input[name="' + name + '"]').val(val); | |
| }); | |
| } | |
| // sample usage via laravel blade | |
| <script type="text/javascript"> | |
| populateInputValues({!! json_encode(request()->all()) !!}); | |
| </script> |
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
| # install brew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # <- see: http://brew.sh | |
| # before `brew`-ing everything else | |
| brew update && brew doctor | |
| # quicklook plugins | |
| brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzipql qlimagesize webpquicklook suspicious-package | |
| brew install zsh-syntax-highlighting |