Skip to content

Instantly share code, notes, and snippets.

View zbeekman's full-sized avatar
🏢
New Office, still neck deep in code

Izaak "Zaak" Beekman zbeekman

🏢
New Office, still neck deep in code
View GitHub Profile
@zbeekman
zbeekman / brew-install-opencoarrays.sh
Created June 16, 2017 20:21
A script that will automatically install OpenCoarrays using Homebrew. MPICH and OpenCoarrays will be compiled and installed with GCC-7
#!/usr/bin/env bash
set -o nounset
set -o pipefail
set -o errexit
set -o errtrace
msg="Press Ctrl-C to abort, or enter to continue"
echo "Tapping homebrew-bundle"
read -rp "${msg}"
brew tap homebrew/bundle
@zbeekman
zbeekman / # graphviz - 2017-02-20_19-52-30.txt
Created February 21, 2017 01:09
graphviz on macOS 10.10.5 - Homebrew build logs
Homebrew build logs for graphviz on macOS 10.10.5
Build date: 2017-02-20 19:52:30
@zbeekman
zbeekman / crush-pngs-git-history.bash
Last active February 3, 2017 03:55
Use `git filter-branch` to crush all `.png` files in `<path/to/img/dir/here>` on OS X with imageoptim, imageoptim-cli, and ImageAlpha.app
git filter-branch --prune-empty --tree-filter 'pwd ; ls -a ; imageoptim -a -q --verbose -d <path/to/img/dir/here> || true' -- --all

Keybase proof

I hereby claim:

  • I am zbeekman on github.
  • I am zbeekman (https://keybase.io/zbeekman) on keybase.
  • I have a public key ASB1BVh7CLa59CfZuosU3ruSnOON1SlbQnN2saQvdEkf2Ao

To claim this, I am signing this object:

@zbeekman
zbeekman / gcc-trunk-mac-bootstrap.patch
Last active November 15, 2016 13:57
Patch gcc trunk to bootstrap on OS X. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78267 for more info. This is "untested patch 2"
diff --git a/libsanitizer/sanitizer_common/sanitizer_mac.cc b/libsanitizer/sanitizer_common/sanitizer_mac.cc
index 4408d1d..e495a10 100644
--- a/libsanitizer/sanitizer_common/sanitizer_mac.cc
+++ b/libsanitizer/sanitizer_common/sanitizer_mac.cc
@@ -34,7 +34,7 @@
extern char **environ;
#endif
-#if defined(__has_include) && __has_include(<os/trace.h>)
+#if defined(__has_include) && __has_include(<os/trace.h>) && defined(__clang__)
@zbeekman
zbeekman / # mpich - 2016-09-02_09-07-01.txt
Created September 11, 2016 19:24
mpich on Mac OS X 10.10.5 - Homebrew build logs
Homebrew build logs for mpich on Mac OS X 10.10.5
Build date: 2016-09-02 09:07:01
@zbeekman
zbeekman / error.txt
Last active May 24, 2016 18:54
s.gsub! regexp help
Error: inreplace failed
/usr/local/homebrew/Cellar/gasnet/1.26.0/include/gasnet_tools-par.mak:
expected replacement of /\/usr\/local\/homebrew\/Library\/ENV\/4\.3\/clang\+\+/ with "clang++"
@zbeekman
zbeekman / # grass - 2016-05-17_15-38-14.txt
Created May 17, 2016 19:58
grass on Mac OS X 10.10.5 - Homebrew build logs
Homebrew build logs for grass on Mac OS X 10.10.5
Build date: 2016-05-17 15:38:14
@zbeekman
zbeekman / # sam2p - 2016-05-17_15-04-21.txt
Created May 17, 2016 19:09
sam2p on Mac OS X 10.10.5 - Homebrew build logs
Homebrew build logs for sam2p on Mac OS X 10.10.5
Build date: 2016-05-17 15:04:21
@zbeekman
zbeekman / taucmdr_run.sh
Created April 27, 2016 19:49
Proposed modified PBS script
#!/bin/bash
#PBS -l walltime=0:30:00
#PBS -l select=4:ncpus=24:mpiprocs=24
#PBS -q debug
#PBS -A ARLAP96070PET
##############################################################################
# UPDATE THIS LINE AS APPROPRIATE
#
FUN3D_PREFIX=../fun3d-hep-12.8-dc8fb20-taucmdr