Skip to content

Instantly share code, notes, and snippets.

View mgrandi's full-sized avatar

Mark Grandi mgrandi

  • Arizona, USA
View GitHub Profile
@mgrandi
mgrandi / parse_and_convert_rws_file.py
Created May 21, 2014 07:21
parse_and_convert_rws_file.py - parses a rws audio file (xbox 360) and converts it to pcm, then runs it through sox to produce a WAV
#!/usr/bin/env python3
#
# parse rws file format and extract it, then run it through sox to produce a wav
#
#
# written by Mark Grandi - May 9th 2014
#
import argparse, sys, traceback, os, os.path, subprocess, tempfile, shutil
This file has been truncated, but you can view the full file.
https://download.microsoft.com/download/6/4/4/644F97FE-639D-4817-852A-905F224DC783/UR7.1-3.27.8196.0/MgmtSvc-Usage.msi
https://download.microsoft.com/download/6/4/4/644F97FE-639D-4817-852A-905F224DC783/UR7.1-3.27.8196.0/MgmtSvc-WebAppGallery.msi
https://download.microsoft.com/download/6/4/4/644F97FE-639D-4817-852A-905F224DC783/UR7.1-3.27.8196.0/MgmtSvc-WindowsAuthSite.msi
https://download.microsoft.com/download/6/4/4/644F97FE-639D-4817-852A-905F224DC783/UR7.1-3.27.8196.0/PrivacyStatement_RTM_2013.docx
https://download.microsoft.com/download/6/4/4/644F97FE-639D-4817-852A-905F224DC783/UR7.1-3.27.8196.0/THIRDPARTYNOTICES_RTM_2013.rtf
https://download.microsoft.com/download/0/B/5/0B523C6F-4B2C-4F3E-80B8-F8D7FE69A3EA/TFS2012-KB2989277.exe
https://download.microsoft.com/download/3/6/8/3683FA84-BDF4-479E-9E64-495AF6605EB2/TFS2013-KB2989279.exe
https://download.microsoft.com/download/3/B/5/3B5991CA-8B23-4A18-9DB5-1EDB867AD508/Microsoft%20Azure%20Certification%20Test%20Tool%201.1%20for%20Hybrid%20Cloud.msi
https://dow
This file has been truncated, but you can view the full file.
https://download.microsoft.com/download/2/4/9/249F4BAF-547D-408E-B5C3-7E7D9B8D203F/wacserver2016-kb3213659-fullfile-x64-glb.exe
https://download.microsoft.com/download/5/5/8/55882F87-7141-4CD0-9459-0D4861B651F9/MARSAgentInstaller.exe
https://download.microsoft.com/download/1/6/D/16D24A3C-8B1F-452A-AACC-C8879D0497DF/Compliance_Rules_For_PlayReady_Products_10_October_2017.docx
https://download.microsoft.com/download/B/5/9/B59C8D0E-3B2E-46F3-BD40-C11EEF5609B3/BTS2013R2-KB4020020-ESP.exe
https://download.microsoft.com/download/B/5/9/B59C8D0E-3B2E-46F3-BD40-C11EEF5609B3/BTS2013R2-KB4038891-CHS.exe
https://download.microsoft.com/download/B/5/9/B59C8D0E-3B2E-46F3-BD40-C11EEF5609B3/BTS2013R2-KB4038891-CHT.exe
https://download.microsoft.com/download/B/5/9/B59C8D0E-3B2E-46F3-BD40-C11EEF5609B3/BTS2013R2-KB4038891-DEU.exe
https://download.microsoft.com/download/B/5/9/B59C8D0E-3B2E-46F3-BD40-C11EEF5609B3/BTS2013R2-KB4038891-ENU.exe
https://download.microsoft.com/download/B/5/9/B59C8D0E-3B2E-46F3-BD40-C11EEF5609B3/BTS2013R
@mgrandi
mgrandi / config.py
Last active March 11, 2020 23:14
Example Windows Service, written using asyncio and frozen using cx_Freeze
# for NAME and DISPLAY_NAME, the '%s' is replaced whatever you pass to <service.exe> --install NAMEHERE, so you can
# register the same exe multiple times with different names and configuration files
NAME = 'cx_FreezeSampleService%s' # what the name of the service is, used in command line things like "sc"
DISPLAY_NAME = 'cx_Freeze Sample Service - %s' # display name of the service, this is what you see in the "Services" window
MODULE_NAME = 'service' # python file containing the actual service code
CLASS_NAME = 'Handler' # class name of the service, since it doesn't extend anything, all it needs are certain methods
DESCRIPTION = 'Sample service description' # description of the service, seen in the Service Properties window
AUTO_START = False # does the service auto start?
# does the service respond to session changes? Setting this to True and implemnting SessionChanged(sessionId, eventType)
@mgrandi
mgrandi / setup.py bdist_wheel install removal
Created December 12, 2019 21:36
duplicity normal install vs bdist_wheel
mgrandi@Alcidae:~/duplicity_stuff/duplicity_trunk/duplicity/dist$ pip3 uninstall duplicity
Uninstalling duplicity-0.8.7.1:
/home/mgrandi/.local/bin/duplicity
/home/mgrandi/.local/bin/rdiffdir
/home/mgrandi/.local/lib/python3.6/site-packages/duplicity-0.8.7.1.dist-info/DESCRIPTION.rst
/home/mgrandi/.local/lib/python3.6/site-packages/duplicity-0.8.7.1.dist-info/INSTALLER
/home/mgrandi/.local/lib/python3.6/site-packages/duplicity-0.8.7.1.dist-info/METADATA
/home/mgrandi/.local/lib/python3.6/site-packages/duplicity-0.8.7.1.dist-info/RECORD
/home/mgrandi/.local/lib/python3.6/site-packages/duplicity-0.8.7.1.dist-info/WHEEL
/home/mgrandi/.local/lib/python3.6/site-packages/duplicity-0.8.7.1.dist-info/metadata.json
@mgrandi
mgrandi / rename-file-to-parent-folder.py
Last active June 14, 2017 16:00
rename a file based on the name of the parent directory
#
# script to rename files to the same name as the parent folder
#
# so
#
# 3a -|
# - 3a1c603a -|
# - resident_sound.dat (gets renamed to be 3a1c603a_resident_sound.dat)
#
#
@mgrandi
mgrandi / ratchet_and_clank_nexus_rename_soundfiles.py
Last active August 29, 2015 14:02
ratchet_and_clank_nexus_rename_soundfiles.py
#
# script to name audio files from 'ratchet and clank into the nexus' to human readable names
#
# aka resident_sound.dat -> cha_clank_voc_tossspecialb_mdc.dat
#
# Jun 23, 2014 Mark Grandi
#
import argparse, sys, re, os.path, os, shutil
#!/usr/bin/env python3
#
# script to convert csv from the Mileage Log wp7 app's email export format to json
# so the app can load it from OneDrive/SkyDrive
#
# written by Mark Grandi - Apr 16, 2014
#
import csv, json, argparse, sys, io, uuid, datetime