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
[alias] | |
st = status | |
br = branch | |
chp = cherry-pick | |
cht = checkout | |
#Push tag's to remote repo. Example pushtag origin | |
pushtag = !sh -c 'git push $1 --tags' - | |
#Fetch tag's from remote repo. Example fetchtag origin |
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. git reflog | |
git reset SHA1 | |
git reset HEAD@{5} | |
git reset HEAD~5 | |
git reset HEAD@{yesterday} | |
git reset HEAD@{2.months.ago} | |
b. git log -g |
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
git diff <new commit> <old commit> | git apply | |
git commit -am 'Text commit' | git push |
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
Move cursor down one line j Basic | |
Move cursor up one line k Basic | |
Move cursor left one character h Basic | |
Move cursor right one character l Basic | |
Return to Normal mode <ESC> | |
(escape) Basic | |
Exit the editor, discarding any changes :q!<ENTER> Basic | |
Exit the editor, but abort if there are unsaved changes :q<ENTER> Basic | |
Delete the character under the cursor x Basic | |
Insert text before the cursor i Basic |
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
import json | |
import uuid | |
import logging | |
from common.utils import mixutil | |
import locust | |
import gevent | |
import gevent.lock | |
import gevent.event |
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
git show-branch | grep "*" | grep -v "$(git rev-parse --abbrev-ref HEAD)" | head -n1 | sed "s/.*\[\(.*\)\].*/\1/" | sed "s/[\^~].*//" |
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
--- | |
driver: | |
name: ec2 | |
aws_ssh_key_id: Key_pair_name | |
availability_zone: us-east-1d | |
shared_credentials_profile: default | |
transport: | |
ssh_key: <%= ENV['AWS_VAGRANT_SSH_KEY'] %> | |
associate_public_ip: true |