Skip to content

Instantly share code, notes, and snippets.

@holmanb
holmanb / concatenate_test.py
Last active May 2, 2021 01:07
Python String Concatenation Performance Test
#!/usr/bin/python
# concatenate_test.py
# based on https://stackoverflow.com/a/24718551/7407726
# modified to include f string benchmarking for a task I'm working on now, might come in handy later
from __future__ import print_function
import timeit
domain = 'some_really_long_example.com'
lang = 'en'
@holmanb
holmanb / vagrant-ubuntu.md
Last active December 18, 2020 00:06
Vagrant Notes

Vagrant Ubuntu 16.04 Example

mkdir folder_of_awesomeness
cd folder_of_awesomeness/
vagrant init bento/ubuntu-16.04
vagrant up --provider=virtualbox    # because they don't have a libvert provider
vagrant ssh
@holmanb
holmanb / gist:1a222dd82a568e0278ac2afec0e95736
Last active March 22, 2025 20:32
Getting Started With Linux Kernel Running Qemu On Fedora With Mkosi

Note: I need to do this on multiple machines, and it took a while to figure out the easiest way to do this on Fedora, so I'm documenting the process.

  1. Get & Configure the Kernel
git clone https://github.com/torvalds/linux.git
cd linux
make allnoconfig
make x86_64_defconfig