Skip to content

Instantly share code, notes, and snippets.

View alexkowalenko's full-sized avatar

Alex Kowalenko alexkowalenko

View GitHub Profile
@alexkowalenko
alexkowalenko / Debug.cc
Last active December 28, 2019 21:38
C++ 17 debug
#include <iostream>
inline constexpr bool debug{false};
template <typename... T>
inline void debug(const T &... msg)
{
if constexpr(debug) {
printf(msg...);
}
@alexkowalenko
alexkowalenko / freebsd-qemu-xhyve-mac-os-x-virtual-machine.md
Created October 2, 2019 21:35 — forked from zg/freebsd-qemu-xhyve-mac-os-x-virtual-machine.md
Create FreeBSD virtual machine using qemu. Run the VM using xhyve.

TL;DR

  • Create 10GB FreeBSD image using QEMU.
  • Run the VM using xhyve.
  • Mount host directory.
  • Resize the image.

Requisites

@alexkowalenko
alexkowalenko / .gitignore
Created July 26, 2017 10:43 — forked from rbochet/.gitignore
.gitignore file for LaTeX projects on Mac
# Latex files
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr