Skip to content

Instantly share code, notes, and snippets.

View IvarWithoutBones's full-sized avatar

Ivar IvarWithoutBones

View GitHub Profile
@IvarWithoutBones
IvarWithoutBones / pulseaudio-network-share.sh
Last active December 5, 2024 19:23
A script to stream audio from any Pulseadio-enabled system to an Android phone over the internet, in my case to emulate a bluetooth adapter.
#!/usr/bin/env bash
# A script to stream audio from any Pulseadio-enabled system to an Android phone over the internet, in my case to emulate a bluetooth adapter.
# The Android app "Simple Protocol Player" can be used to connect to the stream opened by this script: https://github.com/kaytat/SimpleProtocolPlayer.
# Based off of this post: https://superuser.com/a/750324. Thanks!
# Use `pactl list | grep "Monitor Source"` to find the appropriate output source.
sourceName="alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
# Both must match with what is configured in the Simple Protocol Player app.
diff --git a/os_dep/linux/rtw_proc.c b/os_dep/linux/rtw_proc.c
index eb942a1..fa3a592 100644
--- a/os_dep/linux/rtw_proc.c
+++ b/os_dep/linux/rtw_proc.c
@@ -212,7 +212,7 @@ const int drv_proc_hdls_num = sizeof(drv_proc_hdls) / sizeof(struct rtw_proc_hdl
static int rtw_drv_proc_open(struct inode *inode, struct file *file)
{
/* struct net_device *dev = proc_get_parent_data(inode); */
- ssize_t index = (ssize_t)PDE_DATA(inode);
+ ssize_t index = (ssize_t)pde_data(inode);
import github
import requests
import os.path
import shutil
import libarchive.public
from clint.textui import progress
g = github.Github()
def download(url, tag, yuzu_version):