Skip to content

Instantly share code, notes, and snippets.

View derrod's full-sized avatar

Rodney derrod

View GitHub Profile
@derrod
derrod / legendary_origin.md
Last active April 18, 2024 06:31
Star Wars Battlefront II on Linux via Legendary

Installing Star Wars: Battlefront II with Legendary

The game is not installed or downloaded via Epic, instead the Epic Games Launcher launches Origin to link your account to install the game. This can be done manually to still be able to install and download the game without the Epic Games Launcher.

Installing Origin

Origin needs to be installed and working for this, please consult https://github.com/lutris/docs/blob/master/Origin.md for how to get it running on Linux via Lutris.

On Windows Origin just needs to be installed and ideally updated to the current version.

@derrod
derrod / cx511h_lg4k.patch
Created August 11, 2020 12:12
Live Gamer 4K Linux driver patch
diff --git a/Generic_Ubuntu_CL511HN_Drv_1.0.0031/cl511_20200706_release/driver/board/cx511h/board_alsa.c b/Generic_Ubuntu_CL511HN_Drv_1.0.0031/cl511_20200706_release/driver/board/cx511h/board_alsa.c
index 92b2ef9..709f29f 100644
--- a/Generic_Ubuntu_CL511HN_Drv_1.0.0031/cl511_20200706_release/driver/board/cx511h/board_alsa.c
+++ b/Generic_Ubuntu_CL511HN_Drv_1.0.0031/cl511_20200706_release/driver/board/cx511h/board_alsa.c
@@ -125,7 +125,7 @@ void board_alsa_init(cxt_mgr_handle_t cxt_mgr)
err=BOARD_ALSA_ERROR_ALLOC_CXT;
break;
}
- if (subsystem_id == 0x5113)
+ if (subsystem_id == 0x5730)
@derrod
derrod / Instructions.md
Last active January 1, 2021 03:58
Crunchyroll Android App "Unblocker" patch

Instructions for patching (requires apktool and some apk signing tool)

  1. Obtain APK (google how, e.g. using MiXplorer)
  2. Decompile APK using apktool with apktool -r Crunchyroll.apk
  3. Enter directory, apply patch using patch -p0 < /path/to/crunchyroll_android.patch
  4. Rebuild APK (apktool b Crunchyroll/)
  5. Sign apk in Crunchyroll/dist directory
    • Example using uber-apk-signer: java -jar uber-apk-signer.jar --apks Crunchyroll/dist/Crunchyroll.apk
  6. Install signed APK on your device
@derrod
derrod / nrj_playlist.py
Created January 21, 2017 22:02
Creates .pls playlist for NRJ (ENERGY) radio stations
#!/usr/bin/env python2.7
import json
import urllib2
locale = 'de'
url = 'http://players.nrjaudio.fm/wr_api/live/%s?ver=2&fmt=json&act=get_setup&id_radio=1&cp=utf8&id_sysos=2' % locale
r = urllib2.urlopen(url)
j = json.loads(r.read())
@derrod
derrod / obs_hotkey.py
Created December 17, 2016 18:04
obs hotkey thing in python
# Python, yay!
import win32api
import win32con
hotkeys = {
'start_stream': 0x7C, # F13
'stop_stream': 0x7D, # F14
'switch_to_break': 0x7E, # F15
'switch_to_ingame': 0x7F, # F16
@derrod
derrod / 01 - girlstorule.m3u8 (obfuscated)
Last active November 25, 2022 12:54
Twitch playlist with ad insertion vs playlist without
#EXTM3U
#EXT-X-TWITCH-INFO:NODE="video-edge-c55608.ams02",MANIFEST-NODE-TYPE="weaver",MANIFEST-NODE="video-edge-c55608.ams02",SUPPRESS="true",SERVER-TIME="1476795174.69",USER-IP="178.203.XXX.XXX",SERVING-ID="b5879a2c94bb445a82ac3c9b33c26398",CLUSTER="ams02",ABS="false",BROADCAST-ID="23443451840",STREAM-TIME="3122.69299889",MANIFEST-CLUSTER="ams02"
#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="chunked",NAME="Source",AUTOSELECT=YES,DEFAULT=YES
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=3757000,RESOLUTION=1920x1080,VIDEO="chunked"
https://video-edge-c55608.ams02.hls.ttvnw.net/v1/playlist/CsQBKsUlVdMUqGNt0s_Gg6DZ9GQEwivMbtFl20u_k_7H7T3bLiInsDAtkmqnofMxfjNnrbh4GWk5icsVezMtgsoo53wzdi5hqygIZU-i2ueaZ80cIt14kOTSrsCwOzkM4QTVZ0bowtvfNFefrR-6F1d0tt91VkBVZRDkqXaRHAR5oSHxTkzbLTFy_gens5mW4Oh5VeSTYolzpyiX5I1HuGPOVlX0wKRWYnMUKInnirBzzMCPENRrzUP3JJRJ6UQyBcVlvmLV5xIQgVw1V68dT6EHrALYO9bn3RoMHjxkpclGnX237_at.m3u8
#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="high",NAME="High",AUTOSELECT=YES,DEFAULT=YES
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1760000,RESO
@derrod
derrod / twitchhtml5.user.js
Last active November 18, 2015 17:30
Twitch full HTML5 player userscript
// ==UserScript==
// @name Twitch HTML5 player!
// @namespace http://twitter.com/der_rod
// @version 0.2
// @description Replaces the flash player with an iframe containing the new full HTML5 player
// @author Rodney
// @match http://www.twitch.tv/*
// @grant none
// ==/UserScript==