- 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
# Editor backup files | |
*.bak | |
*~ |
license: gpl-3.0 |
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
#!/bin/bash | |
# Performs a "safe" merge, confirming the commits to be merged, the merge | |
# strategy, any conflicts, etc. | |
# Useage: | |
# $ git safemerge master | |
# Commits: | |
# * bc911ef Fix bug in widget | |
# * e80f8d1 Clean things up | |
# | |
# Changes: |
#!/bin/bash | |
# relays and shell commands, but swallows any errors and always returns with | |
# an exit status of 0 | |
# | |
# Useful when docker 'RUN' command receives error codes when installing | |
# applications that can be ignored | |
# | |
# TODO: if the first arg starts with '-', then only filter using those | |
# codes. IE: arg1="-100,101". In this case we will swallow any 100,101 | |
# error codes, but nothing else so any other error codes will still get |
from PIL import Image, ImageDraw, ImageFont | |
# get an image | |
base = Image.open('Pillow/Tests/images/lena.png').convert('RGBA') | |
# make a blank image for the text | |
txt = Image.new('RGBA', base.size) | |
# get a font | |
fnt = ImageFont.truetype('Pillow/Tests/fonts/FreeMono.ttf', 40) | |
d = ImageDraw.Draw(txt) # drawing context |
PEP: XXXX | |
Title: Implement package signing in PyPI, pip, distutils | |
Version: $Revision$ | |
Last-Modified: $Date$ | |
Author: Giovanni Bajo <[email protected]> | |
Status: Draft | |
Type: Process | |
Content-Type: text/x-rst | |
Created: 25-Jul-2014 | |
Post-History: XX-XXX-XXXX |
#!/bin/sh | |
set -e | |
set -x | |
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3) | |
do | |
npm -g install "$package" | |
done |
You got your hands on some data that was leaked from a social network and you want to help the poor people.
Luckily you know a government service to automatically block a list of credit cards.
The service is a little old school though and you have to upload a CSV file in the exact format. The upload fails if the CSV file contains invalid data.
The CSV files should have two columns, Name and Credit Card. Also, it must be named after the following pattern:
YYYYMMDD
.csv.