Skip to content

Instantly share code, notes, and snippets.

View mdeguzis's full-sized avatar

Michael T. DeGuzis mdeguzis

View GitHub Profile
mdeguzis / steam_console_params.txt
Created February 12, 2023 18:42 — forked from davispuh/steam_console_params.txt
Steam client parameters, consoles commands and variables
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
-cef-disable-breakpad - disables breakpad in crash dumps
mdeguzis /
Created August 22, 2020 17:59
# Author Michael DeGuzis
# Description: Simple script to grab the latest Proton GE without a git clone / build.
if [[ -z ${steam_type} ]]; then
mdeguzis /
Created May 5, 2018 22:34 — forked from noahcoad/
Python to convert json to yaml
#!/usr/bin/env python3
# convert json to yaml
# python3 < ~/code/manpow/moneybug/mbuploader/support/offices.json
# gist
import yaml, json, sys
json_text = r.json()
# get total length of dictionary keys for tracking
for key, value in json_text.iteritems():
item_index = 0
if key == 'FileStatuses':
total_items = len(json_text['FileStatuses']['FileStatus'][:])
for listitems in json_text['FileStatuses']['FileStatus'][:]:
perm_set = []
item_count = len(json_text['FileStatuses']['FileStatus'][:])
octal_perms = json_text['FileStatuses']['FileStatus'][item_index]['permission']
mdeguzis / gist:fd2093018a5e49e1bdfd0d50738d58e5
Created February 18, 2018 21:53 — forked from jwebcat/gist:5122366
Properly download from github using wget and curl
wget --no-check-certificate --content-disposition
# --no-check-cerftificate was necessary for me to have wget not puke about https
curl -LJO
def initialize_logger(output_dir):
logger = logging.getLogger()
# create console handler and set level to info
handler = logging.StreamHandler()
formatter = logging.Formatter("%(levelname)s - %(message)s")
mdeguzis /
Created December 17, 2017 00:08 — forked from chrisroos/
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

mdeguzis /
Created November 26, 2017 23:56 — forked from carlessanagustin/
This is a list of interesting plugins to use with Jenkins

Jenkins plugins

You can read more about each plugin using the SEARCH box at Jenkins homepage.

  • ChuckNorris Plugin: Displays a picture of Chuck Norris (instead of Jenkins the butler) and a random Chuck Norris 'The Programmer' fact on each build page.


  • thinBackup: This plugin simply backs up the global and job specific configurations (not the archive or the workspace).
  • JobConfigHistory Plugin: Saves copies of all job and system configurations.
mdeguzis /
Created May 9, 2017 16:13 — forked from mattfahrner/
This snippet allows you to do a Python LDAP search with paged controls. The latest version now supports Python "ldap" 2.4. Many thanks to Ilya Rumyantsev for doing the 2.4 legwork.
#! /usr/bin/python
import sys
import ldap
from ldap.controls import SimplePagedResultsControl
from distutils.version import LooseVersion
# Check if we're using the Python "ldap" 2.4 or greater API
LDAP24API = LooseVersion(ldap.__version__) >= LooseVersion('2.4')
-Wtype-limits -Wsign-compare -Wignored-qualifiers -Wuninitialized -Wlogical-op -Wshadow -Winit-self -Werror=implicit-function-declaration -DNDEBUG -isystem../../../Externals/glslang/glslang/Public -isystem../../../Externals/glslang/SPIRV
g++ ../Core/PowerPC/Jit64Common/ConstantPool.cpp -c -o ../Core/PowerPC/Jit64Common/ConstantPool.o -g -fstack-protector-strong -Wformat -Werror=format-security -DPERF_TEST -DLOGGING -DHAVE_OPENGL_CORE -DHAVE_VULKAN -D_ARCH_64=1 -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_M_X86=1 -D_M_X86_64=1 -DHAVE_VULKAN -D__LIBRETRO__ -D__STDC_CONSTANT_MACROS -I. -I../Core -I../../../Externals/Bochs_disasm -I../../../Externals/mbedtls/include -I../../../Externals/enet/include -I../../../Externals/LZO -I../../../Externals/zlib -I../../../Externals/libpng -I.. -I../../../Externals/SFML/include -I../../../Externals/SFML/src/ -I../../../Externals/xxhash -I../../../Externals/SOIL -I../../../Externals/Vulkan/Include -fpic -O3 -msse2 -fno-strict-aliasing -fvisibility=hidden -fo