Open framework/yii.php file, override app() static method as follow:
<?php
class Yii extends YiiBase
{
/**
* @static| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| #!/bin/bash | |
| # ssh-multi | |
| # D.Kovalov | |
| # Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html | |
| # a script to ssh multiple servers over multiple tmux panes | |
| starttmux() { | |
| if [ -z "$HOSTS" ]; then |
This are my cheat sheets that I have compiled over the years. Tired of searching Google for the same things, I started adding the information here. As time went on, this list has grown. I use this almost everday and this Gist is the first bookmark on my list for quick and easy access.
I recommend that you compile your own list of cheat sheets as typing out the commands has been super helpful in allowing me to retain the information longer.
| Rank | Repository | Language | Stars | |
|---|---|---|---|---|
| 1 | twbs/bootstrap | JavaScript | 62111 | |
| 2 | jquery/jquery | JavaScript | 27082 | |
| 3 | joyent/node | JavaScript | 26352 | |
| 4 | h5bp/html5-boilerplate | CSS | 23355 | |
| 5 | mbostock/d3 | JavaScript | 20715 | |
| 6 | rails/rails | Ruby | 20284 | |
| 7 | FortAwesome/Font-Awesome | CSS | 19506 | |
| 8 | bartaz/impress.js | JavaScript | 18637 | |
| 9 | angular/angular.js | JavaScript | 17994 |
| Generated: Wed, 28 Jan 2015 05:59:39 GMT | |
| User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.16 Safari/537.36 | |
| Extensions: 53 | |
| - Context v0.412: https://chrome.google.com/webstore/detail/aalnjolghjkkogicompabhhbbkljnlka | |
| Sort extensions into groups and easily switch between them. | |
| - 1Password: Password Manager and Secure Wallet v4.2.5.90: https://chrome.google.com/webstore/detail/aomjjhallfgjeglblehebfpbcfeobpgk | |
| 1Password extension for Google Chrome. | |
| - Anything to QRcode v1.0.5: https://chrome.google.com/webstore/detail/calkaljlpglgogjfcidhlmmlgjnpmnmf | |
| Anything to QRcode ( absolute locally and offline, no ads ) : the url of current page, any text/image/link in the page, etc. |