You have installed GPG, then tried to commit and suddenly you see this error message after it:
error: gpg failed to sign the data
fatal: failed to write commit object
Debug
# Generate a new pgp key: (better to use gpg2 instead of gpg in all below commands) | |
gpg --gen-key | |
# maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null` | |
# check current keys: | |
gpg --list-secret-keys --keyid-format LONG | |
# Set a gpg key for git (from previous step... the key_id is after the slash): | |
git config --global user.signingkey your_key_id |
<template> | |
<h1>${message}</h1> | |
</template> |
web | npm WARN optional Skipping failed optional dependency /chokidar/fsevents: | |
web | npm WARN notsup Not compatible with your operating system or architecture: [email protected] | |
web | Looking up npm:aurelia-bootstrapper | |
web | Looking up npm:aurelia-framework | |
web | Looking up npm:aurelia-history-browser | |
web | Looking up npm:aurelia-fetch-client | |
web | Looking up npm:aurelia-auth | |
web | Looking up npm:aurelia-http-client | |
web | Looking up npm:aurelia-materialize-bridge | |
web | Looking up npm:aurelia-router |
Válidos | |
-------- | |
Teléfono internacional (prefijo adelante) de dos números | |
+51 (54) 430-23214 | |
+51 (54) 43023214 | |
Teléfono nacional | |
(54) 20 - 7291 | |
(54) 207 291 | |
Celular | |
938 298 123 |
'.source.js': | |
'\'Describe\' block jasmine in unit test': | |
'prefix': 'describe' | |
'body': """ | |
describe(\'$1\', function() { | |
$2 | |
}); | |
""", | |
'\'It\' block in jasmine unit test': | |
'prefix' : 'it' |
#!/usr/bin/env ruby | |
file="~/.gitshots/#{Time.now.to_i}.jpg" | |
puts "Taking capture into #{file}!" | |
system "imagesnap -q -w 3 #{file}" | |
exit 0 |
#!/usr/bin/env ruby | |
# Github usernames may only contain alphanumeric characters | |
# or dashes and cannot begin with a dash | |
$regex = /^(?:(?:fixes|closes|resolves)\s)?#\d+\s\[@[a-z0-9][a-z0-9\-]*(?:,\s@[a-z0-9][a-z0-9\-]*)*\]\s(?:\w+[\.\,]?\s)+/i | |
message_file = ARGV[0] | |
message = File.read(message_file) | |
if !$regex.match(message) |
describe('functionalityToTest', function() { | |
var stringify = JSON.stringify; | |
before(function() { | |
JSON.stringify = function(obj) { | |
var seen = []; | |
return stringify(obj, function(key, val) { | |
if (typeof val == "object") { | |
if (seen.indexOf(val) >= 0) { return; } |
As I needed to run the bower installation before my tests run in the CI (I use Travis-CI), I had to implement a custom task in Grunt to do so; the issues I had with the grunt tasks I found out there was that they didn't do the simplest thing: run the install command. This is an easy thing and it doesn't require any plugin. It's very important the event 'end' and the async method. The task won't finish successfully without it. You can see the complete gruntfile here
/*global require */
module.exports = function(grunt) {
// ...