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
#!/bin/bash | |
org=foo | |
gh api --paginate -H "Accept: application/vnd.github+json" -X GET -F include=git /orgs/$org/audit-log | jq -r '.[] | select(.action=="git.clone" and .actor!="github-actions[bot]" and .actor!="dependabot[bot]") | [.actor, .action, .repo, .programmatic_access_type] | @tsv' |
/* `useLocalStorage` | |
* | |
* Features: | |
* - JSON Serializing | |
* - Also value will be updated everywhere, when value updated (via `storage` event) | |
*/ | |
import { useEffect, useState } from "react"; | |
export default function useLocalStorage<T>(key: string, defaultValue: T): [T, (value: T) => void] { |
If you’ve ever wanted to analyze your own health data, here’s how.
Stable enough for my initial use-case, light-duty laptop for travel and presentations, running Linux all the time but retain a small ChromeOS volume for firmware updates and restoring settings.
1st attempt I wiped the drive and then found that when the machine attempted to suspect when the lid closed it wiped the NVRAM with no other option to boot into legacy mode than to restore ChromeOS and enable it again.
def html2markdown(self, html): | |
# convert html to markdown. | |
# specification: | |
# remove all tag exccept tags listed in the cleanbody._repl | |
# when p/div tags are in the table tag, markdown converter (htmlformatter) | |
# confuses. so it is removed | |
# we need following in the header | |
# import re, html2text | |
# from bs4 import BeautifulSoup |
<# | |
.SYNOPSIS | |
Renames pictures. | |
.DESCRIPTION | |
The Rename-Pictures cmdlet to rename pictures to a format where the file creation time is first | |
in the name in this format: . The idea is that | |
.PARAMETER Path | |
Specifies the path to the folder where image files are located. Default is current location (Get-Location). |
#!/bin/bash | |
dnf install gmp-devel mpfr-devel texinfo bison git gcc-c++ -y | |
mkdir ld.gold && cd ld.gold | |
git clone --depth 1 git://sourceware.org/git/binutils-gdb.git binutils | |
mkdir build && cd build | |
../binutils/configure --enable-gold --enable-plugins --disable-werror | |
make all-gold | |
cd gold |
using UnityEditor; | |
using UnityEngine; | |
[CustomEditor(typeof(MeshFilter))] | |
public class NormalsVisualizer : Editor { | |
private const string EDITOR_PREF_KEY = "_normals_length"; | |
private Mesh mesh; | |
private MeshFilter mf; | |
private Vector3[] verts; |