- Update HISTORY.md
- Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be minor or major)
bumpversion patch
| { | |
| if (NR == 1) { | |
| split($0, tags); | |
| if (EC == "") EC = "\""; | |
| } | |
| else { | |
| split($0, vals); | |
| jrec = "{"; | |
| for (i = 1; i <= NF; ++i) { | |
| if (vals[i] ~ /[^0-9.]/) |
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
| <?php | |
| /** | |
| * Get All Photos for a Tag on Instagram | |
| */ | |
| /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | |
| $everything = array(); | |
| $access_token = 'need access token for Instagram API'; |
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
| #!/usr/bin/env python | |
| # An exponential backoff around Boto3 DynamoDB, whose own backoff eventually | |
| # fails on long multipage scans. We'd like to use this as a wrapper somehow, | |
| # see: https://gist.github.com/numberoverzero/cec21b8ca715401c5662 | |
| from time import sleep | |
| import boto3 | |
| from boto3.dynamodb.conditions import Attr |
| { | |
| "AWSEBDockerrunVersion": "1", | |
| "Image": { | |
| "Name": "<AWS_ACCOUNT_ID>.dkr.ecr.us-east-1.amazonaws.com/<NAME>:<TAG>", | |
| "Update": "true" | |
| }, | |
| "Ports": [ | |
| { | |
| "ContainerPort": "443" | |
| } |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
| // NOTE: MySQL does not support transactional DDL (https://dev.mysql.com/doc/internals/en/transactions-notes-on-ddl-and-normal-transaction.html) | |
| // You should use this with a (cool) DBMS such as PostgreSQL. | |
| module.exports = { | |
| up: (queryInterface, Sequelize) => { | |
| return queryInterface.sequelize.transaction((t) => { | |
| return Promise.all([ | |
| queryInterface.addColumn('table_name', 'column_name1', { | |
| type: Sequelize.STRING | |
| }, { transaction: t }), |