A Pen by Alexander Kjeldaas on CodePen.
kjeldaas Alexander Kjeldaas
I hereby claim:
- I am alexanderkjeldaas on github.
- I am kjeldaas (https://keybase.io/kjeldaas) on keybase.
- I have a public key ASAysRZ5gvRIQPaCvSirL3sgW1KJD__6MrCHXPY6dMyOOQo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// g++ -O3 -g -std=c++17 test.cc -lboost_filesystem -lboost_system -lpthread -lboost_iostreams -lboost_thread | |
#include <iostream> | |
#include <string> | |
#include <bitset> | |
#include <thread> | |
// #include <experimental/barrier> | |
#include <boost/thread/barrier.hpp> | |
#include <boost/iostreams/device/mapped_file.hpp> | |
#include <boost/filesystem.hpp> | |
#define BOOST_DISABLE_ASSERTS 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Installs NixOS on a Hetzner Cloud CX51 server, wiping the server. | |
# | |
# This is for a specific server configuration; adjust where needed. | |
# | |
# Prerequisites: | |
# * Update the script to adjust SSH pubkeys, hostname, NixOS version etc. | |
# | |
# Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LOCATION=${HCLOUD_LOCATION:-nbg1-dc3} | |
if [ -z "$HCLOUD_TOKEN" ]; then | |
echo "You need to set HCLOUD_TOKEN to an Hetzner API token!"; | |
exit 1 | |
fi | |
if [ -z "$SSH_KEY" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLAY [localhost] ******************************************************************************************************************************************************************************************* | |
TASK [Check ansible version >=2.7.8] *********************************************************************************************************************************************************************** | |
Wednesday 15 May 2019 22:14:42 +0200 (0:00:00.107) 0:00:00.107 ********* | |
ok: [localhost] => { | |
"changed": false, | |
"msg": "All assertions passed" | |
} | |
[WARNING]: Could not match supplied host pattern, ignoring: bastion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
## ensure locale is set during build | |
ENV LANG C.UTF-8 | |
## Haskell environment | |
RUN echo 'deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main' > \ | |
/etc/apt/sources.list.d/ghc.list && \ | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F6F88286 && \ | |
apt-get update && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for railwaycat/emacsmacport/emacs-mac on macOS 10.12.3 | |
Build date: 2017-02-23 11:30:53 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for emacs on macOS 10.12.3 | |
Build date: 2017-02-23 11:56:50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for railwaycat/emacsmacport/emacs-mac on macOS 10.12.3 | |
Build date: 2017-02-23 11:30:53 |
NewerOlder