Skip to content

Instantly share code, notes, and snippets.

View michidk's full-sized avatar
🐳
🐳🐳

Michael Lohr michidk

🐳
🐳🐳
View GitHub Profile
@michidk
michidk / fuck.rust
Created May 10, 2024 19:29
Fix meh plz
use std::borrow::BorrowMut;
use std::collections::HashMap;
use std::hash::Hash;
use std::sync::Arc;
use async_trait::async_trait;
use log::debug;
use ratatui::backend::CrosstermBackend;
use ratatui::layout::Rect;
@michidk
michidk / apps.yaml
Last active December 31, 2022 15:30
appdeomon party lights
party:
module: party
class: Party
trigger_input: "input_boolean.party"
brightness_input: "input_number.party_brightness"
interval: 0.5
light_group: "light.party_lights"
restore_state_delay: 2
@michidk
michidk / .bashrc
Created August 30, 2022 12:10
vscode devcontainer utility script
# utiliy for opening devcontainers
vs() {
if [ -z "$1" ]; then
if [ -d ".devcontainer" ]; then
echo "Found devcontainer"
devcontainer open .
else
echo "No devcontainer found"
code .
fi
@michidk
michidk / Update-AUPackages.md
Last active November 17, 2024 02:04
Update-AUPackages Report #powershell #chocolatey
@michidk
michidk / cube.def
Last active January 2, 2022 10:44
ARAP Files
1 0 0 2
0 1 0 0
0 0 1 0
0 0 0 1
use portaudio as pa;
use anyhow::Result;
fn main() -> Result<()> {
let pa = pa::PortAudio::new()?;
let mut settings = pa.default_output_stream_settings(1, 44_100.0, 64u32)?;
settings.flags = pa::stream_flags::CLIP_OFF;
let mut phase = 0.0;
@michidk
michidk / deploy.yml
Last active April 7, 2021 13:03
GitHub deploy to branch
name: Deploy LaTeX document
on:
push:
branches:
- master
jobs:
build_resume:
runs-on: ubuntu-latest
steps:
- name: Setup SSH
@michidk
michidk / .gitlab-ci.yml
Last active April 7, 2021 13:02
Gitlab deploy to branch
stages:
- build
- deploy
build:
stage: build
image: node:11
before_script:
- npm install --progress=false --unsafe-perm
script:
- npm run build
@michidk
michidk / bdrf.sprj
Last active March 14, 2021 14:41
SHADERRed BRDF Shader
<?xml version="1.0"?>
<project version="2">
<pipeline>
<pass name="BRDF" type="shader" active="true" patchverts="1">
<shader type="vs" path="shaders\vertex.vk" entry="main" />
<shader type="ps" path="shaders\fragment.vk" entry="main" />
<inputlayout>
<item value="Position" semantic="POSITION" />
<item value="Normal" semantic="NORMAL" />
<item value="Texcoord" semantic="TEXCOORD0" />
@michidk
michidk / gist:0425ab84d006db50ca3f26821d8747ad
Last active July 3, 2020 11:53
Drone Betaflight Config
# version
# Betaflight / STM32F411 (S411) 4.2.0 Jun 14 2020 / 03:04:43 (8f2d21460) MSP API: 1.43
# config: manufacturer_id: MTKS, board_name: MATEKF411, version: be0c9205, date: 2020-01-15T19:44:32Z
# start the command batch
batch start
board_name MATEKF411
manufacturer_id MTKS