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
"""Find Windows folders with a fake display name and optionally delete offending desktop*.ini files to reset folder name and behavior | |
Usage: python unlocalize.py [delete] | |
Renaming a folder via Windows 7-11 Explorer search results, might not change the actual folder name, but just the displayed name in Explorer. | |
The fake display name is set as a LocalizedResourceName in desktop.ini, and the effect survives even if renaming desktop.ini itself. | |
Moreover, from this point on any further renaming via Explorer, even not in search results, will only affect the displayed name. | |
This can lead to data loss e.g. copying a folder with the old name to the same location, unintentionally overwriting the "renamed" folder. | |
See also: https://superuser.com/questions/1777997/prevent-windows-explorer-to-use-localizedresourcename-when-renaming-file-or-fo | |
""" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<script type="text/javascript"> | |
function onLoadHide() { // Hide the [Next page] button: | |
var d1 = document.getElementsByClassName("que description informationitem notyetanswered")[0]; | |
var d2 = document.getElementsByClassName("que description informationitem answersaved")[0]; | |
if (!d1 && !d2) document.getElementsByClassName("mod_quiz-next-nav btn btn-primary")[0].disabled = true; | |
} | |
function onAnswerShow() { // Show the [Next page] button: | |
document.getElementsByClassName("mod_quiz-next-nav btn btn-primary")[0].disabled = false; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
"""Usage: python3 delchunk.py BIG_FILE CHUNK_FILE_OR_FOLDER [OUT_FILE] | |
Given a large file BIG_FILE, delete all complete non-overlapping (and possibly large) chunks given by CHUNK_FILE_OR_FOLDER | |
While each chunk file is treated statelessly (AABABB-AB=AB), multiple chunk files are treated statefully (ACABDB-AB-CD=AB) | |
Multiple chunk files will be deleted from the largest to the smallest (and secondarily by chunk filename) | |
If OUT_FILE is omitted, will do a dryrun | |
""" | |
import mmap |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# to run: | |
# python gsheet_fetcher.py | |
try: | |
import requests # faster - need to pip install requests | |
get = requests.get | |
req = True | |
except: | |
import urllib.request | |
get = urllib.request.urlopen |
NewerOlder