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
https://software.download.prss.microsoft.com/dbazure/Win11_23H2_Chinese_Simplified_x64.iso?t=f3e6d1f5-b18d-4191-bd5e-7e2848676536&e=1699383118&h=73d091b675504a195f08ef7ce1f838501c3529afbce1753339e0e44248cdb186 |
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
import faulthandler | |
from queue import Queue | |
import multiprocessing | |
import os | |
import sys | |
import threading | |
import time | |
def proc(): | |
faulthandler.dump_traceback_later(1.0, exit=True) |
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 view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"globals": { | |
"alwaysShowTabs": true, | |
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", |
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
a = [41,4,17,59,78,92,149,131,259,444,688,769,1771,1459,1737,1982,2102,2590,2829,3235,3887,3694] | |
after_days = 6 | |
b = [sum(a[0:i+1]) for i in range(after_days, len(a))] | |
import numpy as np | |
import matplotlib.pyplot as plt | |
x = [i for i in range(after_days, len(a))] | |
x = np.array(x) | |
print('x =',x) | |
y = np.array(b) |
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
import requests | |
import json | |
import time | |
import base64 | |
from threading import Thread | |
#request: | |
# { | |
# "ts": 0, | |
# "content": "", |
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
def cleaner(syscall_list, max_block_size, times): | |
def _clean_once(syscall_list, max_block_size): | |
def _block_cmp(syscall_list, j, i): | |
if j + 2 * i - 1 >= len(syscall_list): | |
return False | |
for k in range(i): | |
if syscall_list[j+k] != syscall_list[j+i+k]: | |
return False |
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
s=""" | |
balabala | |
plist 内容右键 Copy 到这里 | |
balabala | |
""" | |
while "<string>" in s: | |
x = s.partition("<string>")[2].partition("</string>")[0] | |
if x.endswith(".pkg"): | |
print("http://audiocontentdownload.apple.com/lp10_ms3_content_2016/"+x) # 注意不要删除 http:// |
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
# coding: UTF-8 | |
import socket | |
import sys | |
from time import * | |
import os | |
HOST = '' | |
PORT = 8000 | |
fmtstring = '''%s |
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/python | |
# 2019 by Cyrus | |
from __future__ import print_function | |
from bcc import BPF | |
# load BPF program | |
b = BPF(text=""" | |
BPF_HASH(time, u64); |
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/python | |
# 2019 by Cyrus | |
from __future__ import print_function | |
from bcc import BPF | |
from time import sleep | |
# load BPF program | |
b = BPF(text=""" | |
#include <uapi/linux/ptrace.h> |
NewerOlder