Skip to content

Instantly share code, notes, and snippets.

View bdyck's full-sized avatar
👾

Bryan Dyck bdyck

👾
View GitHub Profile
@bdyck
bdyck / emacs27.sh
Created February 22, 2022 02:10 — forked from atgmello/emacs27.sh
Install Emacs 27 from source in Ubuntu 20.04 LTS
cd
git clone --depth=1 --single-branch \
--branch emacs-27 https://github.com/emacs-mirror/emacs.git
cd emacs/
sudo apt install -y autoconf make gcc texinfo libgtk-3-dev libxpm-dev \
libjpeg-dev libgif-dev libtiff5-dev libgnutls28-dev libncurses5-dev \
libjansson-dev libharfbuzz-dev libharfbuzz-bin imagemagick \
@bdyck
bdyck / whiteboardCleaner.md
Created November 2, 2020 15:30 — forked from lelandbatey/whiteboardCleaner.md
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

#!/bin/bash
# Schedule this to run once a day with cron. Doesn't matter what time since it parses yesterday's hits (by default).
# I only tested this on the Marco.org server, which runs CentOS (RHEL). No idea how it'll work on other distributions, but it's pretty basic.
# Required variables:
RSS_URI="/rss"
MAIL_TO="your@email.com"
LOG_FILE="/var/log/httpd/access_log"

Keybase proof

I hereby claim:

  • I am bdyck on github.
  • I am bdyck (https://keybase.io/bdyck) on keybase.
  • I have a public key whose fingerprint is 3EEA F0AA 8499 C963 E3BF EAB0 C5E7 0EF0 052C 19F2

To claim this, I am signing this object:

@bdyck
bdyck / supervisord
Last active December 13, 2015 19:48
Init-style script for Supervisord (http://supervisord.org)
#! /bin/sh
### BEGIN INIT INFO
# Provides: supervisord
# Required-Start: $local_fs $remote_fs $networking
# Required-Stop: $local_fs $remote_fs $networking
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts supervisord.
# Description: Starts and stops supervisord - see http://supervisord.org.
### END INIT INFO