- 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
| #Copyright (c) 2010-2013 Samuel Sutch [samuel.sutch@gmail.com] | |
| # | |
| #Permission is hereby granted, free of charge, to any person obtaining a copy | |
| #of this software and associated documentation files (the "Software"), to deal | |
| #in the Software without restriction, including without limitation the rights | |
| #to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| #copies of the Software, and to permit persons to whom the Software is | |
| #furnished to do so, subject to the following conditions: | |
| # | |
| #The above copyright notice and this permission notice shall be included in |
| import scala.concurrent.Await | |
| import scala.concurrent.ExecutionContext | |
| import scala.concurrent.Future | |
| import scala.concurrent.blocking | |
| import scala.concurrent.duration.Deadline | |
| import scala.concurrent.duration.Duration | |
| import scala.concurrent.duration.DurationInt | |
| import scala.concurrent.duration.DurationLong | |
| import scala.concurrent.future | |
| import scala.concurrent.promise |
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
| import code; code.interact(local=dict(globals(), **locals())) |
| class GzipBuffer(object): | |
| def __init__(self): | |
| self.len = 0 | |
| self.buffer = io.BytesIO() | |
| self.writer = gzip.GzipFile(fileobj=self.buffer, mode='wb') | |
| def append(self, thing): | |
| self.len += 1 | |
| self.writer.write(thing) |
UNLOGGED table. This reduces the amount of data written to persistent storage by up to 2x.WITH (autovacuum_enabled=false) on the table. This saves CPU time and IO bandwidth
on useless vacuuming of the table (since we never DELETE or UPDATE the table).COPY FROM STDIN. This is the fastest possible approach to insert rows into table.time timestamp with time zone is enough.synchronous_commit = off to postgresql.conf.| # Make sure you grab the latest version | |
| curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip | |
| # Unzip | |
| unzip protoc-3.2.0-linux-x86_64.zip -d protoc3 | |
| # Move protoc to /usr/local/bin/ | |
| sudo mv protoc3/bin/* /usr/local/bin/ | |
| # Move protoc3/include to /usr/local/include/ |
| // Client-side parser for .npy files | |
| // See the specification: http://docs.scipy.org/doc/numpy-dev/neps/npy-format.html | |
| var NumpyLoader = (function () { | |
| function asciiDecode(buf) { | |
| return String.fromCharCode.apply(null, new Uint8Array(buf)); | |
| } | |
| function readUint16LE(buffer) { | |
| var view = new DataView(buffer); | |
| var val = view.getUint8(0); |
| #!/usr/bin/env python | |
| #-*- coding: utf-8 -*- | |
| # RescueTime Data Exporter | |
| # Dan Nixon | |
| # 18/09/2011 | |
| # forked from Chris Burgess (xurizaemon) | |
| import urllib | |
| import datetime |