Open terminal
sudo add-apt-repository ppa:webupd8team/sublime-text-2 sudo apt-get update sudo apt-get install sublime-text
| <snippet> | |
| <content><![CDATA[ | |
| // ${1} Resource | |
| Route::get('${1}s', array('as' => '${1}s', 'uses' => '${1}s@index')); | |
| Route::get('${1}s/(:any)', array('as' => '${1}', 'uses' => '${1}s@show')); | |
| Route::get('${1}s/new', array('as' => 'new_${1}', 'uses' => '${1}s@new')); | |
| Route::get('${1}s/(:any)/edit', array('as' => 'edit_${1}', 'uses' => '${1}s@edit')); | |
| Route::post('${1}s', '${1}s@create'); | |
| Route::put('${1}s/(:any)', '${1}s@update'); | |
| Route::delete('${1}s/(:any)', '${1}s@destroy'); |
| <?php | |
| $mysql_host = 'localhost'; | |
| $mysql_user = ''; | |
| $mysql_pass = ''; | |
| $mysql_base = 'wordpress_database'; | |
| $old_domain = 'http://blog.gbaptista.com'; | |
| $new_domain = 'http://local.blog.gbaptista.com'; |
| -- Step 1 Add the user | |
| -- Change db_wordpress to DB name | |
| -- Change wp_ to your table prefix | |
| -- Change username, pass, nicename, email, url, displayname and pass to your new user info | |
| -- Change date to whenever you want the registered date to be | |
| INSERT INTO `db_wordpress`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES (NULL, 'username', MD5('pass'), 'nicename', 'email', 'url', '2010-10-08 00:00:00', '', '0', 'displayname'); | |
| -- Step 2 Add permissions | |
| -- Find the userid that was just created (int) | |
| -- Replace id with the user id | |
| INSERT INTO `db_wordpress`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, 'id', 'wp_capabilities', 'a:1:{s:13:"administrator";b:1;}'); |
| <a href="javascript:void(0)" class="backtotop">Back to Top</a> | |
| <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script> | |
| <script type='text/javascript'> jQuery('.backtotop').click(function(){ jQuery('html, body').animate({scrollTop:0}, 'slow'); }); </script> |
| $(function() { | |
| var html = $('html, body'), | |
| results = $('results'), | |
| domainPing = $('#domain-ping'); | |
| $('#search').on('submit', function() { | |
| // Scroll to result area on form submit | |
| html.delay(1100).animate({ |
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
First of all clone a git repo to a local directory.
git clone [email protected]:username/repo.git localFolder
| # laravel new-app | |
| alias laravel="git clone -o laravel -b develop https://github.com/laravel/laravel.git" | |
| alias artisan="php artisan" | |
| alias migrate="php artisan migrate" | |
| alias serve="php artisan serve" | |
| alias dump="php artisan dump" | |
| alias t="phpunit" | |
| # Generators Package |
| var gotoHashTab = function (customHash) { | |
| var hash = customHash || location.hash; | |
| var hashPieces = hash.split('?'), | |
| activeTab = $('[href=' + hashPieces[0] + ']'); | |
| activeTab && activeTab.tab('show'); | |
| } | |
| // onready go to the tab requested in the page hash | |
| gotoHashTab(); |