This file contains hidden or 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
import code | |
from guppy import hpy | |
def show_memory_stat(): | |
print("===== GC Count (0th, 1st, 2rd Gen) =====") | |
print(gc.get_count()) | |
h = hpy() | |
heap = h.heap() | |
print("===== Heap =====") | |
print(heap) | |
print("===== Heap by Type =====") |
This file contains hidden or 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
# https://forum.xda-developers.com/t/custom-boot-splash-logo-custom-boot-animation-for-poco-f3.4337783/post-86692213 | |
fastboot flash uefisecapp_a uefisecapp.img | |
fastboot flash uefisecapp_b uefisecapp.img | |
fastboot flash xbl_a xbl.img | |
fastboot flash xbl_b xbl.img | |
fastboot flash xbl_config_a xbl_config.img | |
fastboot flash xbl_config_b xbl_config.img | |
fastboot flash logo logo.img |
This file contains hidden or 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
headers = {} | |
post_flag = False | |
data_flag = False | |
data = None | |
print('Provide your raw "Copy as cURL (bash)" with preceding whitespaces below:\n') | |
while True: | |
a = input() | |
if a.startswith('curl'): | |
url = a.lstrip('curl').rstrip('\\').strip().strip("'") | |
continue |
This file contains hidden or 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
# docker run -p 65535:80 -v <?>:/nginx -v nginx-autolist.conf:/etc/nginx/conf.d/autolist.conf nginx | |
autoindex on; | |
autoindex_format json; | |
server { | |
listen 80; | |
server_name 127.0.0.1; | |
root /nginx; |
OlderNewer