Skip to content

Instantly share code, notes, and snippets.

View qiwichupa's full-sized avatar

qiwichupa

View GitHub Profile
@qiwichupa
qiwichupa / avmerge.py
Created October 8, 2021 12:12
This script was created for merging stream parts from twitch.tv service (but should be versatile).
#!/usr/bin/env python3
"""
Script: avmerge.py
Author: Sergey "Qiwichupa" Pavlov
Version: 2.04
This script was created for merging stream parts from twitch.tv service (but should be versatile).
Sometimes it is very simple task, but sometimes resizing and reencoding is needed.
Ok, to the code. First of all this script was written for executing in current directory.
I use 'os.listdir' for searching files by extension ('fileExt' variable).
@qiwichupa
qiwichupa / mednafen-server-run-and-log.py
Created September 24, 2021 07:27
Runs mednafen server, restarts it if it fails, and catch output to log file
#!/usr/bin/env python3
#Runs mednafen server, restarts it if it fails, and catch output to log file
import subprocess
import time
import sys
import pty
import os
def reader(fd):
#!/usr/bin/env python
#Copyright (C) 2009 Allen Sanabria
#This program is free software; you can redistribute it and/or modify it under
#the terms of the GNU General Public License as published by the Free Software Foundation;
#either version 2 of the License, or (at your option) any later version.
#This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
#without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#See the GNU General Public License for more details. You should have received a copy of i
@qiwichupa
qiwichupa / vbmtool-0.7.sh
Created September 29, 2009 19:58
Easy to use, lightweight, interactive shell for VBoxManage and VBoxHeadless tools from Sun VirtualBox. Include basic operations like as creation virtual machine, change basic parameters, start machine in headless mode
#!/bin/bash
#
# Filename: vbmtool-0.7.sh
# Version 0.7
# Date: 2009/09/29 19:56
# Licence: GNU GPL2
# Author: Sergey "Qiwichupa" Pavlov <qiwichupa@gmail.com>
#
#
# Easy to use, lightweight, interactive shell for VBoxManage