Skip to content

Instantly share code, notes, and snippets.

@angus-ics
Last active May 11, 2016 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angus-ics/e101c0e35b362aae18958729b3b54530 to your computer and use it in GitHub Desktop.
Save angus-ics/e101c0e35b362aae18958729b3b54530 to your computer and use it in GitHub Desktop.

Android

Install an APK

adb install <path_to_apk>

Install an APK, overwriting any existing APKs.

adb install -r <path_to_apk>

Amazon EC2

Create an EC2 instance with MEAN stack and Loopback

https://docs.strongloop.com/display/SL/Amazon+EC2

Create an EC2 instance with NodeJs, NPM and MongoDB

https://github.com/SIB-Colombia/dataportal-explorer/wiki/How-to-install-node-and-mongodb-on-Amazon-EC2

SSH into your EC2 instance

ssh -i <path_to_pem> ec2-user@<ec2_amazon_dns>

Transfer file with SCP to EC2 instance

scp -i <path_to_pem> <file_to_transfer> ec2-user@<ec2_amazon_dns>:~

Heroku

Git

Add a commit with a message

Misc

Create tar archive tar -cvzf <tar_name.tgz> <target>

Unzip tar archive tar -xvzf <tar_name.tgz>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment