Skip to content

Instantly share code, notes, and snippets.

import pyarrow.flight as fl
import json
client = fl.FlightClient("grpc://127.0.0.1:8815")
print(
client.do_get(
fl.Ticket(json.dumps({"contract": "0x", "event": "0x"}))
).read_pandas()
)
@firelightning13
firelightning13 / [GUIDE] GPU Passthrough for Laptop with Fedora.md
Last active December 11, 2025 11:35
[GUIDE] GPU Passthrough for Laptop with Fedora

Running Windows 10/11 Guest with GPU Passthrough using laptop running Fedora

Abstract

This is a full guide for people who wanted to set up Windows 10/11 VM with QEMU/KVM hypervisor enhancements for a laptop that is configured with hybrid graphics card like Intel/AMD + NVIDIA. This process will take about 1 to 2 hours, depending on your system's performance and your patience =)

There is another comprehensive guide you can follow here (shoutout to asus-linux team who made supergfxctl which is a very important tool for this guide). It is more up-to-date than mine. I would probably incorporate those information into my guide, but you are welcome to use this one as a reference!

Before we proceed:

  • This guide is exclusively for Fedora users because this distro is quite different to set up than other distro such as Arch. I would say Arch is easier to setup than Fedora, but sometimes you like to use Fedora than Arc
@MicahZoltu
MicahZoltu / tornado-community-build.md
Last active July 18, 2023 22:00
Tornado Cash Community Build
// Name: Midjourney Prompt
// Description: Generate a Random Midjourney Prompt
// Author: John Lindquist
// Twitter: @johnlindquist
import "@johnlindquist/kit"
let count = parseInt(
await arg({
placeholder: "How many prompts to generate and paste?",
@gladiopeace
gladiopeace / jd_skill_projector.json
Created June 24, 2022 03:35 — forked from YoungXu06/jd_skill_projector.json
Job-Skill-Visualization
{
"embeddings": [
{
"tensorName": "JD skills(Deepwalk)",
"tensorShape": [
23221,
64
],
"tensorPath": "https://gist.githubusercontent.com/YoungXu06/fe9dc4d9bdf60b60bdcbe915ee8d8d54/raw/ebff657496190cd4790dddc044c625bfda4e9998/skill_dw_embs.tsv",
"metadataPath": "https://gist.githubusercontent.com/YoungXu06/fe9dc4d9bdf60b60bdcbe915ee8d8d54/raw/ebff657496190cd4790dddc044c625bfda4e9998/skill_dw_dict.tsv"
@gladiopeace
gladiopeace / 00-android-bypass-certificate-pinning-and-mitm-attack-setup.md Certificate Pinning Bypassing: Setup with Frida, mitmproxy and Android Emulator with a writable file system
@gladiopeace
gladiopeace / Dockerfile
Created June 24, 2022 03:17 — forked from ljmf00/Dockerfile
Android Emulator on docker
# _____ .___ __
# / _ \ ____ __| _/____ ____ | | __ ___________
# / /_\ \ / \ / __ |/ _ \_/ ___\| |/ // __ \_ __ \
# / | \ | \/ /_/ ( <_> ) \___| <\ ___/| | \/
# \____|__ /___| /\____ |\____/ \___ >__|_ \\___ >__|
# \/ \/ \/ \/ \/ \/
#
# Unbloat version of budtmo/docker-android-x86-11.0
# Thanks to @benjamin.botto for 3D hardware acceleration inside docker
#
@Drew3D
Drew3D / split-midjourney-grids.bat
Created June 14, 2022 13:08
Windows batch File for splitting MidJourney 2x2 .webp grid images into 4 separate PNG files using ffmpeg
for %%f in ("_RAW_GRIDS_WEBP/*.webp") do (
ffmpeg.exe -n -i "_RAW_GRIDS_WEBP/%%f" -vf "crop=iw/2:ih/2:0:0" "_SPLIT_GRIDS\%%~nf-01.png"
ffmpeg.exe -n -i "_RAW_GRIDS_WEBP/%%f" -vf "crop=iw/2:ih/2:iw/2:0" "_SPLIT_GRIDS\%%~nf-02.png"
ffmpeg.exe -n -i "_RAW_GRIDS_WEBP/%%f" -vf "crop=iw/2:ih/2:0:ih/2" "_SPLIT_GRIDS\%%~nf-03.png"
ffmpeg.exe -n -i "_RAW_GRIDS_WEBP/%%f" -vf "crop=iw/2:ih/2:iw/2:ih/2" "_SPLIT_GRIDS\%%~nf-04.png"
)
pause
@CGArtPython
CGArtPython / camera_track_empty_2.py
Created June 13, 2022 00:28
Beginner Blender Python Exercise: Track an empty with a camera (part 2)
# give Python access to Blender's functionality
import bpy
def set_end_frame(frame_count):
"""set the end frame"""
bpy.context.scene.frame_end = frame_count
def set_fps(fps):
Do need DAM if... Do NOT need DAM if...
Have 1000+ assets Have less tahn 1000+ assets
Collaborate with team on your assets Work alone
Have licensed assets Have short asset lifecycle
Search assets across your library Do not develop assets