This file contains hidden or 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
| *Stop the running EC2 instance | |
| *Detach its /dev/sda1 volume (let's call it volume A) | |
| *Start new t1.micro EC2 instance, using my new key pair | |
| *Attach volume A to the new micro instance, as /dev/xvdf (or /dev/sdf) | |
| *SSH to the new micro instance and mount volume A to /mnt/tmp | |
| *Copy ~/.ssh/authorized_keys to /mnt/tmp/home/ubuntu/.ssh/authorized_keys | |
| *Logout | |
| *Terminate micro instance | |
| *Detach volume A from it | |
| *Attach volume A back to the main instance as /dev/sda1 |
This file contains hidden or 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
| # A lambda (λ) prompt. | |
| # Green and red depending on exit status. | |
| # Underlined if git status is dirty. | |
| # Uppercase (Λ) if ahead of the remote. | |
| function fish_prompt | |
| if is_status_okay | |
| set_color green | |
| else | |
| set_color red |
This file contains hidden or 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
| package examples.database; | |
| import com.google.common.collect.Lists; | |
| import examples.database.dao.PeopleDAO; | |
| import examples.database.model.PeopleInfo; | |
| import org.apache.commons.lang.time.StopWatch; | |
| import org.apache.commons.logging.Log; | |
| import org.apache.commons.logging.LogFactory; | |
| import org.junit.Test; | |
| import org.junit.runner.RunWith; |
NewerOlder