Skip to content

Instantly share code, notes, and snippets.

View kthy's full-sized avatar
🧀
Was wird aus dem Loch wenn der Käs gefressen ist?

Kristian Thy kthy

🧀
Was wird aus dem Loch wenn der Käs gefressen ist?
View GitHub Profile
vagrant : INFO global: Vagrant version: 2.2.8
At line:1 char:1
+ vagrant up --debug 2>&1 | Tee-Object -FilePath ".\vagrant-reboot.log"
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( INFO global: Vagrant version: 2.2.8:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
INFO global: Ruby version: 2.6.6
INFO global: RubyGems version: 3.0.3
@kthy
kthy / vagrant-noreboot.log
Last active May 6, 2020 10:14
Vagrant debug log (without reboot) for hashicorp/vagrant#11589
vagrant : INFO global: Vagrant version: 2.2.8
At line:1 char:1
+ vagrant up --debug 2>&1 | Tee-Object -FilePath ".\vagrant-noreboot.lo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( INFO global: Vagrant version: 2.2.8:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
INFO global: Ruby version: 2.6.6
INFO global: RubyGems version: 3.0.3
@kthy
kthy / settings.json
Last active April 30, 2021 21:28
Windows Terminal Settings
// This file was initially generated by Windows Terminal 1.6.10571.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@kthy
kthy / Microsoft.PowerShell_profile.ps1
Last active April 17, 2021 10:15
Powershell Profile
################################################################################
## Oh My Posh Git
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme ~/.oh-my-posh.omp.json
################################################################################
## Posh Dig
Import-Module PoshDig -ArgumentList 'C:\bin\dig.exe'
@kthy
kthy / oh-my-posh-v3-config.json
Last active April 15, 2021 08:34
Oh My Posh v3 config
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#83769c",
@kthy
kthy / Enkidu.md
Last active April 18, 2021 22:00
Enkidu Setup Log

Enkidu (Dell Latitude 9510) Setup Log

Installing Windows

  • "Let's start with region." → Ireland
  • "Is this the right keyboard?" → United States-International
  • "Set up for personal use."
  • Offline account → Limited experience → "Kristian" → "********"
  • Enter nonsense for the security questions
  • Skip Windows Hello
@kthy
kthy / triangle.py
Last active July 15, 2021 09:41
TKT-DAP p01e20_usemodule
"""Triangle geometry functions."""
from math import sqrt
__version__ = '1.0.0'
__author__ = 'Kristian Thy <k@pyxy.dk>'
def hypothenuse(a: float, b: float) -> float:
"""Return the length of the hypothenuse when given the lengths of
@kthy
kthy / lru_demo.py
Last active October 25, 2021 12:31
Python: Least-Recently-Used Cache Demonstration
"""Least-Recently-Used Cache Demonstration."""
from functools import lru_cache
@lru_cache(maxsize=5)
def powpow(input: int) -> int:
output = input**2
print(f"Computed: {output:3}", end=", ")
return output
@kthy
kthy / brooks-the_craft.md
Last active August 29, 2024 13:39
The Joys of the Craft

Excerpt from chapter 1 of "The Mythical Man-Month"

The Joys of the Craft

Why is programming fun? What delights may its practitioner expect as his reward?

First is the sheer joy of making things. As the child delights in his mud pie, so the adult enjoys building things, especially things of his own design. I think this delight must be an image of God's delight in making things, a delight shown in the distinctness and newness of each leaf and each snowflake.

set nocompatible
set expandtab
set tabstop=2
set shiftwidth=2
set number
set nobackup
set cursorline
set visualbell
autocmd BufEnter *.* setlocal indentexpr=