I hereby claim:
- I am cvzi on github.
- I am cuzi (https://keybase.io/cuzi) on keybase.
- I have a public key ASB03iWZUtMothedCRPSu1rJdlN9nXcT4liu4k39R5rZpQo
To claim this, I am signing this object:
| #!python3 | |
| r""" | |
| Open Microsoft edge links with your default browser | |
| Prevent "get help with file explorer in windows 10" links from opening. | |
| Instructions: | |
| 1. | |
| Download SetUserFTA.exe from https://docs.microsoft.com/en-us/archive/blogs/windowsinternals/windows-10-how-to-configure-file-associations-for-it-pros |
| """ | |
| Sets the volume level of all channels to the same volume. | |
| It chooses the minimum of all volume levels. | |
| Requirements | |
| - Windows 10 | |
| - pip install pycaw | |
| """ |
| # Reads all failed uploads from Google Music Manager and creates a m3u playlist of the failed files. | |
| # You should stop Music Manager program before executing this script! | |
| # You may use this m3u playlist to transcode the files to another file format. | |
| # MusicManager usually fails because it cannot transcode the file format, either because | |
| # it does not recognize the format or because the file is corrupted. | |
| # If the filenames stay the same after transcoding, you can activate the second part of the | |
| # script. This will delete the failures from the MusicManager database and after a restart | |
| # MusicManager will try to upload them again. |
| # For some reason the Music Manager app (to upload music files to the | |
| # Google Play Music cloud) keeps crashing on my computer. | |
| # This script checks every 15 seconds if the Music Manager app is | |
| # running and if not restarts it by running: start MusicManager.exe | |
| # Python 3.8 | |
| import subprocess | |
| import time | |
| import os |
| // A LRU "least recently used" cache | |
| package lru | |
| import ( | |
| "container/list" | |
| "fmt" | |
| "sync" | |
| ) | |
| // Cache represents a LRU consisting of a map as an index and a list to hold data and indicate the last recently used queue. |
| function base64encode (s) { | |
| // from https://gist.github.com/stubbetje/229984 | |
| const base64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='.split('') | |
| const l = s.length | |
| let o = '' | |
| for (let i = 0; i < l; i++) { | |
| const byte0 = s.charCodeAt(i++) & 0xff | |
| const byte1 = s.charCodeAt(i++) & 0xff | |
| const byte2 = s.charCodeAt(i) & 0xff | |
| o += base64[byte0 >> 2] |
| """ | |
| backupApks.py | |
| Backup all installed (third-party) .apk files from your Android phone to your computer. | |
| Requires adb/adb.exe in %path%. No root required. | |
| You can download adb from here: https://developer.android.com/studio/releases/platform-tools.html | |
| You should try to keep the phone screen on while downloading the apks, otherwise transfer speed might drop drastically. | |
| """ | |
| import os |
| """ | |
| Encode and decode JSON Web Token/JWT (with RS256) from private/public key files | |
| Requires https://cryptography.io: | |
| pip install cryptography | |
| """ | |
| __author__ = 'cuzi' | |
| __email__ = 'cuzi@openmail.cc' | |
| __all__ = ['generate_jwt', 'validate_jwt'] |
| from requests.packages.urllib3.util import parse_url | |
| from urllib.parse import quote, unquote | |
| import hashlib | |
| import hmac | |
| import base64 | |
| """ Sign and check a URL using the client_secret """ | |
| __author__ = 'christopher@levire.com, cuzi@openmail.cc' | |
I hereby claim:
To claim this, I am signing this object: