Skip to content

Instantly share code, notes, and snippets.

View logic's full-sized avatar
:shipit:

Ed Marshall logic

:shipit:
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
@logic
logic / meson-g12b-bananapi-cm4-waveshare-usb.dts
Created September 28, 2024 05:46
Getting USB OTG on a Banana Pi CM4 board working
/dts-v1/;
/plugin/;
/ {
compatible = "bananapi,bpi-cm4io", "bananapi,bpi-cm4", "amlogic,a311d", "amlogic,g12b";
fragment@0 {
target = <&usb>;
__overlay__ {
dr_mode = "host";