Skip to content

Instantly share code, notes, and snippets.

View wesbland's full-sized avatar

Wes Bland wesbland

View GitHub Profile
@wesbland
wesbland / Makefile
Last active November 12, 2020 22:24
Example QMPI Tool implementing the API from https://github.com/pmodels/mpich/pull/4715
CC=mpicc
CFLAGS= -std=c99 -fPIC -rdynamic -shared -O2 -g
OBJ= mpich_example.so
all: $(OBJ)
mpich_example.so: mpich_example.c
$(CC) $(CFLAGS) -o $@ $<
clean:
@wesbland
wesbland / gnu-indent.patch
Last active April 3, 2023 16:48
Patch for GNU indent 2.2.11
diff --git c/Formula/gnu-indent.rb i/Formula/gnu-indent.rb
index b208611aeeeb..4a1e8ff93b5b 100644
--- c/Formula/gnu-indent.rb
+++ i/Formula/gnu-indent.rb
@@ -1,22 +1,17 @@
class GnuIndent < Formula
desc "C code prettifier"
homepage "https://www.gnu.org/software/indent/"
- url "https://ftp.gnu.org/gnu/indent/indent-2.2.12.tar.gz"
- mirror "https://ftpmirror.gnu.org/indent/indent-2.2.12.tar.gz"
@wesbland
wesbland / github_hook
Last active February 9, 2018 21:41
MPICH Style Checking Pre-Commit Hook
#!/bin/bash
cat > pre-commit.sh << "EOF"
#!/bin/sh
MIRROR=/tmp/${USER}/mpich-tmp-mirror
TMP_FILENAME=/tmp/${USER}/mpich-tmp-file
# Checkout a copy of the current index into MIRROR
git checkout-index --prefix=$MIRROR/ -af