Skip to content

Instantly share code, notes, and snippets.

View ReeseWang's full-sized avatar

Ruoxi Wang ReeseWang

View GitHub Profile
@ReeseWang
ReeseWang / PKGBUILD
Created July 2, 2022 10:20
PKGBUILD for HP Library & Tape Tools 6.3
# Contributor: Reese Wang <thuwrx10 at gmail dot com>
# Contributor: Adam Nielsen <malvineous@shikadi.net>
# Maintainer: Adam Nielsen <malvineous@shikadi.net>
#
# After install, launch by running /usr/bin/hpe_ltt
#
pkgname=hpltt
pkgver=6.3
@ReeseWang
ReeseWang / youtube-tv.desktop
Created March 7, 2021 07:29
Desktop entry for launching YouTube TV web app from Steam big pic mode, when using Steam as window manager (steamos-compositor-plus). Put it under /usr/share/applications/ and add it to Steam library in Steam settings.
[Desktop Entry]
Version=1.0
Name=YouTube TV
StartupWMClass=Google-chrome
Exec=env LD_PRELOAD=/usr/lib/libmodeswitch_inhibitor.so /usr/bin/google-chrome-stable --user-agent=\"Mozilla/5.0 (SMART-TV; Linux; Tizen 4.0.0.2) AppleWebkit/605.1.15 (KHTML, like Gecko)\" --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --enable-accelerated-video-decode --enable-features=VaapiVideoDecoder --use-vulkan --kiosk --app=https://www.youtube.com/tv#/ --windows-size=1920,1080
StartupNotify=true
Terminal=false
Icon=youtube
Type=Application
Categories=Network;WebBrowser;
@ReeseWang
ReeseWang / gist:3a03cc32f727064b5918b318d14beb64
Created January 15, 2020 07:52
Audio service codes of PHICOMM R1
ANDROID_SERIAL=
ro.build.version.release=5.1.1
TAG=android-5.1.1_r1
SERVICE=audio
SERVICE_PACKAGE=android.media.IAudioService
1 void adjustSuggestedStreamVolume(int direction, int suggestedStreamType, int flags, String callingPackage)
2 void adjustStreamVolume(int streamType, int direction, int flags, String callingPackage)
3 void adjustMasterVolume(int direction, int flags, String callingPackage)
4 void setStreamVolume(int streamType, int index, int flags, String callingPackage)
5 oneway void setRemoteStreamVolume(int index)
@ReeseWang
ReeseWang / dhcpd4@.service
Created October 13, 2019 10:49
Systemd service file for starting a DHCP server on a specific interface with a separate lease file, modified from the dhcp package from Arch Linux.
[Unit]
Description=IPv4 DHCP server on %i
After=network.target network-online.target
Wants=network-online.target
[Service]
Type=forking
ExecStartPre=/usr/bin/touch /var/lib/dhcp/dhcpd@%i.leases
ExecStart=/usr/bin/dhcpd -4 -q -cf /etc/dhcpd.conf.d/%i.conf -pf /run/dhcpd4/dhcpd@%i.pid -lf /var/lib/dhcp/dhcpd@%i.leases %i
RuntimeDirectory=dhcpd4