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 / GH-CF-strict-SSL-w-CDN.md
Last active March 8, 2024 18:12
Setting up GH-pages with custom domain, strict (end-to-end) SSL with CloudFlare DNS & CDN

Custom domains, GH-pages, Cloudflare and strict SSL end-to-end encryption

Why I wrote this

Before Github supported SSL encryption for github pages sites, many people were using CloudFlare (CF) as their DNS provider and CDN proxy. CF allowed users to enable SSL encryption from the CDN end points/proxies to the end user. This was great and it allowed visitors to your website to connect with a secure connection between their browser and the cloudflare CDN box that was serving your content. However, with this setup one (significant) link in the chain remained unencrypted and

@zbeekman
zbeekman / simple-imagediff.py
Created September 26, 2018 02:14 — forked from StanAngeloff/simple-imagediff.py
Simple Image Diff for Git
#!/usr/bin/env python
# Simple Image Diffs
# ==================
#
# How to Install
# --------------
#
# Download the script somewhere on $PATH as 'simple-imagediff' with +x:
#
@zbeekman
zbeekman / Intel-Advixe-rooflines.md
Created August 31, 2018 00:00
Instructions for running Intel Advisor-xe to generate roofline plots (intel 18+)

Notes for Intel Advisor Roofline Generation of MPI/OpenMP Fortran Programs

These notes are targeting a Cray XC 40/50 system, however they should be relatively easy to generalize to other systems.

Environment

The following assumes your shell is bash. Intel provides .csh scripts too.

@zbeekman
zbeekman / report_gernerator.cc
Last active February 9, 2018 17:49
Attempted fix for deleted issue
#include <boost/algorithm/string.hpp>
// ...
// Add binaries from the sample file.
exe_maps_result_cptr_t exe_maps =
exe_maps_t(context, configuration->sample_file).get();
BOOST_FOREACH(const exe_map_t &exe_map, exe_maps->exe_maps)
{
boost::replace_all(exe_map.filename, " (deleted)", "");
@zbeekman
zbeekman / # opencv - 2017-08-18_11-04-24.txt
Created August 18, 2017 15:06
opencv (homebrew/science/opencv) on macOS 10.10.5 - Homebrew build logs
Homebrew build logs for homebrew/science/opencv on macOS 10.10.5
Build date: 2017-08-18 11:04:24
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zbeekman
zbeekman / # opencoarrays - 2017-08-10_12-09-07.txt
Created August 10, 2017 17:29
opencoarrays on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for opencoarrays on macOS 10.12.6
Build date: 2017-08-10 12:09:07
@zbeekman
zbeekman / plplot.diff
Last active July 24, 2017 14:34
patch for plplot when building w/ Fortran bindings on macOS
:100644 100644 2b46dbe... 0000000... M cmake/modules/pkg-config.cmake
diff --git i/cmake/modules/pkg-config.cmake w/cmake/modules/pkg-config.cmake
index 2b46dbe..7ecc789 100644
--- i/cmake/modules/pkg-config.cmake
+++ w/cmake/modules/pkg-config.cmake
@@ -230,7 +230,7 @@ function(pkg_config_link_flags link_flags_out link_flags_in)
"/System/Library/Frameworks/([^ ]*)\\.framework"
"-framework \\1"
link_flags
@zbeekman
zbeekman / # plplot - 2017-07-21_19-24-32.txt
Created July 21, 2017 23:25
plplot on macOS 10.10.5 - Homebrew build logs
Homebrew build logs for plplot on macOS 10.10.5
Build date: 2017-07-21 19:24:32
@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