GitTips

See also:

Table of contents:

How to fix the most recent commit
Git allows you to easily fix up the most recent commit you’ve made on a branch with the –amend option:
For example the following command will allow you to alter the commit message at the top of current head:

$ git commit –amend

while

$ git commit -s –amend

will let you alter the commit message and will also automatically add a sign-off message for you.

How to change commits deeper in history
Since history in Git is immutable, fixing anything but the most recent commit (commit which is not branch head) requires that the history is rewritten from the changed commit and forward.
You can use StGIT for that, initialize branch if necessary, uncommitting up to the commit you want to change, pop to it if necessary, make a change then refresh patch (with -e option if you want to correct commit message), then


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/hasubywk2uY/GitTips

Original article

Go 1.7 is released

Go 1.7 is released
15 August 2016

Today we are happy to announce the release of Go 1.7.

You can get it from the download page.

There are several significant changes in this release: a port for

Linux on IBM z Systems (s390x),

compiler improvements, the addition of the context package,

and support for hierarchical tests and benchmarks.

A new compiler back end, based on static single-assignment form (SSA),

has been under development for the past year.

By representing a program in SSA form, a compiler may perform advanced optimizations more easily.

This new back end generates more compact, more efficient code that includes

optimizations like

bounds check elimination and

common subexpression elimination.

We observed a 5–35% speedup across our benchmarks.

For now, the new backend is only available for the 64-bit x86 platform (“amd64”),

but we’re planning


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/f6GHYM0v0X0/go1.7

Original article

Firefox 49 for Linux gains plugin-free support for Netflix and Amazon Prime Video

Another plugin bites the dust. The Windows and macOS versions of Firefox have supported the Widevine video protocol for a little while now, and the upcoming Firefox 49 for Linux gets the same treatment. What this means is that streaming video services that use the Google-owned protocol — including Netflix and Amazon Prime Video — can be watched without the need for plugins. The Linux version of Firefox 49 is due for a proper release in September, although preview versions are currently available for those who want to try it out. With Widevine being free for anyone to use, Firefox’s… [Continue Reading]


Original URL: http://feeds.betanews.com/~r/bn/~3/uTZXOUfyoPk/

Original article

Turn Your Motorola Android Phone into a Raspberry Pi

In the surest sign that hardware hacking is the new hotness, Motorola and Farnell/Element 14 have developed an add-on board and SDK that will let you connect virtually anything to your mobile phone. Motorola is calling it the “Moto Mods” system, and it looks like its going to be a dedicated microcontroller that interfaces with the computer inside the phone and provides everything from GPIOs to DSI (video). Naturally, I2C, I2S, SPI, UART, even two flavors of USB are in the mix.

The official SDK, ahem Mods Development Kit (MDK), is based on the open Greybus protocol stack (part of Google’s Project Ara open phone project) and it’s running on an ARM Cortex-M4F chip. It’s likely to be itself fairly hackable, and even if the suggested US $125 price is probably worth it for the convenience, we suspect that it’ll be replicable with just a few dollars in parts and the


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/Dq7X4lLMGSw/

Original article

18F – Patterns for managing multi-tenant cloud environments

August 10, 2016
Tagged /

best practices
/

devops
/

how we work
/

tools you can use
/

cloud.gov
/

open source
/

by

Jez Humble

When 18F started, deploying government services into a public cloud was
still fairly uncommon. However, over the last two years nearly
everything 18F has built for our agency partners has been deployed into
Amazon Web Services (AWS), including our platform-as-a-service cloud.gov.
Meanwhile, other federal agencies have also started using
commercial
public
clouds,
some at a large scale.

Over that time, as a result of the success of implementing the federal
cloud-first
strategy,
18F’s AWS account has grown in size and complexity. We need a new
approach to ensure it remains manageable. In this post, we’ll describe
our plan for evolving our existing cloud deployment based on modern
DevOps principles and practices. Future blog posts will discuss how we
are executing each part of our


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/t2rWgvXl3eI/

Original article

IBM model-M keyboard sound emulation to annoy co-workers

This project emulates the sound of my old faithful IBM Model-M space saver
bucklespring keyboard while typing on my notebook, mainly for the purpose of
annoying the hell out of my coworkers.

Bucklespring runs as a background process and plays back the sound of each key
pressed and released on your keyboard, just as if you were using an IBM
Model-M. The sound of each key has carefully been sampled, and is played back
while simulating the proper distance and direction for a realistic 3D sound
palette of pure nostalgic bliss.

Installation

Linux

To compile on debian-based linux distributions, first make sure the require
libraries and header files are installed, then simply run make:

$ sudo apt-get install libopenal-dev libalure-dev libxtst-dev
$ make
$ ./buckle

Windows

For windows the binary is provided in buckle.exe. To run on windows,
make sure to first install OpenAL from the official package at
https://www.openal.org/downloads/.

The source can be cross-compiled from linux using the mingw compiler:

$ make mingw=1
$ buckle.exe

The program is launched in


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/7teYS2BC2oI/README.md

Original article

Setup keybase.io, GPG and signed Git commits

README.md

This is a step-by-step guide on how to create a GPG key on keybase.io, adding it to a local GPG setup and use it with Git and GitHub.

Although this guide was written for OS X, most commands should work in other operating systems as well.

Requirements

$ brew install gpg keybase

You should already have an account with Keybase and be signed in locally using $ keybase login. In case you need to set up a new device first, follow the instructions provided by the keybase command during login.

Make sure your local version of Git is at least 2.0 ($ git –version) to automatically sign all your commits. If that’s not the case, use Homebrew to install the latest Git version: $ brew install git.

Create a new GPG key on keybase.io

$ keybase pgp gen –multi
# Enter your real name, which will be publicly visible in your new key: Patrick


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/eMvroMAmB8U/keybase-gpg-github

Original article

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑

%d bloggers like this: