Skip to content

Instantly share code, notes, and snippets.

New Office, still neck deep in code

Izaak "Zaak" Beekman zbeekman

New Office, still neck deep in code
View GitHub Profile

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.

adnan360 /
Last active Aug 25, 2021
Basic Guide on how to install and use Weston (Wayland) on Void Linux (without SystemD)

How to Install and Use Weston (Wayland) on Void Linux (without SystemD)

sudo xbps-install weston
sudo usermod -a -G weston-launch `whoami`

Reboot to update the group assignment.

Now we can prepare the config. Let's create the file:

View Jetson_Nano.Benchmark
This is a benchmark of the BETA CUDA branch of Hashcat, designed to run with both CUDA and OpenCL devices.
The Jetson Nano Dev Kit is an ARM SBC with a Jetson Nano (Maxwell 128 CUDA core) module attached.
Some modes failed due to the limitations of such a lower power GPU.
Access to the Jetson Nano was provided by Gridcoin( Community member sodom89.
hashcat (v5.1.0-1029-g523e0f71) starting in benchmark mode...
lizthegrey / attributes.rb
Last active Sep 22, 2021
Hardening SSH with 2fa
View attributes.rb
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
smilzo / ElkonMac-0.1
Created Apr 18, 2019
ELK Stack on Macosx via Homebrew with different users for any service, running as daemon at boot time
View ElkonMac-0.1
# ElkOnMac 0.1
# This is not a script but a list of command for install the ELK stack on Macos via Homebrew, but using different users for different services,
# that starts at boot time. This kind of installation is not found in any guide who I have searched, only guide for starting the ELK stack after login.
# Released under Creative Commons license Attribution 4.0 International (CC BY 4.0)
NEW_UID=$(( $(dscl . -list /Users UniqueID | awk '{print $2}' | sort -n | tail -1) + 1 )); echo $NEW_UID
# Use first available gid from the output of:
dscl . list /Groups PrimaryGroupID | tr -s ' ' | sort -n -t ' ' -k2,2
181192 /
Last active Sep 6, 2021
How to increase the root partition size on Fedora

How to increase the root partition size on Fedora

Boot up with an Fedora Live USB stick.

  1. Run vgs to check if there's any space:
$ sudo vgs
  VG     #PV #LV #SN Attr   VSize    VFree
  fedora   1   3   0 wz--n- <237.28g    0 
zbeekman /
Last active Sep 18, 2021
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

LauLaman /
Last active May 28, 2021
Vagrant nfs mount Mac OS X Mojave
  1. Mac OS X system settings > Security & Privacy > privacy tab

  2. Select Full Disk Access and click plus icon.

  3. Add terminal in the list ( in my case iTerm)

  4. Restart iTerm

  5. Run command in iterm: $ cd /private/etc && sudo touch ./exports

  6. Start virtual machine trough vargrant: Profit

dstndstn / parallel-build.diff
Created Aug 31, 2018
A diff against wcslib-5.19.1 to allow parallel builds (eg, -j8) to work
View parallel-build.diff
diff --git a/C/GNUmakefile b/C/GNUmakefile
index eec9389..4631b63 100644
--- a/C/GNUmakefile
+++ b/C/GNUmakefile
@@ -50,8 +50,7 @@ else
-# For building the sharable library.
-PICLIB := libwcs-PIC.a
zbeekman /
Created Aug 31, 2018
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.


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