Skip to content

Instantly share code, notes, and snippets.

@pdaynoe
pdaynoe / latex-letter.tex
Created November 3, 2020 15:27 — forked from ashwin/latex-letter.tex
Simple letter template for LaTeX
%-----------------------------------------------------------------------------%
% Letter class
\documentclass[a4paper, 10pt]{letter}
% Name of sender
\name{Joe Fox}
% Signature of sender
\signature{Joe Fox}
@pdaynoe
pdaynoe / Correct_GnuPG_Permission.sh
Last active July 31, 2020 14:06 — forked from oseme-techguy/Correct_GnuPG_Permission.sh
This fixes the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error while using Gnupg .
#!/usr/bin/env bash
# replaced ~/.gnupg with $GNUPGHOME
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error
# Make sure that the .gnupg directory and its contents is accessibile by your user.
chown -R $(whoami) $GNUPGHOME/
# Also correct the permissions and access rights on the directory
chmod 600 $GNUPGHOME/*