Skip to content

Instantly share code, notes, and snippets.

View Ivorforce's full-sized avatar
👽
Working from Mars

Lukas Tenbrink Ivorforce

👽
Working from Mars
View GitHub Profile
@Ivorforce
Ivorforce / gh-project-update-created-at.sh
Created May 5, 2026 11:35
Populate a 'Created at' column in a GitHub project.
#!/usr/bin/env bash
# Fill a "Created at" Date field on a GitHub Project (v2) for every item
# whose value is currently empty, using the linked issue/PR's createdAt.
#
# Usage:
# ./gh-project-update-created-at.sh <owner> <project-number> [--apply] [--field "Created at"]
#
# <owner> may be either a user or organization login — auto-detected.
# Defaults to dry-run; pass --apply to actually write.
# Requires `gh auth login` with the `project` scope (gh auth refresh -s project).
#%%
from PIL import Image, ImageDraw, ImageFont
import numpy as np
import matplotlib.pyplot as plt
from einops import rearrange, reduce, repeat
import unicodedata
import string
import sys
from pathlib import Path
import PIL.Image
import numpy as np
import matplotlib.pyplot as plt
from einops import rearrange, reduce, repeat
import cv2
#############################################################################################
ascii = PIL.Image.open('../resources/8s0Sj.gif')
ascii = np.asarray(ascii) * 16
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>Add</key>
<array>
<dict>
<key>Comment</key>
import sys
import os
from pathlib import Path
from os.path import expanduser
home = expanduser("~")
idf_path = (Path.home() / Path(".platformio/packages/framework-espidf")).absolute()
os.environ['IDF_PATH'] = str(idf_path)
@Ivorforce
Ivorforce / ESP32-SPI.h
Created June 29, 2020 21:48
ESP32-SPI.h
#include <HardwareSerial.h>
#include <FastLED.h>
#include <driver/spi_common.h>
#include <driver/spi_master.h>
#include <cstdint>
#include <SPI.h>
typedef struct {
// source = MIKMIDIDeviceManager.shared.virtualSources[idx]
try MIKMIDIDeviceManager.shared.connectInput(source) { (source, commands) in
var numbers = MIDI.numbers
for case let command as MIKMIDIControlChangeCommand in commands {
numbers[safe: Int(command.controllerNumber)] = Float(command.controllerValue) / 127
}
MIDI.numbers = numbers
//
// VisualizerWindowController.swift
// TenTunes
//
// Created by Lukas Tenbrink on 07.09.18.
// Copyright © 2018 ivorius. All rights reserved.
//
import Cocoa
//
// TrackSpectrumView.swift
// TenTunes
//
// Created by Lukas Tenbrink on 17.02.18.
// Copyright © 2018 ivorius. All rights reserved.
//
import Cocoa
import QuartzCore
❯ bash install_stack.sh devstack
Capturing output to logs/install-20171204-202022.log
Installation started at 2017-12-04 20:20:22
Installing release 'open-release/ficus.master'
######################################################################## 100,0%
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Installed the plugin 'vagrant-vbguest (0.13.0)'!
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ficus-devstack-2017-02-07'...