- Homebrew
- Homebrew Cask
- MAS - Mac App Store CLI ⇢
brew install mas - ImageOptim
- Oh My Zsh
- Spectacle
- Sequel Pro ⇢
brew cask install sequel-pro - f.lux (Freeware, not FLOSS) ⇢
brew cask install flux - Shuttle
- Vagrant Manager
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 wordpress.app; | |
| root "/home/vagrant/Code/wordpress"; | |
| index index.html index.htm index.php; | |
| charset utf-8; | |
| location / { |
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 | |
| $words = 0; | |
| $posts = query_posts([ | |
| 'posts_per_page' => -1, | |
| 'year' => '2014', | |
| ]); | |
| foreach ($posts as $post) { | |
| $words += str_word_count($post->post_content); |
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
| #!/usr/bin/env sh | |
| ############################################################################### | |
| # Finder | |
| ############################################################################### | |
| echo "" | |
| echo "Showing all filename extensions in Finder by default" | |
| defaults write NSGlobalDomain AppleShowAllExtensions -bool true |
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
| s/biblio:Paper/schema:ScholarlyArticle/g | |
| s/bibo:shortTitle/schema:alternateName/g | |
| s/cal:dtend/schema:endDate/g | |
| s/cal:dtstart/schema:startDate/g | |
| s/cal:location/schema:location/g | |
| s/cal:Vevent/schema:Event/g | |
| s/cc:license/schema:license/g | |
| s/dcterms:abstract/schema:abstract/g | |
| s/dcterms:contributor/schema:contributor/g | |
| s/dcterms:creator/schema:creator/g |
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 | |
| /** | |
| * Render an exception into a JSON HTTP response. | |
| * | |
| * @param \Exception $e | |
| * @return \Illuminate\Http\Response | |
| */ | |
| public static function renderJson(Exception $e) | |
| { |
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 | |
| /** | |
| * Render an exception into an HTTP response. | |
| * | |
| * @param \Illuminate\Http\Request $request | |
| * @param \Exception $e | |
| * @return \Illuminate\Http\Response | |
| */ | |
| public function render($request, Exception $e) |
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 | |
| /** | |
| * Render an exception into an HTTP response. | |
| * | |
| * @param \Illuminate\Http\Request $request | |
| * @param \Exception $e | |
| * @return \Illuminate\Http\Response | |
| */ | |
| public function render($request, Exception $e) |