xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| - WiNSXS cleanup: Get-WindowsFeature | Where-Object {$_.InstallState -Eq “Available”} | Uninstall-WindowsFeature -Remove |
| /** | |
| Fetch an article based on its ID: | |
| Fields required: | |
| - Type | |
| - Title | |
| - Description | |
| - Thumbnail | |
| - Published time | |
| - Modified time |
| /** | |
| Fetch a page based on its ID: | |
| Fields required: | |
| - Title | |
| - Description | |
| - Thumbnail | |
| - Section/category | |
| TODO: On the where clause, specify page ID |
| <?php | |
| /** | |
| * Pagination with separators | |
| * | |
| * @see http://stackoverflow.com/posts/6354523/revisions | |
| * | |
| * @param $current_page | |
| * @param $total_pages | |
| * @param int $show_separator_if_more_than | |
| * @param string $separator |
| #!/bin/sh | |
| ### IMPORTANT: Run this command as sudo ### | |
| ### Sample steps ### | |
| # 1. `vagrant ssh` into your machine | |
| # 2. Run `curl http://[raw-url-to-this-script.sh] | sudo sh | |
| ### VARS (Change values as needed) ### | |
| XDEBUG_IS_INSTALLED_PATTERN="xdebug.remote_enable=1" |
| { | |
| "variables": [], | |
| "info": { | |
| "name": "Mongoblog", | |
| "_postman_id": "b3c8aae5-ae6a-7e2c-e602-68b704121213", | |
| "description": "", | |
| "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
| }, | |
| "item": [ | |
| { |
| # cd into the app directory | |
| cd <path-to-app> | |
| # Enter the tinker REPL | |
| php artisan tinker | |
| # Run the simple command and check your inbox |
| #!/bin/sh | |
| # - `chmod 777 debug.sh` to make it executable | |
| # - Put this file on your `/usr/bin` dir so you can call it anywhere | |
| # - Rename it to `debug` | |
| # - Change variables as needed | |
| # Usage: debug php artisan | |
| PHP_IDE_CONFIG="serverName=vagrant" \ |