You have installed GPG, then tried to perform a git commit and suddenly you see this error message after it 😰
error: gpg failed to sign the data
fatal: failed to write commit object
Understand the error (important to solve it later!)
| fun String.encodeBase64ToString(): String = String(this.toByteArray().encodeBase64()) | |
| fun String.encodeBase64ToByteArray(): ByteArray = this.toByteArray().encodeBase64() | |
| fun ByteArray.encodeBase64ToString(): String = String(this.encodeBase64()) | |
| fun String.decodeBase64(): String = String(this.toByteArray().decodeBase64()) | |
| fun String.decodeBase64ToByteArray(): ByteArray = this.toByteArray().decodeBase64() | |
| fun ByteArray.decodeBase64ToString(): String = String(this.decodeBase64()) | |
| fun ByteArray.encodeBase64(): ByteArray { | |
| val table = (CharRange('A', 'Z') + CharRange('a', 'z') + CharRange('0', '9') + '+' + '/').toCharArray() |
| #!/bin/bash | |
| # Author: Maxwel Leite | |
| # Website: http://needforbits.wordpress.com/ | |
| # Description: Script to install Microsoft Vista TrueType Fonts (TTF) aka Microsoft’s ClearType fonts on Ubuntu distros | |
| # Microsoft added a group of new "ClearType Fonts" to Windows with Windows Vista and Office 2007. | |
| # These fonts are named Constantia, Corbel, Calibri, Cambria (and Cambria Math), Candara, and Consolas. | |
| # Calibri became the default font on Microsoft Word 2007, and it’s still the default font on Word 2016 today. | |
| # Dependencies: wget, fontforge and cabextract | |
| # Note: Microsoft no longer provides the PowerPoint Viewer 2007 (v12.0.4518.1014) or any version anymore for download | |
| # Tested: Ubuntu Saucy/Trusty/Xenial/Bionic |
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007