sudo apt-get install python3-pip
sudo pip3 install virtualenv
# This file is: ~/.ssh/config | |
# You may have other (non-CodeCommit) SSH credentials stored in this | |
# config file – in addition to the CodeCommit settings shown below. | |
# NOTE: Make sure to run [ chmod 600 ~/.ssh/config ] after creating this file! | |
# Credentials for Account1 | |
Host awscc-account1 # 'awscc-account1' is a name you pick | |
Hostname git-codecommit.us-east-1.amazonaws.com # This points to CodeCommit in the 'US East' region |
git commit --amend
The command amend
changes the latest commit by replacing with the new one. Suppose you have changes in working directory, by running git commit --amend
the new changes will be committed as replacement of the old latest commit. If there is no new changes, this command will let you change commit comment of the latest commit and save as new commit replacing old latest commit.
# undo commit
git reset --soft HEAD~1
# undo add
function getImages(uri) { | |
var request = require('request'); | |
var url = require('url'); | |
var cheerio = require('cheerio'); | |
path = require('path') | |
var fs = require('fs'); | |
request(uri, function (error, response, body) { | |
if (!error && response.statusCode == 200) { | |
$ = cheerio.load(body) |