This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Define macros to handle footnotes better | |
% Usage: \fnm will mark footnotes, and then \fnt{foobar} will populate footnote | |
% with "foobar". | |
% Note: \fnt{} order will evaluate in a 1-to-1 correspondence with ordering of | |
% \fnm usage. | |
% Credit: https://tex.stackexchange.com/a/437538/121389 | |
\newcounter{footnotemarknum} | |
\newcommand{\fnm}{\addtocounter{footnotemarknum}{1}\footnotemark{}} | |
\newcommand{\fnt}[1]{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright 2018, Anthony Wharton | |
# Single script that can be called that generates certificates using the | |
# certbotFreeDNSAuthHook.sh and certbotFreeDNSCleanupHook.sh scripts. | |
# This should be used as guidence of my usage, and changed to your needs. Note | |
# the generic `/path/to/...` and `DOMAIN.COM`, which should be replaced with | |
# your script location and domain respectively. In addition, for this to be | |
# used on a live system, one must remove the `--dry-run` flag. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Quick and dirty script to patch the firefox desktop file to always use a | |
# white GTK theme as to not break website appearances. Does a crude check to | |
# ensure that it doesn't apply the patch twice. | |
if [[ "$EUID" -ne 0 ]]; then | |
echo "This fix requires root, please allow for root privileges." | |
echo "Gaining root privilege for file fix.. " | |
gksu $0 &> /dev/null | |
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2018 Anthony Wharton | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import os.path | |
import inquirer | |
from calendar import monthrange | |
from datetime import datetime |