Skip to content

Instantly share code, notes, and snippets.

View billylindeman's full-sized avatar

Billy Lindeman billylindeman

View GitHub Profile
@nateraw
nateraw / stable_diffusion_walk.py
Created August 18, 2022 05:59
Walk between stable diffusion text prompts
"""
Built on top of this gist by @karpathy:
https://gist.github.com/karpathy/00103b0037c5aaea32fe1da1af553355
stable diffusion dreaming over text prompts
creates hypnotic moving videos by smoothly walking randomly through the sample space
example way to run this script:
$ python stable_diffusion_walk.py --prompts "['blueberry spaghetti', 'strawberry spaghetti']" --seeds 243,523 --name berry_good_spaghetti
@harrykipper
harrykipper / gist:06dda2bb44a600c0e3b46ee0b90216c7
Created July 20, 2017 13:24
Thinkpad X230 FHD kernel patch
diff -Naur linux-4.11-orig/drivers/acpi/pci_root.c linux-4.11/drivers/acpi/pci_root.c
--- linux-4.11-orig/drivers/acpi/pci_root.c 2017-05-22 00:51:27.556822660 +0200
+++ linux-4.11/drivers/acpi/pci_root.c 2017-05-22 00:54:13.046343220 +0200
@@ -500,7 +500,7 @@
} else {
decode_osc_control(root, "OS requested", requested);
decode_osc_control(root, "platform willing to grant", control);
- dev_info(&device->dev, "_OSC failed (%s); disabling ASPM\n",
+ dev_info(&device->dev, "_OSC failed (%s); we keep ASPM on anyway\n",
acpi_format_exception(status));
@roadrunner2
roadrunner2 / 0 Linux-On-MBP-Late-2016.md
Last active November 15, 2024 17:51
Linux on MacBook Pro Late 2016 and Mid 2017 (with Touchbar)

Introduction

This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).

The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.

Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se

@oc2pcoj
oc2pcoj / Good IOS RTSP Player.md
Last active October 30, 2024 06:50
iOS RTSP player for IP video cameras
@dmitshur
dmitshur / gist:6927554
Last active October 5, 2024 06:15
[Legacy GOPATH mode] How to `go get` private repos using SSH key auth instead of password auth.