Skip to content

Instantly share code, notes, and snippets.

View bendevcat's full-sized avatar
🎨
Focusing on Datadog

benCat bendevcat

🎨
Focusing on Datadog
View GitHub Profile
@bendevcat
bendevcat / README.md
Created October 10, 2022 20:50 — forked from paolocarrasco/README.md
How to understand the `gpg failed to sign the data` problem in git

Problem

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

-------------------------------------------------------------------------
SCRIPTS D'UNE LIGNE UTILES POUR SED (ÉDITEUR DÉFILANT UNIX) Dec. 29, 2005
Compilé par Éric Pement [at]northpark[dot]edu version 5.5
Traduit par Gérard Piette gpiette[at]ncf[dot]ca
La version récente de ce fichier (en Anglais) se retrouve ici:
http://sed.sourceforge.net/sed1line.txt
http://www.pement.org/sed/sed1line.txt
Ce fichier aussi disponible dans d'autres langages:

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file. Create a file called .gitignore in your home directory and add anything you want to ignore. You then need to tell git where your global gitignore file is.

Mac

git config --global core.excludesfile ~/.gitignore

Windows

git config --global core.excludesfile %USERPROFILE%\.gitignore
@bendevcat
bendevcat / mysql.php
Created May 15, 2019 07:17 — forked from mloberg/mysql.php
Simple PHP MySQL Class
<?php
class Mysql{
static private $link = null;
static private $info = array(
'last_query' => null,
'num_rows' => null,
'insert_id' => null
);
@bendevcat
bendevcat / material.module.ts
Created April 14, 2019 10:32
All imports of Material Module for Angular
import { NgModule } from '@angular/core';
import {
MatButtonModule,
MatMenuModule,
MatToolbarModule,
MatIconModule,
MatCardModule,
MatCheckboxModule,
MatInputModule,
MatAutocompleteModule,
@bendevcat
bendevcat / GitCommitEmoji.md
Created March 27, 2019 08:17 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji