Skip to content

Instantly share code, notes, and snippets.

View GhostofGoes's full-sized avatar

Chris Goes GhostofGoes

  • New Mexico, USA
  • 02:05 (UTC -06:00)
View GitHub Profile
@dmfigol
dmfigol / asyncio_loop_in_thread.py
Last active July 11, 2025 06:06
Python asyncio event loop in a separate thread
"""
This gist shows how to run asyncio loop in a separate thread.
It could be useful if you want to mix sync and async code together.
Python 3.7+
"""
import asyncio
from datetime import datetime
from threading import Thread
from typing import Tuple, List, Iterable
@scragly
scragly / learning_dpy.md
Last active February 11, 2025 16:33
Learning discord.py
@andy-thomason
andy-thomason / Genomics_A_Programmers_Guide.md
Created May 14, 2019 13:32
Genomics a programmers introduction

Genomics - A programmer's guide.

Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.

https://www.genomicsplc.com

@sergeyklay
sergeyklay / journalctl-cheatsheet.md
Last active July 29, 2025 07:39
Journalctl Cheat Sheet

Journalctl Cheat Sheet

Configuration

Permissions

To see messages from other users and the system as well as performing various log operations from a regular user add it to the group:

sudo usermod -aG systemd-journal $USER
@maxerium
maxerium / btmc-skin-doc.md
Last active April 15, 2023 10:06
BTMC's Skins

BTMC's Skin Overview/List

This will always be kept up-to-date. (Current Revision: 1.4, 03rd November 2020)

The list is maintained by maxi#0666. If anything is broken or missing, please DM me on Discord. Thank you!

This skin list is not up-to-date anymore. Head over to this site for the actual document.

@klo2k
klo2k / gist:fe794f107c11292ba47b4d052c547983
Created February 12, 2022 08:01
Install virt-manager in Windows 11 WSL (qemu, Windows Subsystem for Linux)
# Inside WSL...
# Install virt-manager
sudo apt install -y virt-manager
# Add youself to kvm and libvirt group
sudo usermod --append --groups kvm,libvirt "${USER}"
# Fix-up permission to avoid "Could not access KVM kernel module: Permission denied" error
sudo chown root:kvm /dev/kvm
@AbstractUmbra
AbstractUmbra / 00-deprecation.md
Last active June 14, 2025 18:43
discord.py 2.0+ slash command info and examples

This gist has now been 'deprecated' and has moved...

... to my blog style space for easier contribution by third parties and to provide what I believe to be an easier reading experience. Please field all enquiries and issues to the source repository.

@kabachuha
kabachuha / keyframes.json
Created February 20, 2023 18:46
Deforum bad apple keyframes
{
"0": "detailed forest landscape with lots of vibrant flowers and sakura trees",
"30": "anime 1girl reimu, view from behind",
"160": "anime 1girl reimu holding a grilled apple",
"280": "grilled apple",
"355": "anime 1girl kirisame marisa witch flying on a broomstick holding a grilled apple",
"500": "anime 1girl kirisame marisa witch flying on a broomstick",
"527": "anime 1girl kirisame marisa witch flying on a broomstick towards an intricate detailed mansion",
"987": "grilled apple stub",
"1347": "anime 1girl patchouli knowledge",
@kabachuha
kabachuha / deforum_settings.json
Created February 22, 2023 17:30
ControlNet ScribbleMode + Deforum hybrid mode — Bad Apple
{
"W": 768,
"H": 512,
"tiling": false,
"seed": 1733594390,
"sampler": "Euler a",
"seed_resize_from_w": 0,
"seed_resize_from_h": 0,
"steps": 25,
"ddim_eta": 0.0,
@kabachuha
kabachuha / deforum-video_settings.json
Created February 23, 2023 04:04
Deforum ControlNet HED mode — prev Bad Apple rendering coloration
{
"skip_video_for_run_all": false,
"fps": 24,
"make_gif": false,
"ffmpeg_location": "/home/kabachuha/.local/lib/python3.8/site-packages/imageio_ffmpeg/binaries/ffmpeg-linux64-v4.2.2",
"ffmpeg_crf": "17",
"ffmpeg_preset": "slow",
"add_soundtrack": "File",
"soundtrack_path": "bad_apple.webm",
"r_upscale_video": false,