- ALT+SHIFT+W To wrap your selected content with a html tag, just selected your text, then press Alt-Shift-W. You'll then have the option to fill in the front and back tag simultaneously. https://coderwall.com/p/d1qphg
- CMD+L Select current line.
- CMD+X Delete line.
- CMD+R Go to method
- CMD+P ":121" go to specific line number
- CMD+P file:n go to specific line number in file
- CMD+P file@method go to specific method in file
- CMD+SHIFT+D Duplicate current line
This file contains 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 | |
(on branch development)$ git merge master | |
(resolve any merge conflicts if there are any) | |
git checkout master | |
git merge develop (there won't be any conflicts now) | |
This file contains 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
//After installing apache2 run this command $sudo a2enmod rewrite | |
//Add in .htaccess RewriteBase /pathe/to/project/ | |
.htaccess{ | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
#RewriteBase /public_html/ | |
RewriteBase /pathe/to/project/ | |
#RedirectMatch ^/(.*) http://localhost/$1 |
This file contains 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
Prereq: | |
apt-get install zsh | |
apt-get install git-core | |
Getting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh | |
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh | |
and then you change your shell to zsh | |
chsh -s `which zsh` |
This file contains 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
Mavericks & Show Hidden Files | |
I noticed this because part of my postflight imaging task for my lab systems is to show all files, but in Mavericks, the com.apple.finder defaults domain is case sensitive. So if you have com.apple.Finder you’ll need to edit it in such a workflow. So, for example, if you need to see hidden files, use the following commands: | |
defaults write com.apple.finder AppleShowAllFiles -boolean true | |
killall Finder | |
The problem with seeing hidden files is that you see a lot of stuff that you really probably don’t want to see. So to get back to a state where you don’t have to see all of the invisible files, use the following commands: | |
defaults delete com.apple.finder AppleShowAllFiles | |
killall Finder |
This file contains 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
Installing PEAR on OSX 10.9 Mavericks and OSX10.8/10.7 | |
PEAR is a poplular PHP package manager, it doesn't come by default on OSX, how to install PEAR on OSX 10.9 Mavericks and earlier versions of OSX. | |
Check if you have it | |
pear version | |
If not, move into: | |
cd /usr/local |
This file contains 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
How to run Xdebug on Mac OSX using MAMP | |
1 Start MAMP | |
2 Edit php.ini template file through MAMP to enable the extension. Edit the template file via File -> Edit Template -> PHP -> PHP [php version you are using] php.ini | |
edit php.ini template for mamp on mac osx | |
3 Edit bottom of php.ini template file so that it ends up looking like if you want profile output | |
[xdebug] | |
zend_extension="/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so" | |
xdebug.profiler_enable = 1 | |
xdebug.profiler_output_dir = "/tmp" | |
; DONT REMOVE: MAMP PRO php5.3.6.ini template compatibility version: 1 |
This uses Twitter Bootstrap classes for CodeIgniter pagination.
Drop this file into application/config
.
This file contains 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://linux.die.net/man/1/git-svn | |
git svn clone http://yoursvnserver/svn --username vcsjones | |
#make some changes | |
git add -A | |
#stage your changes. add -A stages all changes; | |
#you can stage individial files too or use git add -i for interactive adding | |
git commit -m "My commit messages" |
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
iTerm2 http://www.iterm2.com/
OlderNewer