Set the base image to Ubuntu must be first instruction - use docker search to find images
FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)
Set the maintainer info
1. Change your database RDS instance security group to allow your machine to access it. | |
* Add your ip to the security group to acces the instance via Postgres. | |
2. Make a copy of the database using pg_dump | |
* ```$ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>``` | |
* you will be asked for postgressql password. | |
* a dump file(.sql) will be created | |
3. Restore that dump file to your local database. | |
* but you might need to drop the database and create it first | |
* ```$ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>``` | |
* the database is restored |
// Use this code snippet in your app. | |
// If you need more information about configurations or implementing the sample code, visit the AWS docs: | |
// https://aws.amazon.com/developers/getting-started/nodejs/ | |
// Load the AWS SDK | |
var AWS = require('aws-sdk'), | |
region = "us-east-1", | |
secretName = "project-name-api-key", | |
secret, | |
decodedBinarySecret; |
Set the base image to Ubuntu must be first instruction - use docker search to find images
FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)
Set the maintainer info
### Keybase proof | |
I hereby claim: | |
* I am daxdax89 on github. | |
* I am daxdax89 (https://keybase.io/daxdax89) on keybase. | |
* I have a public key ASBWE42qcuUe_9rrXmIJlsfYtPpjZwLJVQS3dYrsO1P-2wo | |
To claim this, I am signing this object: |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^index\.php$ - [L] | |
RewriteRule (.*) ./index.php?id=$1 [L] | |
</IfModule> |
@mixin hover-active { | |
&:hover { | |
.no-touch & { | |
@content; | |
} | |
} | |
&:active { | |
.touch & { | |
@content; | |
} |
Steps-- | |
1. Connect ssh to ec2 instance. | |
2. Become the super user after executing the command | |
sudo -s | |
3. Type the following commands to install vncserver: | |
sudo apt-get install ubuntu-desktop |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Javascript libraries | |
Particles.js — A library for creating beautiful floating particles on a web page | |
Three.js — A library for creating 3d objects and spaces on a web page | |
Fullpage.js — Easy to implement full page scroll feature | |
Typed.js — Typewriter effect | |
Waypoints.js — Trigger a function when you scroll to an element |