This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import subprocess | |
def set_resolution(output, mode, refresh, apply): | |
modeline = False | |
width, height = mode.split('x') | |
gtf_cmd = f"gtf {width} {height} {refresh}" | |
gtf_output = subprocess.check_output(gtf_cmd, shell=True, text=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import redis | |
import pickle | |
import argparse | |
class RedisMigrate(): | |
def __init__(self, host, port, db): |