Skip to content

Instantly share code, notes, and snippets.

@John-Gee
John-Gee / script.sh
Created October 29, 2016 22:30
Script to trigger the issue
#!/bin/bash
file=$1
while true
do
# get the window id
WID=`xdotool search "mpv" | head -1`
if [ -z "$WID" ]; then
mpv $file &
@John-Gee
John-Gee / output.txt
Created October 29, 2016 22:38
mpv log
[ 0.001][v][cplayer] Command line options: '--log-file=output.txt' 'Bad Boys II (2003).mkv'
[ 0.001][v][cplayer] mpv git-6b22b21 (C) 2000-2015 mpv/MPlayer/mplayer2 projects
[ 0.001][v][cplayer] built on Sat Oct 29 15:35:25 PDT 2016
[ 0.001][v][cplayer] ffmpeg library versions:
[ 0.001][v][cplayer] libavutil 55.28.100
[ 0.001][v][cplayer] libavcodec 57.48.101
[ 0.001][v][cplayer] libavformat 57.41.100
[ 0.001][v][cplayer] libswscale 4.1.100
[ 0.001][v][cplayer] libavfilter 6.47.100
[ 0.001][v][cplayer] libswresample 2.1.100
VmSize: 3886640 kB
VmSize: 3882544 kB
VmSize: 3882544 kB
VmSize: 3882544 kB
VmSize: 3882544 kB
VmSize: 3882544 kB
VmSize: 3890736 kB
VmSize: 3890736 kB
VmSize: 3882544 kB
VmSize: 3882544 kB
VmSize: 3707796 kB
VmSize: 3707796 kB
VmSize: 3707796 kB
VmSize: 3707796 kB
VmSize: 3707796 kB
VmSize: 3707796 kB
VmSize: 3707796 kB
VmSize: 3707796 kB
VmSize: 3707796 kB
VmSize: 3707796 kB
The game PAYDAY 2 The Bomb Heists DLC was not found in the steam db.
The game PAYDAY 2 John Wick Weapon Pack DLC was not found in the steam db.
The game ÆRENA - Clash of Champions (Early Access) was not found in the steam db.
The game BloodRealm: Battlegrounds Debut Champion Lora + 3 Elite Packs was not found in the steam db.
The game Breach & Clear: Deadline was not found in the steam db.
The game PAYDAY 2 - Lycanwulf and The One Below Masks was not found in the steam db.
The game Company of Heroes 2 - The Western Front Armies: US Forces was not found in the steam db.
The game Broken Sword 3: The Sleeping Dragon was not found in the steam db.
The game Call of Juarez : Gunslinger was not found in the steam db.
The game Crusader Kings II - Russian Unit Pack was not found in the steam db.
The game ÆRENA - Clash of Champions (Early Access) was not found in the steam db.
The game Breach & Clear: Deadline was not found in the steam db.
Matched PAYDAY 2 John Wick Weapon Pack DLC with payday 2: john wick weapon pack
Info for game PAYDAY 2 John Wick Weapon Pack DLC was retrieved, 03:08:44.564528
Matched Call of Juarez : Gunslinger with call of juarez gunslinger
Matched PAYDAY 2 The Bomb Heists DLC with payday 2: the bomb heists
Matched Alien Breed Complete Pack with devilian - complete pack
Info for game Call of Juarez : Gunslinger was retrieved, 03:08:46.851255
Info for game PAYDAY 2 The Bomb Heists DLC was retrieved, 03:08:47.067496
Info for game Alien Breed Complete Pack was retrieved, 03:08:47.699953
RPCS3 v0.0.2-5139-fa78204 Alpha
·! 0:00:00.000000 LDR: Path: /home/john/.var/app/net.rpcs3.RPCS3/config/rpcs3/dev_hdd0/game/BLUS31319/PS3_GAME/USRDIR/EBOOT.BIN
·! 0:00:00.000034 LDR: Title: Hatsune Miku: Project DIVA F
·! 0:00:00.000037 LDR: Serial: BLUS31319
·! 0:00:00.000073 LDR: Cache: /home/john/.var/app/net.rpcs3.RPCS3/config/rpcs3/data/BLUS31319/8a0b3901c01b08337a885f75-EBOOT.BIN/
·! 0:00:00.000643 LDR: Used configuration:
Audio:
Convert to 16 bit: false
Downmix to Stereo: true
Dump to file: false
@John-Gee
John-Gee / retroarch_update_cores
Created September 5, 2017 11:44
Added threading
#!/usr/bin/env bash
# github.com/cpinkus
update_core()
{
path="$1"
corename="$(basename $path)"
timestamp_old="$(grep $corename $cores_path/.timestamps.old)"
timestamp_new="$(grep $corename $cores_path/.timestamps.new)"
if [[ "$timestamp_new" == "$timestamp_old" ]]
RPCS3 v0.0.4-50-bfb3144 Alpha | HEAD
Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz | 8 Threads | 15.62 GiB RAM | AVX+
S LDR: Boot from gamelist per doubleclick: done
S {PPU[0x1000000] Thread (main_thread)} PPU: LLVM: Loaded module v2+010200-617B936D1078763C-haswell.obj
S {PPU[0x1000000] Thread (main_thread)} PPU: LLVM: Loaded module v2+04F618-AEC8B4D7DB423D0C-haswell.obj
S {PPU[0x1000000] Thread (main_thread)} PPU: LLVM: Loaded module v2+08F5C0-B8E123292341CAFB-haswell.obj
S {PPU[0x1000000] Thread (main_thread)} PPU: LLVM: Loaded module v2+0CF214-8963FAFAD230D4C4-haswell.obj
S {PPU[0x1000000] Thread (main_thread)} PPU: LLVM: Loaded module v2+10F158-AB9550DD8B3FEBE8-haswell.obj
S {PPU[0x1000000] Thread (main_thread)} PPU: LLVM: Loaded module v2+14EE84-EF7E7F3B1F089107-haswell.obj
S {PPU[0x1000000] Thread (main_thread)} PPU: LLVM: Loaded module v2+18ED64-E37AD176B4209489-haswell.obj
DyingLightGame: /usr/lib/libcurl-gnutls.so.4: no version information available (required by libengine.so)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffde984700 (LWP 22393)]
[New Thread 0x7fffdde30700 (LWP 22394)]
[New Thread 0x7fffdd62f700 (LWP 22395)]
[New Thread 0x7fffdce2e700 (LWP 22396)]
[New Thread 0x7fffcffff700 (LWP 22397)]
[New Thread 0x7fffcf7fe700 (LWP 22398)]
[New Thread 0x7fffceffd700 (LWP 22399)]