Skip to content

Instantly share code, notes, and snippets.

@Kaurin
Kaurin / cheesebread.md
Created February 25, 2024 08:11
cheesebread

Pao De Queijo (CheeseBread)

Ingredients

  • Sunflower oil (1 finger of a small glass)
  • Milk 1.5 small glass
  • Mature cheddar cheese 400g
  • Polvilho Doce 500g
  • Salt 1 kitchen spoon
  • Eggs 4

Certainly! Here's a further optimized version of the code:

"""
Sense Hat CPU LED Matrix monitor.

Author: M. Manojlovic (synchromatik@gmail.com)

This script uses the Sense HAT and displays CPU load information on the LED matrix.
"""

Certainly! Here's a further optimized version of the code:

"""
Sense Hat CPU LED Matrix monitor.

Author: M. Manojlovic (synchromatik@gmail.com)

This script uses the Sense HAT and displays CPU load information on the LED matrix.
"""
Certainly! Here are some optimizations and improvements for the provided code:
```python
"""
Sense Hat CPU LED Matrix monitor.
Author: M. Manojlovic (synchromatik@gmail.com)
This script uses the Sense HAT and displays CPU load information on the LED matrix.
"""
"""
Sense Hat CPU LED Matrix monitor.
Author: M. Manojlovic (synchromatik@gmail.com)
This script uses the Sense HAT and displays CPU load information on the LED matrix.
"""
from sense_hat import SenseHat
from scipy.interpolate import interp1d
@Kaurin
Kaurin / cloudflare-certbot.sh
Created January 20, 2024 22:59
One-off CloudFlare Certbot
#!/bin/env/sh
# Notes:
# * Does not require root.
# * Will probably prompt you to share your email with letsencryp. Not sure how to disable prompt
# Requirements: pipenv
### EDIT THESE
WORKDIR="/my/work/dir"
DOMAIN='*.example.wildcard.domain.com'
@Kaurin
Kaurin / PMDG_737-700_checklist.md
Last active July 3, 2023 09:21
PMDG 737-700 Checklist

INFO

Pretty much all info is from this youtube video with checks excluded

TLDW: Real-life Ryanair pilot giving us a rundown

Cold and Dark

overhead

  • Battery ON (guard down)
  • Emergency Lights ON (guard down)

Keybase proof

I hereby claim:

  • I am kaurin on github.
  • I am kaurin (https://keybase.io/kaurin) on keybase.
  • I have a public key ASA7BvtOrZ-S9ZGuktfoFJiIN67yL58iffoyBBINwOtL4Ao

To claim this, I am signing this object:

@Kaurin
Kaurin / Win10-libvirt-xml
Last active January 11, 2016 13:54
PCI devices passed through: nvidia+HDMI audio, onboard sound, onboard XHCI USB controller
<domain type='kvm'>
<name>Win10</name>
<uuid>29e90e35-ff18-4a02-9e5c-0301155fb304</uuid>
<memory unit='KiB'>16777216</memory>
<currentMemory unit='KiB'>16777216</currentMemory>
<memoryBacking>
<hugepages/>
</memoryBacking>
<vcpu placement='static'>8</vcpu>
<os>
@Kaurin
Kaurin / gist:ce71d8cc8432bfb93f6b
Created January 6, 2016 00:03
Win10 XML (Don't be confused by wirt name win8.1, I just used the default one)
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit win8.1
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>win8.1</name>
<uuid>9255d59e-e736-48cf-80f3-e7f697e64894</uuid>