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
class Agent | |
# This will already be implemented and is not part of this exercise | |
def initialize; end | |
# This will return the amount (integer) by which the agent wants to increase its bid | |
# (i.e. how much they want to add onto their bid as it stands so far) | |
# This will already be implemented and is not part of this exercise | |
def get_bid_increase; end | |
end |
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
credit to https://github.com/mdkrog | |
git checkout development | |
git pull origin development | |
git checkout your-local-branch | |
git rebase -i development | |
git push -f origin your-local-branch | |
git checkout development | |
git merge your-local-branch --ff-only | |
git push origin development |
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
# soft delete | |
git branch -d -r remote_name/branch_name | |
# hard delete | |
git push origin :branchname |
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
bundle clean --force |
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
du -h --max-depth=1 | sort -hr |
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 branch -D `git branch | grep 'ard_*'` |
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 log --all --pretty=format:'%h %cd %s (%an)' --since='7 days ago' | |
git log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short | |
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
Dump: | |
mysqldump -u USERNAME -p PASSWORD DBTODUMP > /path/to/DUMPFILE.sql | |
Import: | |
mysql -u USERNAME -p PASSWORD DBTOIMPORTTO < /path/to/DUMPFILE.sql/ |
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
SELECT FROM INFORMATION_SCHEMA.COLUMNS | |
SELECT TABLE_NAME, COLUMN_NAME | |
FROM INFORMATION_SCHEMA.COLUMNS |