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 http.server | |
def createHandler(message=None, content=None): | |
errnum = 503 | |
class ErrorHandler(http.server.BaseHTTPRequestHandler): | |
error_message_format = """\ | |
<!DOCTYPE html> | |
<html> |
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 | |
f = open("new.sql", "r") | |
content = f.read() | |
lines = content.split("\n") | |
i = 0 | |
# find all BEGIN statements for a CREATE | |
beginsInLines = list() |
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
Only in electrum-backdoored-2.7.12: build | |
Only in electrum-2.7.12: contrib | |
Only in electrum-backdoored-2.7.12: dist | |
Only in electrum-backdoored-2.7.12: Electrum.egg-info | |
Only in electrum-2.7.12: electrum-env | |
Only in electrum-2.7.12: electrum.icns | |
Only in electrum-2.7.12: .gitignore | |
Only in electrum-backdoored-2.7.12/gui: __init__.pyc | |
Only in electrum-2.7.12/gui/kivy: data | |
Only in electrum-2.7.12/gui/kivy: main.kv |
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 | |
""" | |
This is a quick and dirty script to find btrfs blocks that have certain properties. | |
It does this by parsing the output produced by "btrfs inspect-internal dump-tree" | |
and outputs virtual byte ranges as used by the vrange option of "btrfs balance start" | |
I needed this to re-balance blocks that were not on a specific device of my btrfs | |
raid1 after it became full and I added a new drive. If you need it for something | |
else your mileage may vary. |