create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| In the interest of allowing you to run `nginx` without `sudo`, the default | |
| port is set to localhost:8080. | |
| If you want to host pages on your local machine to the public, you should | |
| change that to localhost:80, and run `sudo nginx`. You'll need to turn off | |
| any other web servers running port 80, of course. | |
| You can start nginx automatically on login running as your user with: | |
| mkdir -p ~/Library/LaunchAgents | |
| cp /usr/local/Cellar/nginx/1.2.3/homebrew.mxcl.nginx.plist ~/Library/LaunchAgents/ |
This needs the AnyEdit plugin installed on Eclipse.
The simple steps are:
sed -i "s|$old|$new|g" /etc/myconfig
This may use the utility 'rename', in case not installed(OS X), install it using:
$ brew install rename
==> Downloading http://plasmasturm.org/code/rename/rename
######################################################################## 100.0%
==> pod2man rename rename.1
/usr/local/Cellar/rename/0.1.3: 3 files, 28K, built in 6 seconds
| for field in field_hazard field_issue field_reference_msg field_sector; do drush field-delete $field -y; done |
Apache Solr is available at <mirror.nexcess.net/apache/lucene/solr/3.6.1/>
References:
| #!/bin/bash | |
| # author: Duane Johnson | |
| # email: [email protected] | |
| # date: 2008 Jun 12 | |
| # license: MIT | |
| # | |
| # Based on discussion at http://kerneltrap.org/mailarchive/git/2007/11/12/406496 | |
| pushd . >/dev/null |
| #Suppose the Xcode (v4.3x) is installed at the default location, then: | |
| ## 1. Use this command to directly open it: | |
| open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app | |
| ## 2. Create an alias for later quick access: | |
| echo "alias ios-simulater='open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app'" >> ~/.bash_profile; source ~/.bash_profile |
| /** | |
| * Round a number to a specified decimal place. | |
| * @var num The number to be rounded | |
| * @var digits The digit behind the decimal point to be rounded to | |
| */ | |
| function roundNumber(num, digits) { | |
| num = parserFloat(num); | |
| var multiple = Math.pow(10, digits); | |
| return Math.round(num * multiple) / multiple; |