General

    How to give SSH Key access to user on Amazon EC2 Server

    To add ssh key access to users on Amazon EC2 follow these steps Note: upload user public key file in .ssh/id_rsa.pub 1. Add New User: useradd -c "Mohit Sharma" mohit 2. Navigate to user directory: cd /home/mohit 3. Create .ssh directory: mkdir .ssh 4. Give Permission: chmod 700 .ssh 5. Set Diretory Group and Onwer Permission: chown user:user .ssh 6. Write uploaded key to authorized_keys: cat id_rsa.pub >> .ssh/authorized_keys 7. Give Permission: chmod 600 .ssh/authorized_keys 8.

    How to use amazon smtp with phpmailer ?

    To use amazon smtp in php using php mailer follow the steps below.

    How to install mavericks on osx from bootable usb. Mac bootable usb

    To install mavericks from bootable usb check here

    https://discussions.apple.com/message/23615133#23615133

    Plug in 8gb pendrive

    download mavericks in app store then

    sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction

    its will take 30 mins and your bootable mavericks usb is ready!!

    How to add/remove remote git repositiory

    To add remote origin to repository Open terminal:
    cd repo_directory
    git remote add origin git@github.com:testcomp/testing.git
    git push origin master
    To remove remote from repository:
    $: git remote -v // Will list remote urls
    # origin  git@github.com:testcomp/testing.git (fetch)
    # origin  git@github.com:testcomp/testing.git (push)

    $: git remote rm origin

    $: git remote -v // Will list nothing now

    How to show hide hidden files in mac ox

    To show hidden files type following command in terminal

    defaults write com.apple.finder AppleShowAllFiles -bool true

    To hide files again type below command in terminal

    defaults write com.apple.finder AppleShowAllFiles -bool false

    After executing these commands logout and login again to restart the finder

    How to convert xlsx to xls online

    You can convert xlsx to xls online on following website please select and upload file then select the converted format enter your email id the converted file download link sent to the mail

    http://www.zamzar.com/

    How to show flash content in various browsers

    Replace myvideo.swf with the path to you flash movie if you have to display youtube video simply replace myvideo.swf with video path Download Flash Player

    How to show twitter followers using php code

    Use the following code to show the followers list you can theme your output by using suitable HTML inside foreach()

    How to use SVN?

    Check it on the following link

    http://svnbook.red-bean.com/en/1.1/ch04s04.html