Skip to content

Instantly share code, notes, and snippets.

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 Jul 21, 2021
Setting up GH-pages with custom domain, strict (end-to-end) SSL with CloudFlare DNS & CDN
View GH-CF-strict-SSL-w-CDN.md

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 / Intel-Advixe-rooflines.md
Created Aug 31, 2018
Instructions for running Intel Advisor-xe to generate roofline plots (intel 18+)
View Intel-Advixe-rooflines.md

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.

View MVC-for-humans.md

This text is by @kamranahmedse on this issue.

I, @zbeekman, am NOT the author or copyright holder of the following text. Therefore, any requests to publish or disseminate this should be directed towards @kamranahmedse. I am merely reposting this here for posterity.

@zbeekman
zbeekman / ssh.config
Created Nov 4, 2019
ssh config file for demo
View ssh.config
Host *
ControlPath ~/.ssh/tmp/%r@%h:%p
ControlPersist 30m
ServerAliveInterval 30
ServerAliveCountMax 5
# INL HPC
Host *.inl.gov inlhpc hpclogin falcon1 falcon2 quark bechler moosebuild
User <YOUR_USER_NAME>
ControlMaster auto
@zbeekman
zbeekman / ctest2junix.xsl
Created Jun 29, 2019 — forked from alexott/ctest2junix.xsl
XSL stylesheet to transform CTest results into JUnit format to import into Jenkins
View ctest2junix.xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/Site">
<testsuite>
<xsl:variable name="BuildName"><xsl:value-of select="@BuildName"/></xsl:variable>
<xsl:variable name="BuildStamp"><xsl:value-of select="@BuildStamp"/></xsl:variable>
<xsl:variable name="Name"><xsl:value-of select="@Name"/></xsl:variable>
<xsl:variable name="Generator"><xsl:value-of select="@Generator"/></xsl:variable>
<xsl:variable name="CompilerName"><xsl:value-of select="@CompilerName"/></xsl:variable>
@zbeekman
zbeekman / # octave - 2019-05-14_10-02-48.txt
Created May 14, 2019
octave on macOS 10.14.4 - Homebrew build logs
View # octave - 2019-05-14_10-02-48.txt
Homebrew build logs for octave on macOS 10.14.4
Build date: 2019-05-14 10:02:48
@zbeekman
zbeekman / CMakeCache.txt
Created May 7, 2019
pFUnit issues when making a Homebrew Formula
View CMakeCache.txt
# This is the CMakeCache file.
# For build in directory: /tmp/pfunit-20190507-36706-1qjb902/pFUnit-4.0.0/build
# It was generated by CMake: /usr/local/Cellar/cmake/3.14.3/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
View brew-list-src-installed.sh
# A Homebrew alias for printing formulae that were installed from source when bottles are available
brew info --json=v1 --installed | jq "map( select( .installed | map( select( .poured_from_bottle | not ) ) != [] ) ) | map(select(.bottle != {}) | .name)"
@zbeekman
zbeekman / purge.sh
Created Apr 4, 2019 — forked from adrienbrault/purge.sh
Script to reduce VM size before packaging for vagrant
View purge.sh
#!/bin/sh
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
aptitude -y purge ri
aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide
aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30
aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5
View fixup-eol-eof
#!/bin/bash
sed -e 's/[ ]*$//' -e :a -e '/^\n*$/{$d;N;ba' -e '}' $1