I use a GPG key to sign my git commits.
An error like this one might be a sign of an expired GPG key.
error: gpg failed to sign the data fatal: failed to write commit object
#!/usr/bin/python3 | |
# Example of how to verify an SHA-256 checksum file using Python. | |
# Usage: python sha256check.py sha256sum.txt | |
import hashlib | |
import re | |
import sys | |
# This regular expression matches a line containing a hexadecimal | |
# hash, spaces, and a filename. Parentheses create capturing groups. | |
r = re.compile(r'(^[0-9A-Fa-f]+)\s+(\S.*)$') |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"log" | |
"mime/multipart" | |
"net/http" | |
"os" |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
#!/bin/sh | |
# check if file-based sessions are enabled | |
file_storage=$(/usr/lib/php5/sessionstorage | grep '^files$' -c) | |
if [ "$file_storage" = "0" ]; then | |
exit 0 | |
fi | |
# first find all used files and touch them (hope it's not massive amount of files) |