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
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 |
- 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
#!/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
<?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
server { | |
listen 80; | |
server_name wordpress.app; | |
root "/home/vagrant/Code/wordpress"; | |
index index.html index.htm index.php; | |
charset utf-8; | |
location / { |
[vCard 4.0][VCARD4] | [vCard Ontology (2006)][VCARD RDF 2006] | [vCard Ontology (2014)][VCARD RDF 2014] | [W3C PIM][W3C PIM] | [FOAF][FOAF] | [schema.org Person][SCHEMA PERSON] | [NEPOMUK Contact][NEPOMUK CONTACT] | [Portable Contacts][PORTABLE CONTACTS] | [hCard][UF HCARD] | [h-card][UF H-CARD] | [LDAP inetOrgPerson][INETORGPERSON] |
---|---|---|---|---|---|---|---|---|---|---|
Family Name | family-name | hasFamilyName | familyName | familyName | familyName | nameFamily | familyName | f |
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 | |
npm explore npm -g -- sh scripts/clean-old.sh | |
npm -g rm npm | |
curl -L https://npmjs.org/install.sh | npm_config_prefix=$(brew --prefix) sh |