~/.ssh/config
Host githubuser.git.github.com
HostName github.com
IdentityFile ~/.ssh/id_rsa_githubuser
$ git remote add origin [email protected]:githubuser/lambda-with-typescript.git
| version: '2' | |
| services: | |
| web: | |
| image: tomcat:8 | |
| ports: | |
| - "18080:8080" | |
| networks: | |
| - back |
| git log --summary --pretty=full | less | |
| git filter-branch --commit-filter ' | |
| if [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ]; | |
| then | |
| GIT_AUTHOR_NAME="newname"; | |
| GIT_AUTHOR_EMAIL="[email protected]"; | |
| GIT_COMMITTER_NAME="newname"; | |
| GIT_COMMITTER_EMAIL="[email protected]"; | |
| git commit-tree "$@"; | |
| else |
| source ~/.nvm/nvm.sh | |
| nvm install lts/* | |
| nvm use lts/* | |
| http://docs.nativescript.org/angular/start/quick-setup | |
| npm install -g nativescript | |
| tns doctor | |
| tns create nsng --template https://github.com/NativeScript/template-hello-world-ng |
| function hm --description 'alias hm history --merge' | |
| history --merge $argv; | |
| end |
| # git | |
| set git_dirty_color red | |
| set git_not_dirty_color green | |
| function parse_git_branch | |
| set -l branch (git branch 2> /dev/null | grep -e '\* ' | sed 's/^..\(.*\)/\1/') | |
| set -l git_diff (git diff) | |
| if test -n "$git_diff" |
| head /dev/random | shasum | base64 | pbcopy |
| $ aws --region us-east-1 --profile readonly dynamodb query --table-name query_test --no-scan-index-forward --return-consumed-capacity TOTAL --max-items 1 --key-condition-expression "username = :v1" --expression-attribute-values '{ ":v1":{"S":"bob"} }' | |
| { | |
| "Count": 14, | |
| "Items": [ | |
| { | |
| "username": { | |
| "S": "bob" | |
| }, | |
| "epochtime": { | |
| "N": "14" |
~/.ssh/config
Host githubuser.git.github.com
HostName github.com
IdentityFile ~/.ssh/id_rsa_githubuser
$ git remote add origin [email protected]:githubuser/lambda-with-typescript.git
| sudo pip install --upgrade awscli | |
| sudo pip install --upgrade awsebcli | |
| aws elasticbeanstalk list-available-solution-stacks | jq .SolutionStacks[] | |
| git clone [email protected]:spray/spray-template.git | |
| cd spray-template/ | |
| $ git diff --no-prefix | |
| diff --git project/plugins.sbt project/plugins.sbt | |
| index 2a01432..f249871 100644 |
| diff --git centos-6.7-x86_64.json centos-6.7-x86_64.json | |
| index 380e0fa..2a302cd 100644 | |
| --- centos-6.7-x86_64.json | |
| +++ centos-6.7-x86_64.json | |
| @@ -141,12 +141,12 @@ | |
| "headless": "", | |
| "http_proxy": "{{env `http_proxy`}}", | |
| "https_proxy": "{{env `https_proxy`}}", | |
| - "iso_checksum": "c0c1a05d3d74fb093c6232003da4b22b0680f59d3b2fa2cb7da736bc40b3f2c5", | |
| + "iso_checksum": "9d3fec5897be6b3fed4d3dda80b8fa7bb62c616bbfd4bdcd27295ca9b764f498", |