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
App.PostRoute = App.Route.extend({ | |
renderTemplate: function() { | |
this.render('favoritePost', { // the template to render | |
into: 'posts', // the template to render into | |
outlet: 'posts', // the name of the outlet in that template | |
controller: 'blogPost' // the controller to use for the template | |
}); | |
this.render('comments', { | |
into: 'favoritePost', | |
outlet: 'comment', |
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 remote add wordpress https://github.com/WordPress/WordPress.git | |
git fetch wordpress | |
git merge wordpress/master | |
git push origin master |
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
http://stackoverflow.com/questions/5813311/no-newline-at-end-of-file | |
https://github.com/editorconfig/editorconfig/wiki/Newline-at-End-of-File-Support | |
// Set to true to ensure the last line of the file ends in a newline | |
// character when saving | |
"ensure_newline_at_eof_on_save": 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
#!/bin/sh | |
# Sublime Text 3 install with Package Control | |
# http://simonewebdesign.it/blog/install-sublime-text-3-on-fedora-20/ | |
# Run this script with: | |
# $ curl LINK_TO_THIS_SCRIPT | sh | |
curl -o ~/st3.tar.bz2 http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3059_x64.tar.bz2 |
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
// Now you can also set your registered nickname and password for freenode: | |
$ /set irc.server.freenode.sasl_username # "ReplaceThisWithYourRegisteredNickname" | |
$ /set irc.server.freenode.sasl_password # "ReplaceThisWithYourNickname'sPassword" | |
Now you should be all set to /connect freenode or /reconnect freenode. | |
$ /connect freenode | |
http://fixato.org/guides/setting_up_weechat.html |
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 docker search drupal | |
2014/05/11 13:20:03 Get http:///var/run/docker.sock/v1.11/images/search?term=drupal: dial unix /var/run/docker.sock: no such file or directory | |
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 docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |
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 clone git://github.com/imathis/octopress.git portal | |
Cloning into 'portal'... | |
remote: Reusing existing pack: 10374, done. | |
remote: Counting objects: 23, done. | |
remote: Compressing objects: 100% (22/22), done. | |
remote: Total 10397 (delta 7), reused 3 (delta 1) | |
Receiving objects: 100% (10397/10397), 2.75 MiB | 727.00 KiB/s, done. | |
Resolving deltas: 100% (4975/4975), done. | |
Checking connectivity... done. | |
$ cd portal/ |
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
2014/05/15 08:57:21 [error] 31914#0: *13543 connect() to unix:/srv/bindings/0181b7c2caqe34534qw34533453e69cd027b13556df00/run/php-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /index.php?q=user HTTP/1.0", upstream: "fastcgi://unix:/srv/bindings/0181b7c2caqe34534qw34533453e69cd027b13556df00/run/php-fpm.sock:", host: "dev-example.gotpantheon.com" | |
2014/05/15 08:57:21 [alert] 31914#0: *13546 128 worker_connections are not enough while connecting to upstream, client: unix:ded-fo, server: , request: "GET /index.php?q=user HTTP/1.0", upstream: "http://127.0.0.1:452/index.php?q=user", host: "dev-example.gotpantheon.com" |
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
674 php -S localhost:8000 | |
675 ll | |
676 cd app/ | |
677 ll | |
678 cd .. | |
679 cd public/ | |
680 ll | |
681 php -S localhost:8000 | |
682 php -l | |
683 php -i |