Skip to content

Instantly share code, notes, and snippets.

View logic's full-sized avatar

Ed Marshall logic

View GitHub Profile
@logic
logic / dcc.spec
Created January 31, 2017 02:38
DCC spec for Fedora
%define homedir %{_sysconfdir}/dcc
Summary: DCC is an anti-spam content filter
Name: dcc
Version: 1.3.158
Release: 1%{?dist}
URL: http://www.dcc-servers.net/dcc/
Source0: http://www.dcc-servers.net/dcc/source/old/dcc-%{version}.tar.Z
License: distributable for non-commercial use
BuildRequires: sendmail-devel
@logic
logic / command-completion.sh
Created March 11, 2017 22:32
terminal command-completion notifications from inside tmux
# Like gnome-terminal's command-completion notifications, but usually run
# everything within a tmux window? No problem: add this to your .bashrc, and
# make sure `xdotool` is installed. Adjust the `notify-send` command line to
# taste.
#
# THIS DOESN'T WORK WITH WAYLAND. If you're on Wayland, let me know if you
# come up with a reliable way to identify the currently-focused window.
function notify_finished() {
# If we're not in tmux, fall back to gnome-terminal's notification.
[[ -z $TMUX_PANE ]] && __vte_prompt_command && return