Skip to content

Instantly share code, notes, and snippets.

View LinuxDragon57's full-sized avatar

Tyler Gautney LinuxDragon57

View GitHub Profile
@LinuxDragon57
LinuxDragon57 / joplin-update
Created May 11, 2024 22:23
Modified Joplin Update Script to install/update the Joplin AppImage on Linux
#!/bin/bash
set -e
trap 'handleError' ERR
handleError() {
echo ""
echo "If you encountered an error, please consider fixing"
echo "the script for your environment and creating a pull"
@LinuxDragon57
LinuxDragon57 / user.js
Last active January 2, 2023 05:59
My Firefox Preferences
user_pref("app.normandy.api_url", "");
user_pref("app.normandy.enabled", false);
user_pref("app.shield.optoutstudies.enabled", false);
user_pref("app.update.auto", false);
user_pref("beacon.enabled", false);
user_pref("breakpad.reportURL", "");
user_pref("browser.aboutConfig.showWarning", false);
user_pref("browser.crashReports.unsubmittedCheck.autoSubmit", false);
user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false);
user_pref("browser.crashReports.unsubmittedCheck.enabled", false);
@LinuxDragon57
LinuxDragon57 / n2dissite.sh
Last active January 7, 2022 08:21
Simple little bash scripts to work like a2ensite and a2dissite for Nginx
# vim: filetype=sh
#!/bin/bash
file="/etc/nginx/sites-enabled/${1}"
if [ -e $file ]; then
rm -fv $file
read -p "Restart Nginx? Press CTRL-C to Abort."
/usr/bin/sudo /usr/sbin/nginx -s reload
echo "Restarted Nginx"
set nocompatible
filetype indent plugin on
syntax on
set hidden
set wildmenu
set showcmd
set ignorecase
set smartcase
set hlsearch
set incsearch
@LinuxDragon57
LinuxDragon57 / mail.py
Last active April 12, 2021 10:21 — forked from carc1n0gen/mail.py
Custom Mailer
import smtplib
from email.message import EmailMessage
from flask import g, current_app
class Mailer(object):
def __init__(self, smtp_host=None, smtp_port=None, username=None,
password=None):
self._smtp_host = smtp_host
self._smtp_port = smtp_port