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
@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 / 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 / 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 / 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 / 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 / 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
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.log
Last active May 6, 2020 09:10
Vagrant debug log for hashicorp/vagrant#11588
vagrant : INFO global: Vagrant version: 2.2.8
At line:1 char:1
+ vagrant up --debug 2>&1 | Tee-Object -FilePath ".\vagrant.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 / banner.cmd
Created May 4, 2020 07:46
Display a string of text in extra large letters, similar to banner printing on a dot matrix printer.
@ECHO OFF&SETLOCAL
::
:: From https://ss64.com/nt/syntax-banner.html
::
IF [%1] NEQ [] goto s_start
ECHO Syntax
ECHO BANNER string
ECHO Where string is the text or numbers to be displayed
ECHO:
GOTO :eof
@kthy
kthy / UnicodeData.csv
Last active October 25, 2025 21:08
UnicodeData.txt initial lines and field descriptions - full file at <http://www.unicode.org/Public/UNIDATA/UnicodeData.txt>
CodePoint CharacterName GeneralCategory CanonicalCombiningClasses BidirectionalCategory CharacterDecompositionMapping DecimalDigitValue DigitValue NumericValue Mirrored Unicode 1.0 Name ISO-10646CommentField UppercaseMapping LowercaseMapping TitlecaseMapping
0000 <control> Cc 0 BN N NULL
0001 <control> Cc 0 BN N START OF HEADING
0002 <control> Cc 0 BN N START OF TEXT
0003 <control> Cc 0 BN N END OF TEXT
0004 <control> Cc 0 BN N END OF TRANSMISSION
0005 <control> Cc 0 BN N ENQUIRY
0006 <control> Cc 0 BN N ACKNOWLEDGE
0007 <control> Cc 0 BN N BELL
0008 <control> Cc 0 BN N BACKSPACE